@gisce/react-ooui 2.98.0-rc.6 → 2.98.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var gc = Object.defineProperty;
2
2
  var yc = (t, e, n) => e in t ? gc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var ks = (t, e, n) => (yc(t, typeof e != "symbol" ? e + "" : e, n), n);
4
- import { jsx as s, jsxs as H, Fragment as he } from "react/jsx-runtime";
4
+ import { jsx as s, jsxs as L, Fragment as he } from "react/jsx-runtime";
5
5
  import rn, { useContext as pe, useState as T, useEffect as ce, useRef as Z, memo as it, useCallback as O, useMemo as re, forwardRef as $t, useImperativeHandle as Ht, Fragment as jn, createContext as vc, createElement as bc } from "react";
6
6
  import { Tooltip as Et, theme as Xe, Typography as on, Form as Ot, Row as Ge, Col as Oe, Modal as Ft, Button as je, Dropdown as Ui, Menu as Ps, Space as ct, Spin as nt, Divider as Lr, Input as ft, Select as wn, Checkbox as rr, Alert as Rt, Timeline as Wi, Badge as Un, message as Ms, Popover as wc, DatePicker as xc, TimePicker as Cc, InputNumber as Hr, Layout as qi, Progress as Sc, Avatar as Gi, Tag as Ko, ColorPicker as Yi, Pagination as Tc, Empty as zi, Statistic as Fc, Card as Jo, Tabs as Ki, Radio as $s, Switch as Ac, Steps as Ns, Carousel as Rc } from "antd";
7
7
  import { Label as Wn, Field as Oo, Tree as Ji, Reference as Ic, Selection as Xo, Many2one as Xi, Boolean as _c, parseContext as ln, graphProcessor as Qi, graphFieldUtils as Ec, Integer as Do, SearchFieldTypes as an, SearchFilter as Zi, parseContextFields as Oc, parseDomainFields as Dc, parseGraph as ea, Container as kc, Form as ta, transformDomainForChildWidget as Qo, Button as Pc } from "@gisce/ooui";
@@ -302,7 +302,7 @@ const { Text: eu, Title: tu } = on, { useToken: nu } = Xe, ru = {
302
302
  }
303
303
  }
304
304
  const g = n || (a ? r ? "left" : "right" : "left"), { token: h } = nu(), v = l === void 0 ? eu : tu;
305
- return /* @__PURE__ */ H(
305
+ return /* @__PURE__ */ L(
306
306
  "div",
307
307
  {
308
308
  className: `flex flex-row items-center pb-1 pt-1 ${ru[g]}`,
@@ -368,10 +368,10 @@ function We({
368
368
  align: i
369
369
  }
370
370
  );
371
- return n === "horizontal" ? (() => /* @__PURE__ */ H(Ge, { align: "middle", className: "pb-1 pt-1", children: [
371
+ return n === "horizontal" ? (() => /* @__PURE__ */ L(Ge, { align: "middle", className: "pb-1 pt-1", children: [
372
372
  /* @__PURE__ */ s(Oe, { className: "ml-2", flex: "7rem", children: /* @__PURE__ */ s("div", { className: "flex flex-col items-end", children: S }) }),
373
373
  /* @__PURE__ */ s(Oe, { flex: "auto", children: D() })
374
- ] }))() : (() => /* @__PURE__ */ H(he, { children: [
374
+ ] }))() : (() => /* @__PURE__ */ L(he, { children: [
375
375
  S,
376
376
  D()
377
377
  ] }))();
@@ -479,7 +479,7 @@ const { confirm: ou } = Ft, tn = ({
479
479
  if (e.buttons.length === 0)
480
480
  return null;
481
481
  if (e.buttons.length > 1)
482
- return /* @__PURE__ */ s(We, { ooui: new Oo({ defaultButton: n }), children: /* @__PURE__ */ H(
482
+ return /* @__PURE__ */ s(We, { ooui: new Oo({ defaultButton: n }), children: /* @__PURE__ */ L(
483
483
  Ui.Button,
484
484
  {
485
485
  disabled: !a || p,
@@ -589,7 +589,7 @@ const On = class On {
589
589
  }
590
590
  };
591
591
  ks(On, "handler");
592
- let L = On;
592
+ let H = On;
593
593
  const va = (t) => {
594
594
  let e, n, r;
595
595
  if (!t)
@@ -624,7 +624,7 @@ const va = (t) => {
624
624
  if (i === "warning" || i === "error") {
625
625
  const c = o.buttons || [];
626
626
  let d;
627
- const f = c.length > 0 ? /* @__PURE__ */ s(Ge, { justify: "end", style: { marginTop: 16 }, children: /* @__PURE__ */ H(ct, { children: [
627
+ const f = c.length > 0 ? /* @__PURE__ */ s(Ge, { justify: "end", style: { marginTop: 16 }, children: /* @__PURE__ */ L(ct, { children: [
628
628
  c.map((p) => /* @__PURE__ */ s(
629
629
  je,
630
630
  {
@@ -719,7 +719,7 @@ const va = (t) => {
719
719
  p(!1);
720
720
  }
721
721
  async function C() {
722
- const $ = (await L.getHandler().search({
722
+ const $ = (await H.getHandler().search({
723
723
  params: [["translatable", "=", "1"]],
724
724
  fieldsToRetrieve: ["code", "name"],
725
725
  model: "res.lang"
@@ -732,7 +732,7 @@ const va = (t) => {
732
732
  async function x(F) {
733
733
  const $ = {};
734
734
  for (const R of F) {
735
- const _ = (await L.getHandler().readObjects({
735
+ const _ = (await H.getHandler().readObjects({
736
736
  model: r,
737
737
  ids: [o],
738
738
  fieldsToRetrieve: [i],
@@ -743,7 +743,7 @@ const va = (t) => {
743
743
  y.current = $, v($);
744
744
  }
745
745
  function D() {
746
- return d.map((F, $) => /* @__PURE__ */ H(Ge, { style: { paddingBottom: 20 }, children: [
746
+ return d.map((F, $) => /* @__PURE__ */ L(Ge, { style: { paddingBottom: 20 }, children: [
747
747
  /* @__PURE__ */ s(Oe, { flex: "8rem", style: { paddingRight: 10 }, children: F.name }),
748
748
  /* @__PURE__ */ s(Oe, { flex: "auto", children: /* @__PURE__ */ s(
749
749
  gd,
@@ -765,7 +765,7 @@ const va = (t) => {
765
765
  g(!0);
766
766
  try {
767
767
  for (const F of Object.keys(h))
768
- h[F] !== y.current[F] && await L.getHandler().update({
768
+ h[F] !== y.current[F] && await H.getHandler().update({
769
769
  model: r,
770
770
  id: o,
771
771
  values: { [i]: h[F] },
@@ -780,10 +780,10 @@ const va = (t) => {
780
780
  g(!1), a();
781
781
  }
782
782
  function P() {
783
- return u ? /* @__PURE__ */ s(nt, {}) : /* @__PURE__ */ H(he, { children: [
783
+ return u ? /* @__PURE__ */ s(nt, {}) : /* @__PURE__ */ L(he, { children: [
784
784
  D(),
785
785
  /* @__PURE__ */ s(Lr, {}),
786
- /* @__PURE__ */ s(Ge, { justify: "end", children: /* @__PURE__ */ H(ct, { children: [
786
+ /* @__PURE__ */ s(Ge, { justify: "end", children: /* @__PURE__ */ L(ct, { children: [
787
787
  /* @__PURE__ */ s(
788
788
  je,
789
789
  {
@@ -952,7 +952,7 @@ const Ca = it(
952
952
  forceRefresh: !0
953
953
  });
954
954
  }, [l]), C = h ? pu : fu;
955
- return i ? /* @__PURE__ */ H(he, { children: [
955
+ return i ? /* @__PURE__ */ L(he, { children: [
956
956
  /* @__PURE__ */ s("div", { onClick: y, children: /* @__PURE__ */ s(
957
957
  sr,
958
958
  {
@@ -976,7 +976,7 @@ const Ca = it(
976
976
  onSubmitSucceed: w
977
977
  }
978
978
  )
979
- ] }) : /* @__PURE__ */ H(Ge, { gutter: 8, wrap: !1, children: [
979
+ ] }) : /* @__PURE__ */ L(Ge, { gutter: 8, wrap: !1, children: [
980
980
  /* @__PURE__ */ s(Oe, { flex: "auto", children: /* @__PURE__ */ s(
981
981
  sr,
982
982
  {
@@ -1115,8 +1115,8 @@ const cs = (t) => {
1115
1115
  function f() {
1116
1116
  l(void 0);
1117
1117
  }
1118
- return /* @__PURE__ */ H(he, { children: [
1119
- /* @__PURE__ */ H(Ge, { gutter: 8, wrap: !1, justify: "center", children: [
1118
+ return /* @__PURE__ */ L(he, { children: [
1119
+ /* @__PURE__ */ L(Ge, { gutter: 8, wrap: !1, justify: "center", children: [
1120
1120
  re(
1121
1121
  () => /* @__PURE__ */ s(cs, { value: n }),
1122
1122
  [n, e]
@@ -1133,7 +1133,7 @@ const cs = (t) => {
1133
1133
  }
1134
1134
  )
1135
1135
  ] }),
1136
- e.showControls && /* @__PURE__ */ s(Ge, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ H(ct, { children: [
1136
+ e.showControls && /* @__PURE__ */ s(Ge, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ L(ct, { children: [
1137
1137
  /* @__PURE__ */ s(
1138
1138
  bt,
1139
1139
  {
@@ -1196,9 +1196,9 @@ function Eu(t) {
1196
1196
  const ds = (t, e, n, r = !1) => t.columns.map((i) => {
1197
1197
  const a = i.type, l = i.id, c = e == null ? void 0 : e[a];
1198
1198
  let d;
1199
- return c ? d = (f) => c({ value: f, key: l, ooui: i, context: n }) : d = (f) => Eu(f) ? f : /* @__PURE__ */ H("p", { style: { color: "red" }, children: [
1199
+ return c ? d = (f) => c({ value: f, key: l, ooui: i, context: n }) : d = (f) => Eu(f) ? f : /* @__PURE__ */ L("p", { style: { color: "red" }, children: [
1200
1200
  "Unsupported widget value for a Tree cell:",
1201
- /* @__PURE__ */ s("pre", { children: /* @__PURE__ */ H("strong", { children: [
1201
+ /* @__PURE__ */ s("pre", { children: /* @__PURE__ */ L("strong", { children: [
1202
1202
  "Type: ",
1203
1203
  a,
1204
1204
  " - Value: ",
@@ -1306,7 +1306,7 @@ const us = async (t) => {
1306
1306
  };
1307
1307
  let u = [], p;
1308
1308
  if (a === "tree" && (o != null && o.arch)) {
1309
- const v = (h = en(o)) == null ? void 0 : h.colors, y = await L.getHandler().readEvalUiObjects({
1309
+ const v = (h = en(o)) == null ? void 0 : h.colors, y = await H.getHandler().readEvalUiObjects({
1310
1310
  model: n,
1311
1311
  ids: d,
1312
1312
  arch: o == null ? void 0 : o.arch,
@@ -1318,7 +1318,7 @@ const us = async (t) => {
1318
1318
  });
1319
1319
  u = y[0], p = Vn(y[1]);
1320
1320
  } else
1321
- u = await L.getHandler().readObjects({
1321
+ u = await H.getHandler().readObjects({
1322
1322
  model: n,
1323
1323
  ids: d,
1324
1324
  fields: f[a],
@@ -1410,7 +1410,7 @@ const Mu = ({
1410
1410
  const a = e.findIndex((c) => c.id === o.id), l = e.findIndex((c) => c.id === i.id);
1411
1411
  return a - l;
1412
1412
  }), r;
1413
- }, Nu = async (t, e, n, r) => await L.getHandler().searchAllIds({
1413
+ }, Nu = async (t, e, n, r) => await H.getHandler().searchAllIds({
1414
1414
  model: e,
1415
1415
  params: [["id", "in", t]],
1416
1416
  context: n,
@@ -1426,7 +1426,7 @@ const Mu = ({
1426
1426
  attrs: o,
1427
1427
  treeOoui: i
1428
1428
  }) => {
1429
- const a = await L.getHandler().readEvalUiObjects({
1429
+ const a = await H.getHandler().readEvalUiObjects({
1430
1430
  model: t,
1431
1431
  ids: e,
1432
1432
  arch: n.arch,
@@ -1578,14 +1578,14 @@ const Cn = ({
1578
1578
  }), Gu = (t, e) => t.replace(
1579
1579
  /\{([^}]+)\}/g,
1580
1580
  (n, r) => e[r] !== void 0 ? e[r] : n
1581
- ), Gs = (t) => !(!Array.isArray(t) || t.length !== 2 || t[0] === void 0 && t[1] === ""), Yu = (t) => /* @__PURE__ */ H(
1581
+ ), Gs = (t) => !(!Array.isArray(t) || t.length !== 2 || t[0] === void 0 && t[1] === ""), Yu = (t) => /* @__PURE__ */ L(
1582
1582
  "div",
1583
1583
  {
1584
1584
  style: { display: "inline-block", cursor: "pointer" },
1585
1585
  onClick: t.onClick,
1586
1586
  children: [
1587
1587
  /* @__PURE__ */ s("strong", { children: t.title }),
1588
- t.summary && /* @__PURE__ */ H(he, { children: [
1588
+ t.summary && /* @__PURE__ */ L(he, { children: [
1589
1589
  /* @__PURE__ */ s("br", {}),
1590
1590
  /* @__PURE__ */ s("span", { children: t.summary })
1591
1591
  ] })
@@ -1596,7 +1596,7 @@ const Cn = ({
1596
1596
  Ue(() => {
1597
1597
  g();
1598
1598
  }, [e]);
1599
- const m = async (h) => o && o[h] ? o[h] : await L.getHandler().getView({
1599
+ const m = async (h) => o && o[h] ? o[h] : await H.getHandler().getView({
1600
1600
  model: n,
1601
1601
  type: h,
1602
1602
  context: { ...p == null ? void 0 : p(), ...r }
@@ -1678,7 +1678,7 @@ const Cn = ({
1678
1678
  };
1679
1679
  return (E = _.values) != null && E[w] && (I.dot = $(_.values[w])), (M = _.values) != null && M[C] && (I.color = !ma(_.values[C]) && !ha(_.values[C]) && !_.values[C].toString().startsWith("#") ? mr(_.values[C]) : _.values[C]), I;
1680
1680
  });
1681
- return /* @__PURE__ */ H(he, { children: [
1681
+ return /* @__PURE__ */ L(he, { children: [
1682
1682
  /* @__PURE__ */ s(Wi, { style: { padding: "1rem" }, items: R }),
1683
1683
  /* @__PURE__ */ s(
1684
1684
  Xn,
@@ -2154,7 +2154,7 @@ async function ka({
2154
2154
  rootContext: e = {},
2155
2155
  globalValues: n = {}
2156
2156
  }) {
2157
- const r = "ir.actions.act_window", o = `${r},${t}`, i = await L.getHandler().getActionData({
2157
+ const r = "ir.actions.act_window", o = `${r},${t}`, i = await H.getHandler().getActionData({
2158
2158
  action: o,
2159
2159
  context: e
2160
2160
  }), a = ln({
@@ -2171,7 +2171,7 @@ async function ka({
2171
2171
  } = i, g = p === "tree";
2172
2172
  if (!l.active_id)
2173
2173
  return { title: f };
2174
- const h = i.domain ? await L.getHandler().evalDomain({
2174
+ const h = i.domain ? await H.getHandler().evalDomain({
2175
2175
  domain: i.domain,
2176
2176
  values: n,
2177
2177
  context: l
@@ -2181,7 +2181,7 @@ async function ka({
2181
2181
  if (x)
2182
2182
  v.push(C);
2183
2183
  else {
2184
- const { view_id: S } = await L.getHandler().getView({
2184
+ const { view_id: S } = await H.getHandler().getView({
2185
2185
  model: c,
2186
2186
  type: D,
2187
2187
  id: x,
@@ -2408,7 +2408,7 @@ function rf({
2408
2408
  justifyContent: "center",
2409
2409
  overflow: "hidden"
2410
2410
  },
2411
- children: /* @__PURE__ */ H($o, { style: { fontSize: c, margin: 0, color: i }, children: [
2411
+ children: /* @__PURE__ */ L($o, { style: { fontSize: c, margin: 0, color: i }, children: [
2412
2412
  m && /* @__PURE__ */ s(m, { style: { fontSize: c * 0.7 } }),
2413
2413
  m ? ` ${u}` : u
2414
2414
  ] })
@@ -2458,9 +2458,9 @@ function of({
2458
2458
  flexDirection: "column",
2459
2459
  padding: "0.2rem"
2460
2460
  },
2461
- children: /* @__PURE__ */ H(Ge, { align: "middle", children: [
2461
+ children: /* @__PURE__ */ L(Ge, { align: "middle", children: [
2462
2462
  h && /* @__PURE__ */ s(Oe, { style: { fontSize: f * 1, color: a, paddingRight: "10px" }, children: /* @__PURE__ */ s(h, {}) }),
2463
- /* @__PURE__ */ H(Oe, { children: [
2463
+ /* @__PURE__ */ L(Oe, { children: [
2464
2464
  /* @__PURE__ */ s($o, { style: { fontSize: f * 0.8, margin: 0, color: a }, children: h ? ` ${r}%` : `${r}%` }),
2465
2465
  /* @__PURE__ */ s(
2466
2466
  $o,
@@ -2494,15 +2494,15 @@ const { getValueForOperator: Ys } = Qi, sf = (t) => {
2494
2494
  manualIds: u,
2495
2495
  fixedHeight: p
2496
2496
  } = t, [m, g] = T(!1), [h, v] = T(), [y, b] = T(0), [w, C] = T(), [x, D] = T(), [S, P] = T(), [F, $] = T(), [R] = Re(
2497
- L.getHandler().searchAllIds
2497
+ H.getHandler().searchAllIds
2498
2498
  ), [_] = Re(
2499
- L.getHandler().readObjects
2499
+ H.getHandler().readObjects
2500
2500
  ), [I] = Re(
2501
- L.getHandler().searchCount
2501
+ H.getHandler().searchCount
2502
2502
  ), [A] = Re(
2503
- L.getHandler().evalDomain
2503
+ H.getHandler().evalDomain
2504
2504
  ), [k] = Re(
2505
- L.getHandler().parseCondition
2505
+ H.getHandler().parseCondition
2506
2506
  );
2507
2507
  ce(() => {
2508
2508
  W();
@@ -2621,10 +2621,10 @@ const { getValueForOperator: Ys } = Qi, sf = (t) => {
2621
2621
  uninformedString: a,
2622
2622
  manualIds: l
2623
2623
  } = t, [c, d] = T(!1), [f, u] = T(), [p, m] = T(), [g, h] = T(), [v, y] = T("line"), [b] = Re(
2624
- L.getHandler().getFields
2624
+ H.getHandler().getFields
2625
2625
  ), [w] = Re(
2626
- L.getHandler().readObjects
2627
- ), [C] = Re(L.getHandler().search), x = O(async () => {
2626
+ H.getHandler().readObjects
2627
+ ), [C] = Re(H.getHandler().search), x = O(async () => {
2628
2628
  d(!0), u(void 0), y(n.type || "line");
2629
2629
  const D = lf({ ooui: n });
2630
2630
  let S, P;
@@ -2779,7 +2779,7 @@ async function zs({
2779
2779
  });
2780
2780
  const c = await Promise.all(
2781
2781
  Object.entries(l).map(async ([f, u]) => {
2782
- const p = await L.getHandler().execute({
2782
+ const p = await H.getHandler().execute({
2783
2783
  action: "name_get",
2784
2784
  payload: u,
2785
2785
  model: f,
@@ -3022,7 +3022,7 @@ const hf = {
3022
3022
  i,
3023
3023
  a
3024
3024
  ]);
3025
- return m ? /* @__PURE__ */ H(
3025
+ return m ? /* @__PURE__ */ L(
3026
3026
  "div",
3027
3027
  {
3028
3028
  style: {
@@ -3252,7 +3252,7 @@ function fs(t) {
3252
3252
  r(p);
3253
3253
  });
3254
3254
  }
3255
- return /* @__PURE__ */ H("div", { style: { display: "flex" }, children: [
3255
+ return /* @__PURE__ */ L("div", { style: { display: "flex" }, children: [
3256
3256
  /* @__PURE__ */ s(
3257
3257
  bt,
3258
3258
  {
@@ -3303,7 +3303,7 @@ function At(t) {
3303
3303
  type: l = "default",
3304
3304
  ...c
3305
3305
  } = t;
3306
- return /* @__PURE__ */ H(
3306
+ return /* @__PURE__ */ L(
3307
3307
  bt,
3308
3308
  {
3309
3309
  type: l,
@@ -3348,7 +3348,7 @@ function ja(t) {
3348
3348
  const { useToken: Of } = Xe;
3349
3349
  function Ua(t) {
3350
3350
  const { badgeNumber: e = 0, ...n } = t, { token: r } = Of();
3351
- return /* @__PURE__ */ H("div", { style: { position: "relative" }, children: [
3351
+ return /* @__PURE__ */ L("div", { style: { position: "relative" }, children: [
3352
3352
  e > 0 && /* @__PURE__ */ s("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ s(
3353
3353
  "span",
3354
3354
  {
@@ -3375,12 +3375,12 @@ function Ua(t) {
3375
3375
  ] });
3376
3376
  }
3377
3377
  async function ps(t, e, n) {
3378
- const r = (await L.getHandler().getLogInfo({
3378
+ const r = (await H.getHandler().getLogInfo({
3379
3379
  model: t,
3380
3380
  ids: [e]
3381
3381
  }))[0], { create_date: o, create_uid: i, id: a, write_date: l, write_uid: c } = r;
3382
3382
  yn(
3383
- /* @__PURE__ */ H("div", { children: [
3383
+ /* @__PURE__ */ L("div", { children: [
3384
3384
  "ID: " + a,
3385
3385
  " ",
3386
3386
  /* @__PURE__ */ s("br", {}),
@@ -3422,7 +3422,7 @@ function Df(t) {
3422
3422
  onFinish: f,
3423
3423
  autoComplete: "off",
3424
3424
  initialValues: { search: r },
3425
- children: /* @__PURE__ */ H(Ge, { align: "middle", justify: "end", children: [
3425
+ children: /* @__PURE__ */ L(Ge, { align: "middle", justify: "end", children: [
3426
3426
  /* @__PURE__ */ s(Oe, { children: /* @__PURE__ */ s(Ot.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ s(
3427
3427
  ft,
3428
3428
  {
@@ -3522,7 +3522,7 @@ const { useToken: Pf } = Xe, Mf = (t) => {
3522
3522
  } = g || {}, D = Zr(
3523
3523
  wt.FEATURE_LOGGABLE_ACTIONS
3524
3524
  ), [S] = Re(
3525
- L.getHandler().logAction
3525
+ H.getHandler().logAction
3526
3526
  ), P = O(async () => [
3527
3527
  {
3528
3528
  items: (await (l == null ? void 0 : l()) || []).map(
@@ -3531,7 +3531,7 @@ const { useToken: Pf } = Xe, Mf = (t) => {
3531
3531
  return {
3532
3532
  icon: /* @__PURE__ */ s(Dn, {}),
3533
3533
  ...W,
3534
- name: V ? /* @__PURE__ */ H(
3534
+ name: V ? /* @__PURE__ */ L(
3535
3535
  "div",
3536
3536
  {
3537
3537
  style: {
@@ -3616,8 +3616,8 @@ const { useToken: Pf } = Xe, Mf = (t) => {
3616
3616
  onItemClick: R,
3617
3617
  placement: "bottomRight",
3618
3618
  disabled: o,
3619
- header: /* @__PURE__ */ H("div", { style: { width: 300, padding: 5 }, children: [
3620
- r && r.length > 0 && /* @__PURE__ */ H(he, { children: [
3619
+ header: /* @__PURE__ */ L("div", { style: { width: 300, padding: 5 }, children: [
3620
+ r && r.length > 0 && /* @__PURE__ */ L(he, { children: [
3621
3621
  /* @__PURE__ */ s(
3622
3622
  "div",
3623
3623
  {
@@ -3625,7 +3625,7 @@ const { useToken: Pf } = Xe, Mf = (t) => {
3625
3625
  children: (A = d == null ? void 0 : d("actions")) == null ? void 0 : A.toUpperCase()
3626
3626
  }
3627
3627
  ),
3628
- /* @__PURE__ */ s("div", { style: { paddingBottom: 5 }, children: /* @__PURE__ */ s(Et, { title: d == null ? void 0 : d("clear_search"), children: /* @__PURE__ */ H(
3628
+ /* @__PURE__ */ s("div", { style: { paddingBottom: 5 }, children: /* @__PURE__ */ s(Et, { title: d == null ? void 0 : d("clear_search"), children: /* @__PURE__ */ L(
3629
3629
  "div",
3630
3630
  {
3631
3631
  style: {
@@ -3654,7 +3654,7 @@ const { useToken: Pf } = Xe, Mf = (t) => {
3654
3654
  }
3655
3655
  )
3656
3656
  ] }),
3657
- /* @__PURE__ */ H("div", { style: { display: "flex" }, children: [
3657
+ /* @__PURE__ */ L("div", { style: { display: "flex" }, children: [
3658
3658
  /* @__PURE__ */ s("div", { style: { paddingLeft: 15, color: "#ccc" }, children: (k = d == null ? void 0 : d("saved_searches")) == null ? void 0 : k.toUpperCase() }),
3659
3659
  /* @__PURE__ */ s("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ s(Et, { title: d == null ? void 0 : d("edit_saved_searches"), children: /* @__PURE__ */ s(
3660
3660
  ns,
@@ -3680,7 +3680,7 @@ const { useToken: Pf } = Xe, Mf = (t) => {
3680
3680
  ), { openAction: d } = c || {}, f = Z([]), { t: u } = we(), { showErrorNotification: p } = yt(), m = Zr(
3681
3681
  wt.FEATURE_LOGGABLE_ACTIONS
3682
3682
  ), [g, h] = Re(
3683
- L.getHandler().logAction
3683
+ H.getHandler().logAction
3684
3684
  );
3685
3685
  ce(() => () => {
3686
3686
  h();
@@ -3727,7 +3727,7 @@ const { useToken: Pf } = Xe, Mf = (t) => {
3727
3727
  } catch (Q) {
3728
3728
  console.error(Q);
3729
3729
  }
3730
- const K = await L.getHandler().createReport({
3730
+ const K = await H.getHandler().createReport({
3731
3731
  model: M,
3732
3732
  name: V,
3733
3733
  datas: W,
@@ -3744,7 +3744,7 @@ const { useToken: Pf } = Xe, Mf = (t) => {
3744
3744
  async function x(R) {
3745
3745
  let _;
3746
3746
  try {
3747
- if (_ = await L.getHandler().getReport({
3747
+ if (_ = await H.getHandler().getReport({
3748
3748
  id: R
3749
3749
  }), _.state && i.current === !0) {
3750
3750
  i.current = !1, clearInterval(o.current), l(!1);
@@ -3792,7 +3792,7 @@ const { useToken: Pf } = Xe, Mf = (t) => {
3792
3792
  }) {
3793
3793
  var U;
3794
3794
  let k = R;
3795
- R.res_model || (k = (await L.getHandler().readObjects({
3795
+ R.res_model || (k = (await H.getHandler().readObjects({
3796
3796
  model: "ir.actions.act_window",
3797
3797
  ids: [parseInt(R.id)],
3798
3798
  context: A
@@ -3807,7 +3807,7 @@ const { useToken: Pf } = Xe, Mf = (t) => {
3807
3807
  };
3808
3808
  let V = [];
3809
3809
  const N = k.domain;
3810
- if (k.domain && (V = await L.getHandler().evalDomain({
3810
+ if (k.domain && (V = await H.getHandler().evalDomain({
3811
3811
  domain: k.domain,
3812
3812
  values: Cn({
3813
3813
  fields: _,
@@ -3816,7 +3816,7 @@ const { useToken: Pf } = Xe, Mf = (t) => {
3816
3816
  fields: _,
3817
3817
  context: W
3818
3818
  })), k.target === "new") {
3819
- const j = await L.getHandler().getView({
3819
+ const j = await H.getHandler().getView({
3820
3820
  model: k.res_model,
3821
3821
  type: "form",
3822
3822
  id: ((U = k == null ? void 0 : k.view_id) == null ? void 0 : U[0]) || void 0,
@@ -3908,7 +3908,7 @@ const { useToken: Pf } = Xe, Mf = (t) => {
3908
3908
  processAction: D,
3909
3909
  globalValues: r
3910
3910
  },
3911
- children: /* @__PURE__ */ H(he, { children: [
3911
+ children: /* @__PURE__ */ L(he, { children: [
3912
3912
  n,
3913
3913
  /* @__PURE__ */ s(
3914
3914
  Ft,
@@ -3962,7 +3962,7 @@ async function Nf({
3962
3962
  let a;
3963
3963
  if (t)
3964
3964
  for (const l of t) {
3965
- const c = await L.getHandler().getView({
3965
+ const c = await H.getHandler().getView({
3966
3966
  model: n,
3967
3967
  type: l[1],
3968
3968
  id: l[0],
@@ -3973,7 +3973,7 @@ async function Nf({
3973
3973
  else {
3974
3974
  const l = e.split(",");
3975
3975
  for (const c of l) {
3976
- const d = await L.getHandler().getView({
3976
+ const d = await H.getHandler().getView({
3977
3977
  model: n,
3978
3978
  type: c,
3979
3979
  context: r
@@ -4038,7 +4038,7 @@ const Vf = $t($f), Wa = ({
4038
4038
  selectedRowItems: n,
4039
4039
  onRefreshParentValues: r
4040
4040
  }), [c, d] = T(null), [f, u] = T(!1), [p] = Re(
4041
- L.getHandler().getToolbar
4041
+ H.getHandler().getToolbar
4042
4042
  ), m = i || c, g = O(async () => {
4043
4043
  if (i || c != null && c.action || c != null && c.print)
4044
4044
  return m;
@@ -4170,7 +4170,7 @@ function eo({ res_id: t, searchParams: e }) {
4170
4170
  }, v = Ga(h), { type: y } = l || {};
4171
4171
  let b = !g;
4172
4172
  y === "form" && (b = !g || !t);
4173
- const w = /* @__PURE__ */ s("div", { style: { padding: 2 }, children: /* @__PURE__ */ H(ct.Compact, { style: { width: "100%" }, children: [
4173
+ const w = /* @__PURE__ */ s("div", { style: { padding: 2 }, children: /* @__PURE__ */ L(ct.Compact, { style: { width: "100%" }, children: [
4174
4174
  /* @__PURE__ */ s(
4175
4175
  ft,
4176
4176
  {
@@ -4281,7 +4281,7 @@ function Gf({
4281
4281
  try {
4282
4282
  m == null || m(!0);
4283
4283
  const ie = d[0].id;
4284
- await L.getHandler().duplicate({
4284
+ await H.getHandler().duplicate({
4285
4285
  id: ie,
4286
4286
  model: g,
4287
4287
  context: { ...t }
@@ -4301,7 +4301,7 @@ function Gf({
4301
4301
  ]), le = O(async () => {
4302
4302
  var ne;
4303
4303
  try {
4304
- f == null || f(!0), await L.getHandler().deleteObjects({
4304
+ f == null || f(!0), await H.getHandler().deleteObjects({
4305
4305
  model: g,
4306
4306
  ids: d.map((ie) => ie.id),
4307
4307
  context: { ...t }
@@ -4401,13 +4401,13 @@ function Gf({
4401
4401
  onOk: le
4402
4402
  });
4403
4403
  }, [le, N]);
4404
- return /* @__PURE__ */ H(ct, { wrap: !0, children: [
4405
- S && /* @__PURE__ */ H(he, { children: [
4404
+ return /* @__PURE__ */ L(ct, { wrap: !0, children: [
4405
+ S && /* @__PURE__ */ L(he, { children: [
4406
4406
  /* @__PURE__ */ s(nt, {}),
4407
4407
  /* @__PURE__ */ s(gt, {}),
4408
4408
  /* @__PURE__ */ s(gt, {})
4409
4409
  ] }),
4410
- !e && /* @__PURE__ */ H(he, { children: [
4410
+ !e && /* @__PURE__ */ L(he, { children: [
4411
4411
  /* @__PURE__ */ s(
4412
4412
  Df,
4413
4413
  {
@@ -4486,7 +4486,7 @@ function Gf({
4486
4486
  onClick: z
4487
4487
  }
4488
4488
  ),
4489
- !e && /* @__PURE__ */ H(he, { children: [
4489
+ !e && /* @__PURE__ */ L(he, { children: [
4490
4490
  /* @__PURE__ */ s(gt, {}),
4491
4491
  /* @__PURE__ */ s(
4492
4492
  fs,
@@ -4502,7 +4502,7 @@ function Gf({
4502
4502
  /* @__PURE__ */ s(gt, {}),
4503
4503
  /* @__PURE__ */ s(Zt, { icon: /* @__PURE__ */ s(qr, {}), ...Q }),
4504
4504
  /* @__PURE__ */ s(Zt, { icon: /* @__PURE__ */ s(Gr, {}), ...de }),
4505
- W && /* @__PURE__ */ H(he, { children: [
4505
+ W && /* @__PURE__ */ L(he, { children: [
4506
4506
  /* @__PURE__ */ s(gt, {}),
4507
4507
  /* @__PURE__ */ s(
4508
4508
  Zt,
@@ -4550,7 +4550,7 @@ function Gf({
4550
4550
  const Yf = it(Gf), za = it(() => /* @__PURE__ */ s(
4551
4551
  Mc,
4552
4552
  {
4553
- component: () => /* @__PURE__ */ H(
4553
+ component: () => /* @__PURE__ */ L(
4554
4554
  "svg",
4555
4555
  {
4556
4556
  xmlns: "http://www.w3.org/2000/svg",
@@ -4594,7 +4594,7 @@ const { useToken: zf } = Xe, { Title: Kf, Text: Tr } = on, to = ({
4594
4594
  return null;
4595
4595
  if ((i == null ? void 0 : i.type) === "form" && a) {
4596
4596
  if (d === 0)
4597
- return /* @__PURE__ */ H(he, { children: [
4597
+ return /* @__PURE__ */ L(he, { children: [
4598
4598
  p("editingDocument"),
4599
4599
  " (id:",
4600
4600
  " ",
@@ -4608,7 +4608,7 @@ const { useToken: zf } = Xe, { Title: Kf, Text: Tr } = on, to = ({
4608
4608
  ")"
4609
4609
  ] });
4610
4610
  const h = (l ?? 0) + 1, v = u === "infinite" ? d : c == null ? void 0 : c.length;
4611
- return /* @__PURE__ */ H(he, { children: [
4611
+ return /* @__PURE__ */ L(he, { children: [
4612
4612
  p("register"),
4613
4613
  " ",
4614
4614
  h,
@@ -4626,14 +4626,14 @@ const { useToken: zf } = Xe, { Title: Kf, Text: Tr } = on, to = ({
4626
4626
  ")"
4627
4627
  ] });
4628
4628
  }
4629
- return (i == null ? void 0 : i.type) === "tree" && (f != null && f.length) ? f.length === 1 ? /* @__PURE__ */ H(he, { children: [
4629
+ return (i == null ? void 0 : i.type) === "tree" && (f != null && f.length) ? f.length === 1 ? /* @__PURE__ */ L(he, { children: [
4630
4630
  "1 ",
4631
4631
  p("selectedRegisters"),
4632
4632
  " - (id:",
4633
4633
  " ",
4634
4634
  /* @__PURE__ */ s(Tr, { copyable: !0, children: f[0].id }),
4635
4635
  ")"
4636
- ] }) : /* @__PURE__ */ H(he, { children: [
4636
+ ] }) : /* @__PURE__ */ L(he, { children: [
4637
4637
  f.length,
4638
4638
  " ",
4639
4639
  p("selectedRegisters"),
@@ -4657,8 +4657,8 @@ const { useToken: zf } = Xe, { Title: Kf, Text: Tr } = on, to = ({
4657
4657
  c == null ? void 0 : c.length,
4658
4658
  p
4659
4659
  ]);
4660
- return /* @__PURE__ */ H("div", { style: { position: "sticky", top: 80, zIndex: 3 }, children: [
4661
- /* @__PURE__ */ H(
4660
+ return /* @__PURE__ */ L("div", { style: { position: "sticky", top: 80, zIndex: 3 }, children: [
4661
+ /* @__PURE__ */ L(
4662
4662
  Ge,
4663
4663
  {
4664
4664
  className: "shadow-md",
@@ -4670,7 +4670,7 @@ const { useToken: zf } = Xe, { Title: Kf, Text: Tr } = on, to = ({
4670
4670
  },
4671
4671
  align: "middle",
4672
4672
  children: [
4673
- /* @__PURE__ */ H(Oe, { flex: 2, children: [
4673
+ /* @__PURE__ */ L(Oe, { flex: 2, children: [
4674
4674
  /* @__PURE__ */ s(Kf, { level: 3, style: { marginBottom: 0 }, children: t || o }),
4675
4675
  r,
4676
4676
  g
@@ -4689,7 +4689,7 @@ const { useToken: zf } = Xe, { Title: Kf, Text: Tr } = on, to = ({
4689
4689
  enabled: o = !0
4690
4690
  }) => {
4691
4691
  const [i, a] = T(!0), [l, c] = T(), [d, f] = T(), u = Z(!1), [p, m] = Re(
4692
- L.getHandler().getView
4692
+ H.getHandler().getView
4693
4693
  ), { showErrorNotification: g } = yt();
4694
4694
  Ue(() => (o && h(), () => {
4695
4695
  m();
@@ -4754,9 +4754,9 @@ const { useToken: zf } = Xe, { Title: Kf, Text: Tr } = on, to = ({
4754
4754
  n(), o();
4755
4755
  }, []);
4756
4756
  const [e, n] = Re(
4757
- L.getHandler().readUserViewPrefs
4757
+ H.getHandler().readUserViewPrefs
4758
4758
  ), [r, o] = Re(
4759
- L.getHandler().saveUserViewPrefs
4759
+ H.getHandler().saveUserViewPrefs
4760
4760
  ), i = ut(async () => {
4761
4761
  if (!t)
4762
4762
  throw new Error("Unknown column state key");
@@ -4862,7 +4862,7 @@ const { useToken: zf } = Xe, { Title: Kf, Text: Tr } = on, to = ({
4862
4862
  showEmptyValues: r
4863
4863
  }) => {
4864
4864
  const [o, i] = T(), [a, l] = T(!1), [c, d] = Re(
4865
- L.getHandler().readAggregates
4865
+ H.getHandler().readAggregates
4866
4866
  ), f = Jt(() => {
4867
4867
  if (t)
4868
4868
  return t.columns.filter((m) => Object.keys(m).some((g) => {
@@ -4937,7 +4937,7 @@ const { useToken: zf } = Xe, { Title: Kf, Text: Tr } = on, to = ({
4937
4937
  isLoading: e
4938
4938
  }) => {
4939
4939
  const n = t && Object.keys(t).sort().map((r) => t[r].map((a) => `${a.label}: ${a.amount}`).join(", "));
4940
- return /* @__PURE__ */ H(
4940
+ return /* @__PURE__ */ L(
4941
4941
  "div",
4942
4942
  {
4943
4943
  style: {
@@ -5082,7 +5082,7 @@ const { useToken: zf } = Xe, { Title: Kf, Text: Tr } = on, to = ({
5082
5082
  label: ""
5083
5083
  })
5084
5084
  ];
5085
- return /* @__PURE__ */ H(he, { children: [
5085
+ return /* @__PURE__ */ L(he, { children: [
5086
5086
  n && /* @__PURE__ */ s(
5087
5087
  Kr,
5088
5088
  {
@@ -5095,7 +5095,7 @@ const { useToken: zf } = Xe, { Title: Kf, Text: Tr } = on, to = ({
5095
5095
  align: "left"
5096
5096
  }
5097
5097
  ),
5098
- /* @__PURE__ */ H("div", { className: "flex flex-col gap-2 w-full", children: [
5098
+ /* @__PURE__ */ L("div", { className: "flex flex-col gap-2 w-full", children: [
5099
5099
  /* @__PURE__ */ s(Ge, { className: "w-full", children: /* @__PURE__ */ s(Oe, { span: 24, children: /* @__PURE__ */ s(Xa, { ...t, ooui: i[0], showLabel: !1 }) }) }),
5100
5100
  /* @__PURE__ */ s(Ge, { className: "w-full", children: /* @__PURE__ */ s(Oe, { span: 24, children: /* @__PURE__ */ s(We, { ...t, ooui: i[1], showLabel: !1, children: /* @__PURE__ */ s(op, {}) }) }) })
5101
5101
  ] })
@@ -5108,7 +5108,7 @@ const { useToken: zf } = Xe, { Title: Kf, Text: Tr } = on, to = ({
5108
5108
  () => dt().hour(0).minute(0).second(0),
5109
5109
  []
5110
5110
  );
5111
- return /* @__PURE__ */ H(Ge, { gutter: 8, children: [
5111
+ return /* @__PURE__ */ L(Ge, { gutter: 8, children: [
5112
5112
  /* @__PURE__ */ s(Oe, { span: 12, children: /* @__PURE__ */ s(
5113
5113
  No,
5114
5114
  {
@@ -5209,7 +5209,7 @@ function mp(t) {
5209
5209
  layout: "vertical"
5210
5210
  }
5211
5211
  );
5212
- return /* @__PURE__ */ H("div", { style: { width: "100%" }, children: [
5212
+ return /* @__PURE__ */ L("div", { style: { width: "100%" }, children: [
5213
5213
  n && /* @__PURE__ */ s(
5214
5214
  Kr,
5215
5215
  {
@@ -5222,7 +5222,7 @@ function mp(t) {
5222
5222
  align: "left"
5223
5223
  }
5224
5224
  ),
5225
- /* @__PURE__ */ H(
5225
+ /* @__PURE__ */ L(
5226
5226
  Ge,
5227
5227
  {
5228
5228
  align: "bottom",
@@ -5365,7 +5365,7 @@ const { useToken: Cp } = Xe, { Title: Sp } = on, { Header: Tp, Content: Fp, Foot
5365
5365
  padding: "0 16px",
5366
5366
  borderBottom: "1px solid #f0f0f0"
5367
5367
  };
5368
- return /* @__PURE__ */ s(Gd, { children: t && /* @__PURE__ */ H(he, { children: [
5368
+ return /* @__PURE__ */ s(Gd, { children: t && /* @__PURE__ */ L(he, { children: [
5369
5369
  /* @__PURE__ */ s(
5370
5370
  Bs.div,
5371
5371
  {
@@ -5394,7 +5394,7 @@ const { useToken: Cp } = Xe, { Title: Sp } = on, { Header: Tp, Content: Fp, Foot
5394
5394
  allowOutsideClick: !0,
5395
5395
  returnFocusOnDeactivate: !0
5396
5396
  },
5397
- children: /* @__PURE__ */ H(
5397
+ children: /* @__PURE__ */ L(
5398
5398
  Bs.div,
5399
5399
  {
5400
5400
  ref: f,
@@ -5417,7 +5417,7 @@ const { useToken: Cp } = Xe, { Title: Sp } = on, { Header: Tp, Content: Fp, Foot
5417
5417
  flexDirection: "column"
5418
5418
  },
5419
5419
  children: [
5420
- /* @__PURE__ */ H(Tp, { style: h, children: [
5420
+ /* @__PURE__ */ L(Tp, { style: h, children: [
5421
5421
  /* @__PURE__ */ s(Sp, { level: 3, style: { margin: 0, flex: 1 }, children: r }),
5422
5422
  i && /* @__PURE__ */ s(
5423
5423
  "div",
@@ -6278,9 +6278,9 @@ const zn = /* @__PURE__ */ ga(Bh), { Text: jh } = on, Uh = ({
6278
6278
  } = jt(), [p, m] = T(
6279
6279
  (o == null ? void 0 : o.name) || ""
6280
6280
  ), [g, h] = T(!1), [v, y] = T(!1), [b, w] = T(!1), [C, x] = T(!1), [D, S] = T(""), [P] = Re(
6281
- L.getHandler().update
6281
+ H.getHandler().update
6282
6282
  ), [F] = Re(
6283
- L.getHandler().create
6283
+ H.getHandler().create
6284
6284
  );
6285
6285
  Ue(() => {
6286
6286
  if (!l) {
@@ -6504,7 +6504,7 @@ const zn = /* @__PURE__ */ ga(Bh), { Text: jh } = on, Uh = ({
6504
6504
  ), M = ut(async () => {
6505
6505
  h(!1), k();
6506
6506
  }, [k]), W = ut(
6507
- (B) => l && p && (o || v) ? /* @__PURE__ */ H("div", { children: [
6507
+ (B) => l && p && (o || v) ? /* @__PURE__ */ L("div", { children: [
6508
6508
  /* @__PURE__ */ s("div", { children: B }),
6509
6509
  /* @__PURE__ */ s(
6510
6510
  "div",
@@ -6648,7 +6648,7 @@ const zn = /* @__PURE__ */ ga(Bh), { Text: jh } = on, Uh = ({
6648
6648
  backgroundColor: A ? "#f0f0f0" : void 0,
6649
6649
  fontWeight: A ? "bold" : void 0
6650
6650
  },
6651
- children: /* @__PURE__ */ s("div", { style: { paddingLeft: 18, paddingRight: 18 }, children: /* @__PURE__ */ H(
6651
+ children: /* @__PURE__ */ s("div", { style: { paddingLeft: 18, paddingRight: 18 }, children: /* @__PURE__ */ L(
6652
6652
  "div",
6653
6653
  {
6654
6654
  style: {
@@ -6721,7 +6721,7 @@ const zn = /* @__PURE__ */ ga(Bh), { Text: jh } = on, Uh = ({
6721
6721
  style: {
6722
6722
  height: "100%"
6723
6723
  },
6724
- children: /* @__PURE__ */ H("div", { style: { position: "relative", height: "100%" }, children: [
6724
+ children: /* @__PURE__ */ L("div", { style: { position: "relative", height: "100%" }, children: [
6725
6725
  Object.keys(c).filter(
6726
6726
  (x) => c[x] !== void 0
6727
6727
  ).length > 0 && /* @__PURE__ */ s(
@@ -6961,7 +6961,7 @@ const El = (t) => {
6961
6961
  (Y = m.current) == null || Y.resetFields(), (ge = m.current) == null || ge.setFieldsValue({}), (ve = (be = m.current) == null ? void 0 : be.resetInitialValues) == null || ve.call(be), y([]), w({}), V(), o && o();
6962
6962
  },
6963
6963
  [v, o, V]
6964
- ), oe = Jt(() => U ? ee ? /* @__PURE__ */ H(ct.Compact, { size: "small", children: [
6964
+ ), oe = Jt(() => U ? ee ? /* @__PURE__ */ L(ct.Compact, { size: "small", children: [
6965
6965
  /* @__PURE__ */ s(
6966
6966
  je,
6967
6967
  {
@@ -7017,7 +7017,7 @@ const El = (t) => {
7017
7017
  E,
7018
7018
  M
7019
7019
  ]);
7020
- return /* @__PURE__ */ H(he, { children: [
7020
+ return /* @__PURE__ */ L(he, { children: [
7021
7021
  /* @__PURE__ */ s(
7022
7022
  Rp,
7023
7023
  {
@@ -7107,7 +7107,7 @@ const El = (t) => {
7107
7107
  searchParams: n
7108
7108
  }) => {
7109
7109
  const { t: r } = we();
7110
- return /* @__PURE__ */ H(
7110
+ return /* @__PURE__ */ L(
7111
7111
  "div",
7112
7112
  {
7113
7113
  style: {
@@ -7159,12 +7159,12 @@ function Gh(t) {
7159
7159
  isSearching: o,
7160
7160
  hideAdvancedFilter: i
7161
7161
  } = t, { t: a } = we();
7162
- return /* @__PURE__ */ H(Ge, { children: [
7163
- !i && /* @__PURE__ */ s(Oe, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ H("a", { className: "text-xs", onClick: e, children: [
7162
+ return /* @__PURE__ */ L(Ge, { children: [
7163
+ !i && /* @__PURE__ */ s(Oe, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ L("a", { className: "text-xs", onClick: e, children: [
7164
7164
  n ? /* @__PURE__ */ s(Lc, { className: "pr-1" }) : /* @__PURE__ */ s(ur, { className: "pr-1" }),
7165
7165
  a(n ? "simple_search" : "advanced_search")
7166
7166
  ] }) }),
7167
- /* @__PURE__ */ H(Oe, { span: i ? 24 : 12, className: "text-right pb-2", children: [
7167
+ /* @__PURE__ */ L(Oe, { span: i ? 24 : 12, className: "text-right pb-2", children: [
7168
7168
  /* @__PURE__ */ s(je, { className: "mr-5", icon: /* @__PURE__ */ s(Gn, {}), onClick: r, children: a("clear") }),
7169
7169
  /* @__PURE__ */ s(
7170
7170
  je,
@@ -7182,9 +7182,9 @@ function Gh(t) {
7182
7182
  }
7183
7183
  function Yh(t) {
7184
7184
  const { onLimitChange: e } = t, { t: n } = we(), r = new Do({ name: "limit" }), o = new Do({ name: "offset" });
7185
- return /* @__PURE__ */ H("div", { className: "pl-2 pt-2", children: [
7185
+ return /* @__PURE__ */ L("div", { className: "pl-2 pt-2", children: [
7186
7186
  /* @__PURE__ */ s(Ge, { children: n("parameters") }, "count_params"),
7187
- /* @__PURE__ */ H(ct, { align: "center", children: [
7187
+ /* @__PURE__ */ L(ct, { align: "center", children: [
7188
7188
  n("limit") + " :",
7189
7189
  /* @__PURE__ */ s(
7190
7190
  ar,
@@ -7260,8 +7260,8 @@ function oo(t) {
7260
7260
  var _;
7261
7261
  f == null || f((_ = R.bounds) == null ? void 0 : _.height);
7262
7262
  },
7263
- children: ({ measureRef: R }) => /* @__PURE__ */ s("div", { ref: R, children: /* @__PURE__ */ H("div", { style: { display: d ? "block" : "none" }, children: [
7264
- /* @__PURE__ */ H(
7263
+ children: ({ measureRef: R }) => /* @__PURE__ */ s("div", { ref: R, children: /* @__PURE__ */ L("div", { style: { display: d ? "block" : "none" }, children: [
7264
+ /* @__PURE__ */ L(
7265
7265
  Ot,
7266
7266
  {
7267
7267
  className: "p-3 shadow-md",
@@ -7451,9 +7451,9 @@ const dr = ({
7451
7451
  results: d,
7452
7452
  onRecordsUpdated: f
7453
7453
  } = t, u = re(() => c != null && c.field_parent ? { ...c == null ? void 0 : c.fields, [c == null ? void 0 : c.field_parent]: {} } : c == null ? void 0 : c.fields, [c]), p = (c == null ? void 0 : c.fields_in_conditions) !== void 0, m = Z(null), [g, h] = T(!0), [v, y] = Re(
7454
- L.getHandler().readObjects
7454
+ H.getHandler().readObjects
7455
7455
  ), [b, w] = Re(
7456
- L.getHandler().parseConditions
7456
+ H.getHandler().parseConditions
7457
7457
  ), C = Fs(), x = Z({}), D = O(
7458
7458
  (_, I) => I ? o == null ? void 0 : o.some(
7459
7459
  (A) => JSON.stringify(_[A]) !== JSON.stringify(I[A])
@@ -7565,7 +7565,7 @@ const dr = ({
7565
7565
  const [f, u] = T(!1), p = Z([]), m = e == null ? void 0 : e.fields, g = (e == null ? void 0 : e.fields_in_conditions) !== void 0, [h, v] = T(
7566
7566
  /* @__PURE__ */ new Set()
7567
7567
  ), y = Z(/* @__PURE__ */ new Set()), b = Z([]), w = Z(null), [C, x] = T(!0), [D, S] = Re(
7568
- async (N) => L.getHandler().processSearchResults({
7568
+ async (N) => H.getHandler().processSearchResults({
7569
7569
  searchIds: N.searchIds,
7570
7570
  model: t,
7571
7571
  fieldsToRetrieve: N.fieldsToRetrieve,
@@ -7573,7 +7573,7 @@ const dr = ({
7573
7573
  fields: m
7574
7574
  })
7575
7575
  ), [P, F] = Re(
7576
- L.getHandler().parseConditions
7576
+ H.getHandler().parseConditions
7577
7577
  ), $ = Fs();
7578
7578
  ce(() => {
7579
7579
  o === !1 && M(), (o === void 0 || o === !0) && !$ && M(), (o === void 0 || o === !0) && $ && W();
@@ -7732,7 +7732,7 @@ const dr = ({
7732
7732
  const { t: e } = we(), n = (a) => {
7733
7733
  a.preventDefault(), t();
7734
7734
  }, r = e("nameSearchLimitNote"), o = e("filterSearchLink"), i = r.split(o);
7735
- return i.length > 1 ? /* @__PURE__ */ H("span", { style: { fontSize: "12px", color: "#666" }, children: [
7735
+ return i.length > 1 ? /* @__PURE__ */ L("span", { style: { fontSize: "12px", color: "#666" }, children: [
7736
7736
  i[0],
7737
7737
  /* @__PURE__ */ s(
7738
7738
  pa,
@@ -7754,7 +7754,7 @@ const dr = ({
7754
7754
  customMiddleComponent: n
7755
7755
  }) => {
7756
7756
  const { t: r } = we(), o = n ? 6 : 12;
7757
- return /* @__PURE__ */ H(
7757
+ return /* @__PURE__ */ L(
7758
7758
  Ge,
7759
7759
  {
7760
7760
  align: "bottom",
@@ -7763,7 +7763,7 @@ const dr = ({
7763
7763
  children: [
7764
7764
  /* @__PURE__ */ s(Oe, { span: o, children: /* @__PURE__ */ s(Qh, { selectedRowKeys: e }) }),
7765
7765
  n && /* @__PURE__ */ s(Oe, { span: 12, className: "text-center", children: n }),
7766
- /* @__PURE__ */ H(
7766
+ /* @__PURE__ */ L(
7767
7767
  Oe,
7768
7768
  {
7769
7769
  span: o,
@@ -7783,7 +7783,7 @@ const dr = ({
7783
7783
  }) => {
7784
7784
  const { t: e } = we();
7785
7785
  if (t.length === 1)
7786
- return /* @__PURE__ */ H(he, { children: [
7786
+ return /* @__PURE__ */ L(he, { children: [
7787
7787
  "1 ",
7788
7788
  e("selectedRegisters"),
7789
7789
  " - (id:",
@@ -7792,7 +7792,7 @@ const dr = ({
7792
7792
  ")"
7793
7793
  ] });
7794
7794
  if (t.length > 1)
7795
- return /* @__PURE__ */ H(he, { children: [
7795
+ return /* @__PURE__ */ L(he, { children: [
7796
7796
  t.length,
7797
7797
  " ",
7798
7798
  e("selectedRegisters") + " ",
@@ -7850,7 +7850,7 @@ const eg = (t) => /* @__PURE__ */ s(We, { ...t, children: /* @__PURE__ */ s(Nl,
7850
7850
  maximumFractionDigits: 4,
7851
7851
  useGrouping: !1
7852
7852
  })}%`;
7853
- return /* @__PURE__ */ H(tg, { children: [
7853
+ return /* @__PURE__ */ L(tg, { children: [
7854
7854
  /* @__PURE__ */ s(ng, { percent: t }),
7855
7855
  /* @__PURE__ */ s(rg, { children: e })
7856
7856
  ] });
@@ -7917,7 +7917,7 @@ const eg = (t) => /* @__PURE__ */ s(We, { ...t, children: /* @__PURE__ */ s(Nl,
7917
7917
  }
7918
7918
  ];
7919
7919
  }, [l, t]);
7920
- return /* @__PURE__ */ H(jn, { children: [
7920
+ return /* @__PURE__ */ L(jn, { children: [
7921
7921
  /* @__PURE__ */ s(
7922
7922
  ad,
7923
7923
  {
@@ -7959,13 +7959,13 @@ const eg = (t) => /* @__PURE__ */ s(We, { ...t, children: /* @__PURE__ */ s(Nl,
7959
7959
  ), { openRelate: d, openAction: f } = c || {}, u = pe(
7960
7960
  Sn
7961
7961
  ), { processAction: p } = u || {}, [m, g] = Re(
7962
- L.getHandler().getView
7962
+ H.getHandler().getView
7963
7963
  ), [h, v] = Re(
7964
- L.getHandler().getToolbar
7964
+ H.getHandler().getToolbar
7965
7965
  ), [y, b] = Re(
7966
- L.getHandler().getFields
7966
+ H.getHandler().getFields
7967
7967
  ), [w, C] = Re(
7968
- L.getHandler().readObjects
7968
+ H.getHandler().readObjects
7969
7969
  ), x = Lt(
7970
7970
  wt.FEATURE_GET_TOOLBAR
7971
7971
  ), D = O(() => {
@@ -8106,7 +8106,7 @@ const Ow = Object.values(bn), ig = (t) => {
8106
8106
  let i = !0;
8107
8107
  return r === !0 && (i = !1), n.showMenu !== void 0 && (i = n.showMenu), i;
8108
8108
  }, [n.showMenu, r]);
8109
- return e ? /* @__PURE__ */ H(ct, { children: [
8109
+ return e ? /* @__PURE__ */ L(ct, { children: [
8110
8110
  /* @__PURE__ */ s(he, { children: e.value }),
8111
8111
  o && /* @__PURE__ */ s(so, { id: e.id, model: e.model })
8112
8112
  ] }) : /* @__PURE__ */ s(he, {});
@@ -8115,7 +8115,7 @@ const Ow = Object.values(bn), ig = (t) => {
8115
8115
  if (!e || e && o && a)
8116
8116
  return;
8117
8117
  l(!0);
8118
- const h = (await L.getHandler().execute({
8118
+ const h = (await H.getHandler().execute({
8119
8119
  action: "name_get",
8120
8120
  payload: [f],
8121
8121
  model: c,
@@ -8134,7 +8134,7 @@ const Ow = Object.values(bn), ig = (t) => {
8134
8134
  if (a)
8135
8135
  return /* @__PURE__ */ s(Bt, {});
8136
8136
  const m = r.get(c);
8137
- return /* @__PURE__ */ H(ct, { children: [
8137
+ return /* @__PURE__ */ L(ct, { children: [
8138
8138
  /* @__PURE__ */ s(he, { children: `${m}:` }),
8139
8139
  /* @__PURE__ */ s(he, { children: o }),
8140
8140
  !p && /* @__PURE__ */ s(so, { id: f, model: c })
@@ -8154,7 +8154,7 @@ function cg(t) {
8154
8154
  const dg = (t) => /* @__PURE__ */ s(We, { ...t, children: /* @__PURE__ */ s(Vl, { ...t }) }), Vl = (t) => {
8155
8155
  var m;
8156
8156
  const { t: e } = we(), [n, r] = Re(
8157
- L.getHandler().readObjects
8157
+ H.getHandler().readObjects
8158
8158
  ), { getFieldValue: o } = pe(Qe) || {}, { ooui: i, value: a } = t, [l, c] = T("default");
8159
8159
  let d = a, f = mr, u = a;
8160
8160
  i.selectionValues.size ? d = i.selectionValues.get(a) : Array.isArray(a) ? (u = a[0], d = a[1]) : i.fieldType === "boolean" && (d = a ? cg(i.label) : `${e("not")} ${i.label.toLowerCase()}`, f = qu);
@@ -8263,7 +8263,7 @@ const dg = (t) => /* @__PURE__ */ s(We, { ...t, children: /* @__PURE__ */ s(Vl,
8263
8263
  const y = i.filter((b) => b !== v);
8264
8264
  a(y), p(y), u && u();
8265
8265
  };
8266
- return /* @__PURE__ */ H(
8266
+ return /* @__PURE__ */ L(
8267
8267
  "div",
8268
8268
  {
8269
8269
  style: {
@@ -8473,7 +8473,7 @@ const dg = (t) => /* @__PURE__ */ s(We, { ...t, children: /* @__PURE__ */ s(Vl,
8473
8473
  context: r
8474
8474
  }) => {
8475
8475
  const [o, i] = T([]), [a, l] = T(!1), [c, d] = Re(
8476
- L.getHandler().readObjects
8476
+ H.getHandler().readObjects
8477
8477
  ), { relation: f, field: u } = n, p = O(async () => {
8478
8478
  try {
8479
8479
  l(!0);
@@ -8579,11 +8579,11 @@ function Og(t, e) {
8579
8579
  elementRef: P,
8580
8580
  offset: _g
8581
8581
  }), [$, R] = Re(
8582
- L.getHandler().searchCount
8582
+ H.getHandler().searchCount
8583
8583
  ), [_, I] = Re(
8584
- L.getHandler().searchForTree
8584
+ H.getHandler().searchForTree
8585
8585
  ), [A, k] = Re(
8586
- L.getHandler().searchAllIds
8586
+ H.getHandler().searchAllIds
8587
8587
  );
8588
8588
  ce(() => () => {
8589
8589
  R(), I(), k();
@@ -9049,7 +9049,7 @@ function Og(t, e) {
9049
9049
  Qt
9050
9050
  ]
9051
9051
  ), Ke = ne && x && w !== void 0 && w !== null && w === Ct;
9052
- return /* @__PURE__ */ H(jn, { children: [
9052
+ return /* @__PURE__ */ L(jn, { children: [
9053
9053
  p === "top" && /* @__PURE__ */ s(
9054
9054
  oo,
9055
9055
  {
@@ -9128,7 +9128,7 @@ const jl = $t(Og), Ni = (t, e = "14px -apple-system") => {
9128
9128
  return null;
9129
9129
  const d = async (p) => {
9130
9130
  p.preventDefault(), p.stopPropagation(), a(!0), await r(), a(!1);
9131
- }, f = /* @__PURE__ */ H("span", { children: [
9131
+ }, f = /* @__PURE__ */ L("span", { children: [
9132
9132
  c.recordsSelected.replace(
9133
9133
  "{numberOfSelectedRows}",
9134
9134
  t.toString()
@@ -9206,7 +9206,7 @@ const jl = $t(Og), Ni = (t, e = "14px -apple-system") => {
9206
9206
  const q = F == null ? void 0 : F.filter(
9207
9207
  (oe) => u && u.includes(oe.id)
9208
9208
  ).length;
9209
- return c ? null : o === void 0 ? /* @__PURE__ */ s(nt, { className: "pb-4" }) : /* @__PURE__ */ H(Ge, { align: "bottom", className: "pb-4", children: [
9209
+ return c ? null : o === void 0 ? /* @__PURE__ */ s(nt, { className: "pb-4" }) : /* @__PURE__ */ L(Ge, { align: "bottom", className: "pb-4", children: [
9210
9210
  /* @__PURE__ */ s(Oe, { span: S ? 8 : 12, children: /* @__PURE__ */ s(
9211
9211
  Tc,
9212
9212
  {
@@ -9255,7 +9255,7 @@ const jl = $t(Og), Ni = (t, e = "14px -apple-system") => {
9255
9255
  if (_ !== null && N && N.length > 0)
9256
9256
  return Dg(N, F, 600);
9257
9257
  }, [N, F, _]), Q = re(() => m && (_ != null && _.columns.some((q) => q.sum !== void 0)) ? m - 30 : m, [m, _ == null ? void 0 : _.columns]);
9258
- return _ === null || !K || ((de = K == null ? void 0 : K.columns) == null ? void 0 : de.length) === 0 ? /* @__PURE__ */ s(nt, { style: { padding: "2rem" } }) : /* @__PURE__ */ H(Ir, { children: [
9258
+ return _ === null || !K || ((de = K == null ? void 0 : K.columns) == null ? void 0 : de.length) === 0 ? /* @__PURE__ */ s(nt, { style: { padding: "2rem" } }) : /* @__PURE__ */ L(Ir, { children: [
9259
9259
  B,
9260
9260
  /* @__PURE__ */ s(
9261
9261
  Sd,
@@ -9326,7 +9326,7 @@ const Wl = (t) => {
9326
9326
  },
9327
9327
  [v]
9328
9328
  ), oe = O(() => y || U, [y, U]), se = O(async () => {
9329
- const ie = await L.getHandler().nameSearch({
9329
+ const ie = await H.getHandler().nameSearch({
9330
9330
  model: e,
9331
9331
  payload: l,
9332
9332
  limit: Q.current,
@@ -9336,7 +9336,7 @@ const Wl = (t) => {
9336
9336
  if (N(ie.length), f == null || f(ie.length), ie.length > 0) {
9337
9337
  const Te = ie.map((et) => et == null ? void 0 : et[0]), { colors: Ee, status: ke } = en(u), $e = {};
9338
9338
  Ee && ($e.colors = Ee), ke && ($e.status = ke);
9339
- const me = await L.getHandler().readEvalUiObjects({
9339
+ const me = await H.getHandler().readEvalUiObjects({
9340
9340
  model: e,
9341
9341
  ids: Te,
9342
9342
  arch: u == null ? void 0 : u.arch,
@@ -9370,7 +9370,7 @@ const Wl = (t) => {
9370
9370
  async (ie) => {
9371
9371
  const { params: Te, newOffset: Ee } = ie || {}, ke = nn(Te || D, b), { colors: $e, status: me } = en(u), qe = {};
9372
9372
  $e && (qe.colors = $e), me && (qe.status = me);
9373
- const { totalItems: st, results: Ze, attrsEvaluated: et } = await L.getHandler().searchForTree({
9373
+ const { totalItems: st, results: Ze, attrsEvaluated: et } = await H.getHandler().searchForTree({
9374
9374
  params: ke,
9375
9375
  limit: Q.current,
9376
9376
  offset: Ee || M,
@@ -9484,7 +9484,7 @@ const Wl = (t) => {
9484
9484
  C
9485
9485
  ]), ve = O(
9486
9486
  async (ie) => {
9487
- const Te = ie[(u == null ? void 0 : u.field_parent) || "child_id"], Ee = await L.getHandler().readObjects({
9487
+ const Te = ie[(u == null ? void 0 : u.field_parent) || "child_id"], Ee = await H.getHandler().readObjects({
9488
9488
  model: e,
9489
9489
  ids: Te,
9490
9490
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
@@ -9493,7 +9493,7 @@ const Wl = (t) => {
9493
9493
  return q([...oe(), ...Ee]), cn(en(u), Ee);
9494
9494
  },
9495
9495
  [u, e, d, oe, q]
9496
- ), ne = O(async () => await L.getHandler().searchAllIds({
9496
+ ), ne = O(async () => await H.getHandler().searchAllIds({
9497
9497
  params: nn(D, b),
9498
9498
  model: e,
9499
9499
  context: d,
@@ -9626,13 +9626,13 @@ function Mg(t, e) {
9626
9626
  }, rt = async () => {
9627
9627
  C(n);
9628
9628
  let Ie = r;
9629
- r || (Ie = await L.getHandler().getView({
9629
+ r || (Ie = await H.getHandler().getView({
9630
9630
  model: n,
9631
9631
  type: "form",
9632
9632
  context: u
9633
9633
  }));
9634
9634
  let at = o;
9635
- o || (at = await L.getHandler().getView({
9635
+ o || (at = await H.getHandler().getView({
9636
9636
  model: n,
9637
9637
  type: "tree",
9638
9638
  context: u
@@ -9649,7 +9649,7 @@ function Mg(t, e) {
9649
9649
  ), Ce = O(
9650
9650
  async (Ie) => {
9651
9651
  const { id: at } = Ie;
9652
- I.current || (I.current = await L.getHandler().treeButOpen({
9652
+ I.current || (I.current = await H.getHandler().treeButOpen({
9653
9653
  id: x.view_id,
9654
9654
  model: w,
9655
9655
  context: u
@@ -9698,7 +9698,7 @@ function Mg(t, e) {
9698
9698
  }, [Pe, p, ee]), Ve = re(() => x != null && x.isExpandable ? A - 160 : A - (R + 240), [A, R, x == null ? void 0 : x.isExpandable]), Ae = re(
9699
9699
  () => j == null ? void 0 : j.map((Ie) => Ie.id),
9700
9700
  [j]
9701
- ), Tt = O(() => !x || !S ? null : /* @__PURE__ */ H(he, { children: [
9701
+ ), Tt = O(() => !x || !S ? null : /* @__PURE__ */ L(he, { children: [
9702
9702
  /* @__PURE__ */ s(
9703
9703
  oo,
9704
9704
  {
@@ -9821,7 +9821,7 @@ const ql = $t(Mg), $g = Ct, Ng = (t) => {
9821
9821
  limit: U,
9822
9822
  setLimit: j
9823
9823
  } = Ol({ useLocalState: !i }), { treeMaxLimit: ee } = Xt(), { setCurrentSavedSearch: B } = jt(), z = Math.min(U, ee), [K, Q] = T(!0), [de, q] = T(), [oe, se] = T([]), [G, le] = T(!1), te = a || $, Y = Z(te), ge = Z(P), be = Z(g), ve = Z(), ne = Z([]), ie = Z(!1), Te = (r == null ? void 0 : r.fields_in_conditions) !== void 0, Ee = re(() => Ja({ treeViewId: r == null ? void 0 : r.view_id, model: o }), [r == null ? void 0 : r.view_id, o]), [ke, $e] = Re(
9824
- L.getHandler().parseConditions
9824
+ H.getHandler().parseConditions
9825
9825
  ), {
9826
9826
  fetchColumnState: me,
9827
9827
  loading: qe,
@@ -9873,11 +9873,11 @@ const ql = $t(Mg), $g = Ct, Ng = (t) => {
9873
9873
  results: I,
9874
9874
  onRecordsUpdated: J
9875
9875
  }), { showErrorNotification: ue } = yt(), [De, Ve] = Re(
9876
- L.getHandler().searchCount
9876
+ H.getHandler().searchCount
9877
9877
  ), [Ae, Tt] = Re(
9878
- L.getHandler().searchForTree
9878
+ H.getHandler().searchForTree
9879
9879
  ), [pt, Dt] = Re(
9880
- L.getHandler().searchAllIds
9880
+ H.getHandler().searchAllIds
9881
9881
  ), Ie = re(
9882
9882
  () => nn(P || [], c),
9883
9883
  [c, P]
@@ -10134,7 +10134,7 @@ const ql = $t(Mg), $g = Ct, Ng = (t) => {
10134
10134
  (_t, [Zn, Mt]) => (Mt != null && Mt.is_function || (_t[Zn] = Mt), _t),
10135
10135
  {}
10136
10136
  ));
10137
- const fe = await L.getHandler().readObjects({
10137
+ const fe = await H.getHandler().readObjects({
10138
10138
  model: o,
10139
10139
  ids: Le,
10140
10140
  fields: Ke,
@@ -10377,7 +10377,7 @@ const _o = (t) => {
10377
10377
  const r = Z(), o = pe(
10378
10378
  Sn
10379
10379
  ), { processAction: i } = o || {}, [a, l] = Re(
10380
- L.getHandler().treeButOpen
10380
+ H.getHandler().treeButOpen
10381
10381
  ), { showErrorNotification: c } = yt();
10382
10382
  return ce(() => () => {
10383
10383
  l();
@@ -10517,7 +10517,7 @@ function jg(t, e) {
10517
10517
  }),
10518
10518
  [C, l]
10519
10519
  ), Ye = Ee !== void 0 && Te, ze = Ye && j !== void 0 && j !== null && j === Ct, Pe = re(() => typeof j != "number" || isNaN(j) || j < 0 ? (B == null ? void 0 : B.length) || 0 : j || 0, [j, B]), Ne = re(() => (B == null ? void 0 : B.length) > 0 && (typeof j != "number" || isNaN(j) || j < 0) ? B == null ? void 0 : B.length : f ? Ct : te || $g, [B == null ? void 0 : B.length, j, f, te]), rt = y == null ? void 0 : y.isExpandable;
10520
- return /* @__PURE__ */ H(jn, { children: [
10520
+ return /* @__PURE__ */ L(jn, { children: [
10521
10521
  !rt && /* @__PURE__ */ s(
10522
10522
  Vg,
10523
10523
  {
@@ -10657,9 +10657,9 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
10657
10657
  } = pe(It), { token: W } = Wg(), { t: V } = we(), N = Lt(
10658
10658
  wt.FEATURE_SAVED_SEARCHES
10659
10659
  ), [U] = Re(
10660
- L.getHandler().searchAllIds
10660
+ H.getHandler().searchAllIds
10661
10661
  ), [j] = Re(
10662
- L.getHandler().readEvalUiObjects
10662
+ H.getHandler().readEvalUiObjects
10663
10663
  ), ee = O(async () => {
10664
10664
  if (!N || !r)
10665
10665
  return R == null || R([]), $ == null || $(null), [];
@@ -10750,7 +10750,7 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
10750
10750
  }, 100);
10751
10751
  }, [$, A, k, n]), de = O(() => {
10752
10752
  I == null || I(!0);
10753
- }, [I]), q = re(() => F != null && F.name ? /* @__PURE__ */ H(
10753
+ }, [I]), q = re(() => F != null && F.name ? /* @__PURE__ */ L(
10754
10754
  "div",
10755
10755
  {
10756
10756
  style: {
@@ -10762,11 +10762,11 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
10762
10762
  /* @__PURE__ */ s(
10763
10763
  Et,
10764
10764
  {
10765
- title: /* @__PURE__ */ H("div", { children: [
10765
+ title: /* @__PURE__ */ L("div", { children: [
10766
10766
  /* @__PURE__ */ s("div", { children: V("openSavedSearchInSidebar") }),
10767
10767
  /* @__PURE__ */ s("div", { style: { fontWeight: "bold", marginTop: "2px" }, children: F.name })
10768
10768
  ] }),
10769
- children: /* @__PURE__ */ H(
10769
+ children: /* @__PURE__ */ L(
10770
10770
  "div",
10771
10771
  {
10772
10772
  style: {
@@ -10833,7 +10833,7 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
10833
10833
  Q,
10834
10834
  V
10835
10835
  ]);
10836
- return e ? /* @__PURE__ */ H(jn, { children: [
10836
+ return e ? /* @__PURE__ */ L(jn, { children: [
10837
10837
  /* @__PURE__ */ s(to, { showSummary: v !== "infinite", subtitle: q, children: /* @__PURE__ */ s(
10838
10838
  Yf,
10839
10839
  {
@@ -11155,7 +11155,7 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
11155
11155
  viewData: d
11156
11156
  } = t, [f, u] = T(!1), [p, m] = T(), g = pe(
11157
11157
  It
11158
- ), { setGraphIsLoading: h = void 0 } = g || {}, [v] = Re(L.getHandler().getView);
11158
+ ), { setGraphIsLoading: h = void 0 } = g || {}, [v] = Re(H.getHandler().getView);
11159
11159
  Ht(e, () => ({
11160
11160
  refresh: () => {
11161
11161
  y();
@@ -11223,7 +11223,7 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
11223
11223
  }
11224
11224
  }, Kn = $t(zg), Kg = (t) => {
11225
11225
  const { model: e, domain: n = [], context: r = {}, view_id: o, manualIds: i } = t, [a, l] = T(!1), [c, d] = T(), [f, u] = T(), [p] = Re(
11226
- L.getHandler().readForView
11226
+ H.getHandler().readForView
11227
11227
  ), m = O(async () => {
11228
11228
  l(!0), d(void 0), i && n.push(["id", "in", i]);
11229
11229
  try {
@@ -11315,7 +11315,7 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
11315
11315
  tooltip: a,
11316
11316
  card: l = !1
11317
11317
  } = t, { token: c } = Xg(), d = Object.keys(i).length > 0;
11318
- return /* @__PURE__ */ H(
11318
+ return /* @__PURE__ */ L(
11319
11319
  "div",
11320
11320
  {
11321
11321
  className: d ? "shadow-md" : void 0,
@@ -11329,7 +11329,7 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
11329
11329
  borderRadius: c.borderRadius
11330
11330
  },
11331
11331
  children: [
11332
- /* @__PURE__ */ H(
11332
+ /* @__PURE__ */ L(
11333
11333
  Ge,
11334
11334
  {
11335
11335
  align: "middle",
@@ -11350,7 +11350,7 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
11350
11350
  cursor: d ? "grab" : void 0,
11351
11351
  overflow: "hidden"
11352
11352
  },
11353
- children: a ? /* @__PURE__ */ H(he, { children: [
11353
+ children: a ? /* @__PURE__ */ L(he, { children: [
11354
11354
  /* @__PURE__ */ s(Et, { title: a, children: /* @__PURE__ */ s(Ur, { className: "pr-1 text-xs" }) }),
11355
11355
  /* @__PURE__ */ s(Vi, { ellipsis: !0, children: e })
11356
11356
  ] }) : /* @__PURE__ */ s(
@@ -11389,7 +11389,7 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
11389
11389
  o();
11390
11390
  }, [e]);
11391
11391
  async function o() {
11392
- const i = await L.getHandler().search({
11392
+ const i = await H.getHandler().search({
11393
11393
  params: [],
11394
11394
  model: e,
11395
11395
  limit: 1
@@ -11410,7 +11410,7 @@ function Qg(t) {
11410
11410
  } = t, [c, d] = T(!1), [f, u] = T(!1), [p, m] = T(), [g, h] = T(), [v, y] = T(), [b, w] = T(1), [C, x] = T(0), D = Z(Ct), S = Z([]), [P, F] = T(0), [$, R] = T([]), [_, I] = T(void 0), [A, k] = T(), [E, M] = T(), [W, V] = T(), [N, U] = T(!1), j = Z([]), ee = (se) => {
11411
11411
  U(!0), w(se), x((se - 1) * D.current);
11412
11412
  }, B = async () => {
11413
- const se = j.current.length > 0 ? j.current : i, G = nn(S.current, se), { colors: le } = en(g), { totalItems: te, results: Y, attrsEvaluated: ge } = await L.getHandler().searchForTree({
11413
+ const se = j.current.length > 0 ? j.current : i, G = nn(S.current, se), { colors: le } = en(g), { totalItems: te, results: Y, attrsEvaluated: ge } = await H.getHandler().searchForTree({
11414
11414
  params: G,
11415
11415
  limit: D.current,
11416
11416
  offset: C,
@@ -11448,20 +11448,20 @@ function Qg(t) {
11448
11448
  d(!1);
11449
11449
  }
11450
11450
  }, Q = async () => {
11451
- const se = await L.getHandler().getViewsForAction({
11451
+ const se = await H.getHandler().getViewsForAction({
11452
11452
  action: e,
11453
11453
  context: l
11454
11454
  });
11455
11455
  j.current = se.domain, y(se.views.get("form")), h(se.views.get("tree")), m(se.model), D.current = se.limit;
11456
11456
  }, de = async () => {
11457
11457
  m(n);
11458
- const se = await L.getHandler().getView({
11458
+ const se = await H.getHandler().getView({
11459
11459
  model: n,
11460
11460
  type: "form",
11461
11461
  context: l
11462
11462
  });
11463
11463
  y(se);
11464
- const G = await L.getHandler().getView({
11464
+ const G = await H.getHandler().getView({
11465
11465
  model: n,
11466
11466
  type: "tree",
11467
11467
  id: r,
@@ -11479,7 +11479,7 @@ function Qg(t) {
11479
11479
  model: p,
11480
11480
  treeView: g
11481
11481
  });
11482
- }, oe = () => !g || !v ? null : (E && console.error(E), /* @__PURE__ */ H("div", { style: { overflowY: "scroll" }, children: [
11482
+ }, oe = () => !g || !v ? null : (E && console.error(E), /* @__PURE__ */ L("div", { style: { overflowY: "scroll" }, children: [
11483
11483
  E && /* @__PURE__ */ s(Rt, { className: "mt-10", message: E, type: "error", banner: !0 }),
11484
11484
  /* @__PURE__ */ s(
11485
11485
  xr,
@@ -11516,7 +11516,7 @@ const Kl = it(Qg), { useToken: Zg } = Xe, ey = (t) => {
11516
11516
  }, ty = (t) => {
11517
11517
  var y;
11518
11518
  const { token: e } = Zg(), { ooui: n, value: r } = t, { locale: o } = we(), [i, a] = T(n.icon), [l, c] = T(n.color), [d, f] = Re(
11519
- L.getHandler().parseCondition
11519
+ H.getHandler().parseCondition
11520
11520
  ), u = ir(
11521
11521
  bn.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
11522
11522
  );
@@ -11543,8 +11543,8 @@ const Kl = it(Qg), { useToken: Zg } = Xe, ey = (t) => {
11543
11543
  return !1;
11544
11544
  let b = !0;
11545
11545
  return u === !0 && (b = !1), n.showMenu !== void 0 && (b = n.showMenu), b;
11546
- }, [n, u]), m = /* @__PURE__ */ H(he, { children: [
11547
- /* @__PURE__ */ H("span", { children: [
11546
+ }, [n, u]), m = /* @__PURE__ */ L(he, { children: [
11547
+ /* @__PURE__ */ L("span", { children: [
11548
11548
  n.label,
11549
11549
  " "
11550
11550
  ] }),
@@ -11569,7 +11569,7 @@ const Kl = it(Qg), { useToken: Zg } = Xe, ey = (t) => {
11569
11569
  };
11570
11570
  h = r ? dt(r).format(b[n.fieldType]) : " ";
11571
11571
  }
11572
- if (n.fieldType === "many2one" && r && ((y = n.raw_props) != null && y.relation) && (h = /* @__PURE__ */ H(ct, { children: [
11572
+ if (n.fieldType === "many2one" && r && ((y = n.raw_props) != null && y.relation) && (h = /* @__PURE__ */ L(ct, { children: [
11573
11573
  h,
11574
11574
  p && /* @__PURE__ */ s(so, { id: r[0], model: n.raw_props.relation })
11575
11575
  ] })), r && (n.fieldType === "float" || n.fieldType === "integer"))
@@ -11600,7 +11600,7 @@ const Kl = it(Qg), { useToken: Zg } = Xe, ey = (t) => {
11600
11600
  }, [e, i, a]), f && f.message !== "active_id_not_found")
11601
11601
  return /* @__PURE__ */ s(Pa, { error: f });
11602
11602
  const { id: m, initialView: g, description: h } = l || {};
11603
- return /* @__PURE__ */ H(
11603
+ return /* @__PURE__ */ L(
11604
11604
  Yl,
11605
11605
  {
11606
11606
  id: m,
@@ -11687,9 +11687,9 @@ const Kl = it(Qg), { useToken: Zg } = Xe, ey = (t) => {
11687
11687
  return /* @__PURE__ */ s(We, { type: "array", ...t, children: /* @__PURE__ */ s(iy, { ooui: e }) });
11688
11688
  }, iy = (t) => {
11689
11689
  const { value: e, ooui: n, onChange: r } = t, { items: o = [] } = e || {}, i = o.filter(($) => $.operation !== "pendingRemove").map(($) => $.id), [a, l] = T([]), [c, d] = T(), [f, u] = T(!1), { relation: p, context: m, readOnly: g, field: h } = n, v = pe(Qe), { getContext: y } = v || {}, [b, w] = Re(
11690
- L.getHandler().evalDomain
11690
+ H.getHandler().evalDomain
11691
11691
  ), [C, x] = Re(
11692
- L.getHandler().search
11692
+ H.getHandler().search
11693
11693
  );
11694
11694
  ce(() => () => {
11695
11695
  w(), x();
@@ -11976,7 +11976,7 @@ const Kl = it(Qg), { useToken: Zg } = Xe, ey = (t) => {
11976
11976
  onAutorefreshableFieldsChange: a,
11977
11977
  isActive: l
11978
11978
  } = t, c = Z(null), [d, f] = T(!0), [u, p] = Re(
11979
- L.getHandler().readObjects
11979
+ H.getHandler().readObjects
11980
11980
  ), m = Fs();
11981
11981
  ce(() => {
11982
11982
  l === !1 && h(), (l === void 0 || l === !0) && !m && h(), (l === void 0 || l === !0) && m && v();
@@ -12197,7 +12197,7 @@ function xy(t, e) {
12197
12197
  ...et
12198
12198
  }), [ue, Y, et]), Ut = async (X) => {
12199
12199
  const ae = ue() ? A == null ? void 0 : A.context : {};
12200
- return await L.getHandler().defaultGet({
12200
+ return await H.getHandler().defaultGet({
12201
12201
  model: n,
12202
12202
  fields: X,
12203
12203
  context: { ...y, ...ae },
@@ -12284,13 +12284,13 @@ function xy(t, e) {
12284
12284
  }) : (xt == null || xt(), X(!0));
12285
12285
  }), Qn = async () => {
12286
12286
  if (l) {
12287
- const X = await L.getHandler().getActionStringForModel(n);
12288
- return (await L.getHandler().getViewsForAction({
12287
+ const X = await H.getHandler().getActionStringForModel(n);
12288
+ return (await H.getHandler().getViewsForAction({
12289
12289
  action: X,
12290
12290
  context: y
12291
12291
  })).views.get("form");
12292
12292
  }
12293
- return await L.getHandler().getView({
12293
+ return await H.getHandler().getView({
12294
12294
  model: n,
12295
12295
  type: "form",
12296
12296
  context: y
@@ -12321,14 +12321,14 @@ function xy(t, e) {
12321
12321
  fields: X,
12322
12322
  values: {}
12323
12323
  });
12324
- if (ye = (await L.getHandler().readObjects({
12324
+ if (ye = (await H.getHandler().readObjects({
12325
12325
  model: n,
12326
12326
  ids: [ue()],
12327
12327
  fields: gy(X, Me == null ? void 0 : Me.contextForFields),
12328
12328
  context: y
12329
12329
  }))[0], v)
12330
12330
  return { values: ye, defaultGetCalled: xe };
12331
- const ht = await L.getHandler().search({
12331
+ const ht = await H.getHandler().search({
12332
12332
  params: [
12333
12333
  ["res_model", "=", n],
12334
12334
  ["res_id", "=", ue()]
@@ -12349,7 +12349,7 @@ function xy(t, e) {
12349
12349
  target: lt(V),
12350
12350
  fields: V
12351
12351
  });
12352
- await L.getHandler().update({
12352
+ await H.getHandler().update({
12353
12353
  model: n,
12354
12354
  id: ue(),
12355
12355
  values: { ...ye, ...D },
@@ -12360,7 +12360,7 @@ function xy(t, e) {
12360
12360
  }
12361
12361
  }), Q.current = lt(V);
12362
12362
  } else {
12363
- const ye = lt(V), xe = await L.getHandler().create({
12363
+ const ye = lt(V), xe = await H.getHandler().create({
12364
12364
  model: n,
12365
12365
  values: { ...ye, ...D },
12366
12366
  fields: V,
@@ -12505,7 +12505,7 @@ function xy(t, e) {
12505
12505
  },
12506
12506
  parentValues: ge == null ? void 0 : ge(),
12507
12507
  onChangeFieldActionArgs: ae.args
12508
- }), xe = await L.getHandler().executeOnChange({
12508
+ }), xe = await H.getHandler().executeOnChange({
12509
12509
  model: n,
12510
12510
  action: ae.method,
12511
12511
  ids: ue() ? [ue()] : [],
@@ -12563,7 +12563,7 @@ function xy(t, e) {
12563
12563
  action: X,
12564
12564
  context: ae
12565
12565
  }) {
12566
- const ye = await L.getHandler().execute({
12566
+ const ye = await H.getHandler().execute({
12567
12567
  model: n,
12568
12568
  action: X,
12569
12569
  payload: [ue()],
@@ -12591,7 +12591,7 @@ function xy(t, e) {
12591
12591
  await kt({ forceRefresh: !0 });
12592
12592
  }
12593
12593
  async function _e({ action: X }) {
12594
- const ae = await L.getHandler().executeWorkflow({
12594
+ const ae = await H.getHandler().executeWorkflow({
12595
12595
  model: n,
12596
12596
  action: X,
12597
12597
  payload: ue()
@@ -12602,7 +12602,7 @@ function xy(t, e) {
12602
12602
  action: X,
12603
12603
  context: ae
12604
12604
  }) {
12605
- const ye = (await L.getHandler().readObjects({
12605
+ const ye = (await H.getHandler().readObjects({
12606
12606
  model: "ir.actions.actions",
12607
12607
  ids: [parseInt(X)],
12608
12608
  context: y
@@ -12733,9 +12733,9 @@ function xy(t, e) {
12733
12733
  }
12734
12734
  )
12735
12735
  }
12736
- ) }), Cr = () => /* @__PURE__ */ H(he, { children: [
12736
+ ) }), Cr = () => /* @__PURE__ */ L(he, { children: [
12737
12737
  /* @__PURE__ */ s(Lr, {}),
12738
- /* @__PURE__ */ s(Ge, { justify: "end", children: /* @__PURE__ */ H(ct, { children: [
12738
+ /* @__PURE__ */ s(Ge, { justify: "end", children: /* @__PURE__ */ L(ct, { children: [
12739
12739
  /* @__PURE__ */ s(
12740
12740
  je,
12741
12741
  {
@@ -12770,7 +12770,7 @@ function xy(t, e) {
12770
12770
  var ae;
12771
12771
  ee((ae = X.bounds) == null ? void 0 : ae.width);
12772
12772
  },
12773
- children: ({ measureRef: X }) => /* @__PURE__ */ H("div", { className: "pb-2", ref: X, children: [
12773
+ children: ({ measureRef: X }) => /* @__PURE__ */ L("div", { className: "pb-2", ref: X, children: [
12774
12774
  io(),
12775
12775
  a && Cr()
12776
12776
  ] })
@@ -12792,7 +12792,7 @@ const Jn = $t(xy), Xn = (t) => {
12792
12792
  a && x();
12793
12793
  }, [l, a]);
12794
12794
  async function x() {
12795
- const F = await L.getHandler().isShortcutFavorite({
12795
+ const F = await H.getHandler().isShortcutFavorite({
12796
12796
  action_id: y,
12797
12797
  action_type: w,
12798
12798
  view_id: C,
@@ -12802,12 +12802,12 @@ const Jn = $t(xy), Xn = (t) => {
12802
12802
  }
12803
12803
  async function D() {
12804
12804
  if (m && h)
12805
- await L.getHandler().removeFavourite({
12805
+ await H.getHandler().removeFavourite({
12806
12806
  shortcut_id: h
12807
12807
  });
12808
12808
  else {
12809
12809
  const { action_id: F, res_id: $, action_type: R, view_id: _ } = l;
12810
- await L.getHandler().addFavourite({
12810
+ await H.getHandler().addFavourite({
12811
12811
  action_id: F,
12812
12812
  action_type: R,
12813
12813
  view_id: _,
@@ -12817,7 +12817,7 @@ const Jn = $t(xy), Xn = (t) => {
12817
12817
  g(!m);
12818
12818
  }
12819
12819
  function S() {
12820
- return /* @__PURE__ */ H(Ge, { align: "middle", children: [
12820
+ return /* @__PURE__ */ L(Ge, { align: "middle", children: [
12821
12821
  /* @__PURE__ */ s(Oe, { children: /* @__PURE__ */ s(
12822
12822
  je,
12823
12823
  {
@@ -12914,8 +12914,8 @@ const Jn = $t(xy), Xn = (t) => {
12914
12914
  },
12915
12915
  [S, D]
12916
12916
  );
12917
- return /* @__PURE__ */ H(he, { children: [
12918
- /* @__PURE__ */ H(
12917
+ return /* @__PURE__ */ L(he, { children: [
12918
+ /* @__PURE__ */ L(
12919
12919
  Ft,
12920
12920
  {
12921
12921
  title: v("search"),
@@ -12944,7 +12944,7 @@ const Jn = $t(xy), Xn = (t) => {
12944
12944
  }
12945
12945
  ),
12946
12946
  /* @__PURE__ */ s(Lr, {}),
12947
- /* @__PURE__ */ s(Ge, { justify: "end", children: /* @__PURE__ */ H(ct, { children: [
12947
+ /* @__PURE__ */ s(Ge, { justify: "end", children: /* @__PURE__ */ L(ct, { children: [
12948
12948
  /* @__PURE__ */ s(
12949
12949
  je,
12950
12950
  {
@@ -12982,7 +12982,7 @@ const Jn = $t(xy), Xn = (t) => {
12982
12982
  ] });
12983
12983
  }, Cy = () => {
12984
12984
  const [t, e] = Re(
12985
- L.getHandler().checkPermission
12985
+ H.getHandler().checkPermission
12986
12986
  );
12987
12987
  return ce(() => () => {
12988
12988
  e();
@@ -13085,7 +13085,7 @@ const Jn = $t(xy), Xn = (t) => {
13085
13085
  if (I.current && I.current.length > 0)
13086
13086
  K(D.current);
13087
13087
  else {
13088
- const Y = await L.getHandler().nameSearch({
13088
+ const Y = await H.getHandler().nameSearch({
13089
13089
  model: i,
13090
13090
  payload: D.current,
13091
13091
  context: { ...$ == null ? void 0 : $(), ...l }
@@ -13100,7 +13100,7 @@ const Jn = $t(xy), Xn = (t) => {
13100
13100
  }
13101
13101
  }, K = async (Y) => {
13102
13102
  if (await de(), I.current && I.current.length > 0) {
13103
- const ge = await L.getHandler().searchAllIds({
13103
+ const ge = await H.getHandler().searchAllIds({
13104
13104
  params: I.current,
13105
13105
  model: i,
13106
13106
  context: { ...$ == null ? void 0 : $(), ...l },
@@ -13113,7 +13113,7 @@ const Jn = $t(xy), Xn = (t) => {
13113
13113
  }, Q = async (Y) => {
13114
13114
  v(!0);
13115
13115
  try {
13116
- const ge = await L.getHandler().execute({
13116
+ const ge = await H.getHandler().execute({
13117
13117
  action: "name_get",
13118
13118
  payload: [Y],
13119
13119
  model: i,
@@ -13127,7 +13127,7 @@ const Jn = $t(xy), Xn = (t) => {
13127
13127
  }
13128
13128
  };
13129
13129
  async function de() {
13130
- d && (I.current = await L.getHandler().evalDomain({
13130
+ d && (I.current = await H.getHandler().evalDomain({
13131
13131
  domain: d,
13132
13132
  values: Cn({
13133
13133
  fields: F(),
@@ -13156,7 +13156,7 @@ const Jn = $t(xy), Xn = (t) => {
13156
13156
  let Y = !0;
13157
13157
  return G === !0 && (Y = !1), r.showMenu !== void 0 && (Y = r.showMenu), Y;
13158
13158
  }, [r.showMenu, G]);
13159
- return /* @__PURE__ */ H(Ge, { gutter: 8, wrap: !1, children: [
13159
+ return /* @__PURE__ */ L(Ge, { gutter: 8, wrap: !1, children: [
13160
13160
  /* @__PURE__ */ s(Oe, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ s(
13161
13161
  oe,
13162
13162
  {
@@ -13269,7 +13269,7 @@ const Jn = $t(xy), Xn = (t) => {
13269
13269
  return /* @__PURE__ */ s(
13270
13270
  Ft,
13271
13271
  {
13272
- title: /* @__PURE__ */ H("span", { children: [
13272
+ title: /* @__PURE__ */ L("span", { children: [
13273
13273
  r && /* @__PURE__ */ s("span", { style: { marginRight: 8 }, children: r }),
13274
13274
  t
13275
13275
  ] }),
@@ -13345,7 +13345,7 @@ const Jn = $t(xy), Xn = (t) => {
13345
13345
  ), l = pe(
13346
13346
  Nt
13347
13347
  ), { processAction: c } = a || {}, { openRelate: d } = l || {}, [f, u] = T(null), [p, m] = T(!1), [g] = Re(
13348
- L.getHandler().getToolbar
13348
+ H.getHandler().getToolbar
13349
13349
  ), h = o || f, v = O(async () => {
13350
13350
  var S;
13351
13351
  return await ((S = e.current) == null ? void 0 : S.submitForm());
@@ -13470,7 +13470,7 @@ const Jn = $t(xy), Xn = (t) => {
13470
13470
  if (!t)
13471
13471
  return;
13472
13472
  i(!0);
13473
- const c = await L.getHandler().duplicate({
13473
+ const c = await H.getHandler().duplicate({
13474
13474
  id: t,
13475
13475
  model: e,
13476
13476
  context: r
@@ -13549,9 +13549,9 @@ function Ey(t) {
13549
13549
  selectedRowItems: g.map((oe) => ({ id: oe })),
13550
13550
  onRefreshParentValues: C
13551
13551
  }), j = n || !R || !A, ee = n || !_, B = c === 0 || n || a !== "form" && g.length === 0 || (p ? !_ : !I || !A), z = n || k || a === "tree" && g.length !== 1 || a === "form" && (x === void 0 || x < 0) || !R || !A;
13552
- return /* @__PURE__ */ H("div", { className: "flex mb-2 pt-3", children: [
13552
+ return /* @__PURE__ */ L("div", { className: "flex mb-2 pt-3", children: [
13553
13553
  /* @__PURE__ */ s(rc, { title: e, token: D }),
13554
- /* @__PURE__ */ H("div", { className: "flex-none h-8 pl-2", children: [
13554
+ /* @__PURE__ */ L("div", { className: "flex-none h-8 pl-2", children: [
13555
13555
  a !== "graph" && h && /* @__PURE__ */ s(
13556
13556
  bt,
13557
13557
  {
@@ -13561,7 +13561,7 @@ function Ey(t) {
13561
13561
  onClick: r
13562
13562
  }
13563
13563
  ),
13564
- p && h && /* @__PURE__ */ H(he, { children: [
13564
+ p && h && /* @__PURE__ */ L(he, { children: [
13565
13565
  /* @__PURE__ */ s(zt, {}),
13566
13566
  /* @__PURE__ */ s(
13567
13567
  bt,
@@ -13583,7 +13583,7 @@ function Ey(t) {
13583
13583
  disabled: B
13584
13584
  }
13585
13585
  ),
13586
- (a === "tree" || a === "form") && /* @__PURE__ */ H(he, { children: [
13586
+ (a === "tree" || a === "form") && /* @__PURE__ */ L(he, { children: [
13587
13587
  /* @__PURE__ */ s(zt, {}),
13588
13588
  /* @__PURE__ */ s(
13589
13589
  bt,
@@ -13599,7 +13599,7 @@ function Ey(t) {
13599
13599
  }
13600
13600
  )
13601
13601
  ] }),
13602
- (a === "form" || a === "tree") && /* @__PURE__ */ H(he, { children: [
13602
+ (a === "form" || a === "tree") && /* @__PURE__ */ L(he, { children: [
13603
13603
  /* @__PURE__ */ s(zt, {}),
13604
13604
  /* @__PURE__ */ s(
13605
13605
  bt,
@@ -13625,7 +13625,7 @@ function Ey(t) {
13625
13625
  onNextItem: u
13626
13626
  }
13627
13627
  ),
13628
- v && /* @__PURE__ */ H(he, { children: [
13628
+ v && /* @__PURE__ */ L(he, { children: [
13629
13629
  /* @__PURE__ */ s(zt, {}),
13630
13630
  /* @__PURE__ */ s(
13631
13631
  bt,
@@ -13636,8 +13636,8 @@ function Ey(t) {
13636
13636
  }
13637
13637
  )
13638
13638
  ] }),
13639
- y && /* @__PURE__ */ H(he, { children: [
13640
- ((Q = y.action) == null ? void 0 : Q.length) > 0 && /* @__PURE__ */ H(he, { children: [
13639
+ y && /* @__PURE__ */ L(he, { children: [
13640
+ ((Q = y.action) == null ? void 0 : Q.length) > 0 && /* @__PURE__ */ L(he, { children: [
13641
13641
  /* @__PURE__ */ s(zt, {}),
13642
13642
  /* @__PURE__ */ s(
13643
13643
  Zt,
@@ -13647,7 +13647,7 @@ function Ey(t) {
13647
13647
  }
13648
13648
  )
13649
13649
  ] }),
13650
- ((de = y.print) == null ? void 0 : de.length) > 0 && /* @__PURE__ */ H(he, { children: [
13650
+ ((de = y.print) == null ? void 0 : de.length) > 0 && /* @__PURE__ */ L(he, { children: [
13651
13651
  /* @__PURE__ */ s(zt, {}),
13652
13652
  /* @__PURE__ */ s(
13653
13653
  Zt,
@@ -13657,7 +13657,7 @@ function Ey(t) {
13657
13657
  }
13658
13658
  )
13659
13659
  ] }),
13660
- a === "form" && ((q = y.relate) == null ? void 0 : q.length) > 0 && /* @__PURE__ */ H(he, { children: [
13660
+ a === "form" && ((q = y.relate) == null ? void 0 : q.length) > 0 && /* @__PURE__ */ L(he, { children: [
13661
13661
  /* @__PURE__ */ s(zt, {}),
13662
13662
  /* @__PURE__ */ s(
13663
13663
  Zt,
@@ -13691,7 +13691,7 @@ const oc = it(
13691
13691
  totalItems: e
13692
13692
  }) => {
13693
13693
  const n = e === 0 ? "_" : (t + 1).toString();
13694
- return /* @__PURE__ */ H("span", { className: "pl-1 pr-1", children: [
13694
+ return /* @__PURE__ */ L("span", { className: "pl-1 pr-1", children: [
13695
13695
  "(",
13696
13696
  n,
13697
13697
  "/",
@@ -13709,7 +13709,7 @@ const sc = it(
13709
13709
  onNextItem: r
13710
13710
  }) => {
13711
13711
  const { t: o } = we();
13712
- return /* @__PURE__ */ H(he, { children: [
13712
+ return /* @__PURE__ */ L(he, { children: [
13713
13713
  /* @__PURE__ */ s(zt, {}),
13714
13714
  /* @__PURE__ */ s(
13715
13715
  bt,
@@ -13843,7 +13843,7 @@ const ky = (t) => {
13843
13843
  }, [v()]);
13844
13844
  const ve = O(async () => {
13845
13845
  let J = [];
13846
- q && (J = await L.getHandler().evalDomain({
13846
+ q && (J = await H.getHandler().evalDomain({
13847
13847
  domain: q,
13848
13848
  values: Cn({
13849
13849
  fields: p(),
@@ -13879,12 +13879,12 @@ const ky = (t) => {
13879
13879
  d(c + 1);
13880
13880
  }) : d(c + 1));
13881
13881
  }, Ee = async () => {
13882
- const J = G[c].id, Ce = (await L.getHandler().readObjects({
13882
+ const J = G[c].id, Ce = (await H.getHandler().readObjects({
13883
13883
  model: Q,
13884
13884
  ids: [J],
13885
13885
  fields: o.get("form").fields,
13886
13886
  context: { ...m == null ? void 0 : m(), ...de }
13887
- }))[0], ue = (await L.getHandler().readObjects({
13887
+ }))[0], ue = (await H.getHandler().readObjects({
13888
13888
  model: Q,
13889
13889
  ids: [J],
13890
13890
  fields: o.get("tree").fields,
@@ -13995,12 +13995,12 @@ const ky = (t) => {
13995
13995
  const Ce = i, ue = J.filter((De) => !i.find((Ve) => Ve.id === De));
13996
13996
  try {
13997
13997
  for (const De of ue) {
13998
- const Ve = (await L.getHandler().readObjects({
13998
+ const Ve = (await H.getHandler().readObjects({
13999
13999
  model: Q,
14000
14000
  ids: [De],
14001
14001
  fields: o.get("form").fields,
14002
14002
  context: { ...m == null ? void 0 : m(), ...de }
14003
- }))[0], Ae = (await L.getHandler().readObjects({
14003
+ }))[0], Ae = (await H.getHandler().readObjects({
14004
14004
  model: Q,
14005
14005
  ids: [De],
14006
14006
  fields: o.get("tree").fields,
@@ -14102,7 +14102,7 @@ const ky = (t) => {
14102
14102
  if (D)
14103
14103
  return /* @__PURE__ */ s(Rt, { className: "mt-10", message: D, type: "error", banner: !0 });
14104
14104
  const ze = E;
14105
- return C ? /* @__PURE__ */ s(nt, {}) : /* @__PURE__ */ H(he, { children: [
14105
+ return C ? /* @__PURE__ */ s(nt, {}) : /* @__PURE__ */ L(he, { children: [
14106
14106
  /* @__PURE__ */ s(
14107
14107
  ac,
14108
14108
  {
@@ -14198,7 +14198,7 @@ const ky = (t) => {
14198
14198
  }, [l()]);
14199
14199
  const c = O(async () => {
14200
14200
  let d = [];
14201
- e && (d = await L.getHandler().evalDomain({
14201
+ e && (d = await H.getHandler().evalDomain({
14202
14202
  domain: e,
14203
14203
  values: Cn({
14204
14204
  fields: o(),
@@ -14296,12 +14296,12 @@ const ky = (t) => {
14296
14296
  async ({ id: g }) => {
14297
14297
  if (!o)
14298
14298
  return;
14299
- const h = (await L.getHandler().readObjects({
14299
+ const h = (await H.getHandler().readObjects({
14300
14300
  model: e,
14301
14301
  ids: [g],
14302
14302
  fields: o.fields,
14303
14303
  context: n
14304
- }))[0], v = (await L.getHandler().readObjects({
14304
+ }))[0], v = (await H.getHandler().readObjects({
14305
14305
  model: e,
14306
14306
  ids: [g],
14307
14307
  fields: r.fields,
@@ -14538,7 +14538,7 @@ const Hy = ({
14538
14538
  const { id: D } = x;
14539
14539
  let S = o;
14540
14540
  const P = o.find((F) => F.id === D);
14541
- (P == null ? void 0 : P.values) === void 0 && (S = await L.getHandler().readObjects({
14541
+ (P == null ? void 0 : P.values) === void 0 && (S = await H.getHandler().readObjects({
14542
14542
  model: c,
14543
14543
  ids: [x.id],
14544
14544
  fields: d.fields,
@@ -14575,7 +14575,7 @@ const Hy = ({
14575
14575
  async (g) => {
14576
14576
  const h = [...n], v = g.filter((y) => !n.find((b) => b.id === y));
14577
14577
  try {
14578
- (await L.getHandler().readObjects({
14578
+ (await H.getHandler().readObjects({
14579
14579
  model: a,
14580
14580
  ids: v,
14581
14581
  fields: {
@@ -14853,7 +14853,7 @@ const Hy = ({
14853
14853
  var me;
14854
14854
  return ((me = i.get("form")) == null ? void 0 : me.fields) !== void 0;
14855
14855
  }, [i]);
14856
- return /* @__PURE__ */ H(he, { children: [
14856
+ return /* @__PURE__ */ L(he, { children: [
14857
14857
  /* @__PURE__ */ s(
14858
14858
  ac,
14859
14859
  {
@@ -14965,7 +14965,7 @@ const Hy = ({
14965
14965
  limit: 0
14966
14966
  }
14967
14967
  ),
14968
- !Gy.includes(c) && /* @__PURE__ */ H("span", { children: [
14968
+ !Gy.includes(c) && /* @__PURE__ */ L("span", { children: [
14969
14969
  "Unsupported view ",
14970
14970
  c
14971
14971
  ] })
@@ -14981,14 +14981,10 @@ const Hy = ({
14981
14981
  const b = Lt(
14982
14982
  wt.FEATURE_GET_TOOLBAR
14983
14983
  ), w = async (S) => {
14984
- if (L.getHandler().getView({
14985
- model: r,
14986
- type: S,
14987
- context: { ...h == null ? void 0 : h(), ...a }
14988
- }), o && o[S]) {
14984
+ if (o && o[S]) {
14989
14985
  const P = o[S];
14990
14986
  if (b && !P.toolbar && (S === "form" || S === "tree")) {
14991
- const F = await L.getHandler().getToolbar({
14987
+ const F = await H.getHandler().getToolbar({
14992
14988
  model: r,
14993
14989
  type: S,
14994
14990
  context: { ...h == null ? void 0 : h(), ...a }
@@ -14999,12 +14995,12 @@ const Hy = ({
14999
14995
  }
15000
14996
  if (b && (S === "form" || S === "tree")) {
15001
14997
  const [P, F] = await Promise.all([
15002
- L.getHandler().getView({
14998
+ H.getHandler().getView({
15003
14999
  model: r,
15004
15000
  type: S,
15005
15001
  context: { ...h == null ? void 0 : h(), ...a }
15006
15002
  }),
15007
- L.getHandler().getToolbar({
15003
+ H.getHandler().getToolbar({
15008
15004
  model: r,
15009
15005
  type: S,
15010
15006
  context: { ...h == null ? void 0 : h(), ...a }
@@ -15012,7 +15008,7 @@ const Hy = ({
15012
15008
  ]);
15013
15009
  return { ...P, toolbar: F };
15014
15010
  }
15015
- return await L.getHandler().getView({
15011
+ return await H.getHandler().getView({
15016
15012
  model: r,
15017
15013
  type: S,
15018
15014
  context: { ...h == null ? void 0 : h(), ...a }
@@ -15194,7 +15190,7 @@ function nv(t) {
15194
15190
  children: r.filter((a) => !a.invisible).map((a) => /* @__PURE__ */ s(
15195
15191
  ev,
15196
15192
  {
15197
- tab: /* @__PURE__ */ H(he, { children: [
15193
+ tab: /* @__PURE__ */ L(he, { children: [
15198
15194
  i(a.icon),
15199
15195
  " ",
15200
15196
  a.label
@@ -15250,7 +15246,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15250
15246
  formHasChanges: d,
15251
15247
  elementHasLostFocus: f
15252
15248
  } = i || {}, [u, p] = T(!1), { t: m } = we();
15253
- return a ? /* @__PURE__ */ H(he, { children: [
15249
+ return a ? /* @__PURE__ */ L(he, { children: [
15254
15250
  /* @__PURE__ */ s(
15255
15251
  "div",
15256
15252
  {
@@ -15297,7 +15293,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15297
15293
  }
15298
15294
  }
15299
15295
  )
15300
- ] }) : /* @__PURE__ */ H(he, { children: [
15296
+ ] }) : /* @__PURE__ */ L(he, { children: [
15301
15297
  /* @__PURE__ */ s(Ge, { gutter: 8, wrap: !1, children: /* @__PURE__ */ s(
15302
15298
  qo,
15303
15299
  {
@@ -15328,7 +15324,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15328
15324
  ] });
15329
15325
  }, iv = (t) => {
15330
15326
  const { ooui: e } = t, { label: n, icon: r } = e, o = Pt(r || "");
15331
- return /* @__PURE__ */ s(Lr, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ H(ct, { children: [
15327
+ return /* @__PURE__ */ s(Lr, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ L(ct, { children: [
15332
15328
  o ? /* @__PURE__ */ s(o, {}) : null,
15333
15329
  n
15334
15330
  ] }) });
@@ -15350,7 +15346,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15350
15346
  v.registersAmount === "selected" && (n == null ? void 0 : n.length) !== 0 && (y = [
15351
15347
  ["id", "in", n == null ? void 0 : n.map((C) => C.id)]
15352
15348
  ]);
15353
- const { datas: b } = await L.getHandler().exportData({
15349
+ const { datas: b } = await H.getHandler().exportData({
15354
15350
  model: t,
15355
15351
  fields: pv({
15356
15352
  keys: v.selectedKeys,
@@ -15367,7 +15363,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15367
15363
  },
15368
15364
  [r, n, t, o, e, i, c]
15369
15365
  ), f = O(async () => {
15370
- const v = await L.getHandler().getFields({
15366
+ const v = await H.getHandler().getFields({
15371
15367
  model: t,
15372
15368
  context: e,
15373
15369
  fields: []
@@ -15375,7 +15371,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15375
15371
  return a.current["/"] = v, Li({ fields: v });
15376
15372
  }, [t, e, a]), u = O(
15377
15373
  async (v) => {
15378
- const b = zo(v, a.current)[Yo(v)], w = b.relation, C = await L.getHandler().getFields({
15374
+ const b = zo(v, a.current)[Yo(v)], w = b.relation, C = await H.getHandler().getFields({
15379
15375
  model: w,
15380
15376
  context: e,
15381
15377
  fields: []
@@ -15419,7 +15415,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15419
15415
  };
15420
15416
  }, [e, t, u]), m = O(
15421
15417
  async (v) => {
15422
- await L.getHandler().deleteObjects({
15418
+ await H.getHandler().deleteObjects({
15423
15419
  model: "ir.exports",
15424
15420
  ids: [v.id],
15425
15421
  context: e
@@ -15430,7 +15426,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15430
15426
  async (v) => {
15431
15427
  if (l.current.has(v))
15432
15428
  return l.current.get(v);
15433
- const y = L.getHandler().getFields({
15429
+ const y = H.getHandler().getFields({
15434
15430
  model: v,
15435
15431
  context: e,
15436
15432
  fields: []
@@ -15440,7 +15436,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15440
15436
  [l, e]
15441
15437
  ), h = O(
15442
15438
  async (v) => {
15443
- const y = await g("ir.exports"), b = await g("ir.exports.line"), w = await L.getHandler().create({
15439
+ const y = await g("ir.exports"), b = await g("ir.exports.line"), w = await H.getHandler().create({
15444
15440
  model: "ir.exports",
15445
15441
  values: {
15446
15442
  name: v.name,
@@ -15450,7 +15446,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15450
15446
  context: e
15451
15447
  });
15452
15448
  return await Promise.all(
15453
- v.fields.map(async (C) => await L.getHandler().create({
15449
+ v.fields.map(async (C) => await H.getHandler().create({
15454
15450
  model: "ir.exports.line",
15455
15451
  values: {
15456
15452
  name: C.key,
@@ -15502,11 +15498,11 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15502
15498
  model: t,
15503
15499
  context: e
15504
15500
  }) => {
15505
- const n = await L.getHandler().search({
15501
+ const n = await H.getHandler().search({
15506
15502
  model: "ir.exports",
15507
15503
  params: [["resource", "=", t]],
15508
15504
  context: e
15509
- }), r = n.flatMap((i) => i.export_fields), o = await L.getHandler().readObjects({
15505
+ }), r = n.flatMap((i) => i.export_fields), o = await H.getHandler().readObjects({
15510
15506
  model: "ir.exports.line",
15511
15507
  ids: r,
15512
15508
  context: e
@@ -15657,7 +15653,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15657
15653
  }
15658
15654
  const m = e && c && c[0], g = e && c && c[1] && parseInt(c[1]);
15659
15655
  f([g, void 0]), p(m);
15660
- }, [e]), /* @__PURE__ */ H(Ge, { gutter: 8, wrap: !1, children: [
15656
+ }, [e]), /* @__PURE__ */ L(Ge, { gutter: 8, wrap: !1, children: [
15661
15657
  /* @__PURE__ */ s(Oe, { flex: "1", children: /* @__PURE__ */ s(
15662
15658
  Fa,
15663
15659
  {
@@ -15719,8 +15715,8 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15719
15715
  function b() {
15720
15716
  f(a, void 0), g(void 0);
15721
15717
  }
15722
- return /* @__PURE__ */ H(Ge, { gutter: 8, children: [
15723
- /* @__PURE__ */ H(Oe, { style: { paddingBottom: 5 }, children: [
15718
+ return /* @__PURE__ */ L(Ge, { gutter: 8, children: [
15719
+ /* @__PURE__ */ L(Oe, { style: { paddingBottom: 5 }, children: [
15724
15720
  /* @__PURE__ */ s(
15725
15721
  "input",
15726
15722
  {
@@ -15741,7 +15737,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15741
15737
  }
15742
15738
  )
15743
15739
  ] }),
15744
- /* @__PURE__ */ s(Oe, { children: /* @__PURE__ */ H(ct, { children: [
15740
+ /* @__PURE__ */ s(Oe, { children: /* @__PURE__ */ L(ct, { children: [
15745
15741
  /* @__PURE__ */ s(
15746
15742
  je,
15747
15743
  {
@@ -15783,7 +15779,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15783
15779
  onOpenAttachmentLink: i,
15784
15780
  onOpenAttachmentDetail: a,
15785
15781
  onListAllAttachments: l
15786
- } = t, { t: c } = we(), d = Z(null), f = /* @__PURE__ */ H(je, { children: [
15782
+ } = t, { t: c } = we(), d = Z(null), f = /* @__PURE__ */ L(je, { children: [
15787
15783
  /* @__PURE__ */ s(Vs, {}),
15788
15784
  `(${e})`,
15789
15785
  /* @__PURE__ */ s(ur, { style: { fontSize: 12 } })
@@ -15795,7 +15791,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15795
15791
  onRetrieveData: async () => [
15796
15792
  {
15797
15793
  items: n.map((u) => {
15798
- const p = u.link ? Vs : es, m = /* @__PURE__ */ H(Ge, { wrap: !1, align: "middle", gutter: 8, children: [
15794
+ const p = u.link ? Vs : es, m = /* @__PURE__ */ L(Ge, { wrap: !1, align: "middle", gutter: 8, children: [
15799
15795
  /* @__PURE__ */ s(Oe, { style: { textAlign: "center" }, children: (u.datas_fname || u.link) && /* @__PURE__ */ s(
15800
15796
  Et,
15801
15797
  {
@@ -15834,8 +15830,8 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15834
15830
  ],
15835
15831
  placement: "bottomRight",
15836
15832
  disabled: r,
15837
- header: /* @__PURE__ */ H("div", { style: { padding: 5 }, children: [
15838
- /* @__PURE__ */ H(
15833
+ header: /* @__PURE__ */ L("div", { style: { padding: 5 }, children: [
15834
+ /* @__PURE__ */ L(
15839
15835
  "a",
15840
15836
  {
15841
15837
  style: { display: "block", paddingBottom: 5 },
@@ -15851,7 +15847,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
15851
15847
  ]
15852
15848
  }
15853
15849
  ),
15854
- /* @__PURE__ */ H(
15850
+ /* @__PURE__ */ L(
15855
15851
  "a",
15856
15852
  {
15857
15853
  style: { display: "block" },
@@ -15883,7 +15879,7 @@ function Rv(t) {
15883
15879
  if (!(!e || e.length === 0)) {
15884
15880
  c(!0);
15885
15881
  try {
15886
- const b = await L.getHandler().readObjects({
15882
+ const b = await H.getHandler().readObjects({
15887
15883
  model: "ir.attachment",
15888
15884
  ids: e.map((w) => w.id),
15889
15885
  fieldsToRetrieve: ["name", "datas_fname", "link"],
@@ -15911,7 +15907,7 @@ function Rv(t) {
15911
15907
  p(!0);
15912
15908
  let w;
15913
15909
  try {
15914
- w = (await L.getHandler().readObjects({
15910
+ w = (await H.getHandler().readObjects({
15915
15911
  model: "ir.attachment",
15916
15912
  ids: [b.id],
15917
15913
  context: a.current.getContext()
@@ -15935,7 +15931,7 @@ function Rv(t) {
15935
15931
  );
15936
15932
  return ce(() => {
15937
15933
  h();
15938
- }, []), /* @__PURE__ */ H(he, { children: [
15934
+ }, []), /* @__PURE__ */ L(he, { children: [
15939
15935
  /* @__PURE__ */ s(
15940
15936
  Av,
15941
15937
  {
@@ -15973,7 +15969,7 @@ const Iv = () => {
15973
15969
  results: i,
15974
15970
  searchQuery: a
15975
15971
  } = jt(), [l, c] = Re(
15976
- L.getHandler().searchForTree
15972
+ H.getHandler().searchForTree
15977
15973
  );
15978
15974
  ce(() => () => {
15979
15975
  c();
@@ -16094,7 +16090,7 @@ function _v({ toolbar: t }) {
16094
16090
  onRefreshParentValues: V
16095
16091
  }), ee = O(async () => {
16096
16092
  try {
16097
- b == null || b(!0), await L.getHandler().deleteObjects({
16093
+ b == null || b(!0), await H.getHandler().deleteObjects({
16098
16094
  model: y,
16099
16095
  ids: [p],
16100
16096
  context: F.current.getContext()
@@ -16124,7 +16120,7 @@ function _v({ toolbar: t }) {
16124
16120
  ]), B = O(async () => {
16125
16121
  try {
16126
16122
  x == null || x(!0);
16127
- const q = await L.getHandler().duplicate({
16123
+ const q = await H.getHandler().duplicate({
16128
16124
  id: p,
16129
16125
  model: y,
16130
16126
  context: F.current.getContext()
@@ -16208,8 +16204,8 @@ function _v({ toolbar: t }) {
16208
16204
  c,
16209
16205
  F
16210
16206
  ]
16211
- ), l ? /* @__PURE__ */ H(ct, { wrap: !0, children: [
16212
- S && /* @__PURE__ */ H(he, { children: [
16207
+ ), l ? /* @__PURE__ */ L(ct, { wrap: !0, children: [
16208
+ S && /* @__PURE__ */ L(he, { children: [
16213
16209
  /* @__PURE__ */ s(nt, {}),
16214
16210
  /* @__PURE__ */ s(gt, {}),
16215
16211
  /* @__PURE__ */ s(gt, {})
@@ -16320,7 +16316,7 @@ const Ev = it(_v), fc = it(
16320
16316
  tryAction: r
16321
16317
  }) => {
16322
16318
  const { t: o } = we();
16323
- return /* @__PURE__ */ H(ct, { children: [
16319
+ return /* @__PURE__ */ L(ct, { children: [
16324
16320
  /* @__PURE__ */ s(
16325
16321
  At,
16326
16322
  {
@@ -16359,7 +16355,7 @@ const Hi = (t, e) => ({
16359
16355
  const y = (b) => {
16360
16356
  r == null || r(b.target.value);
16361
16357
  };
16362
- return /* @__PURE__ */ H(Ge, { gutter: 8, wrap: !1, align: "middle", children: [
16358
+ return /* @__PURE__ */ L(Ge, { gutter: 8, wrap: !1, align: "middle", children: [
16363
16359
  l ? null : /* @__PURE__ */ s(Oe, { flex: "none", style: { paddingRight: 0 }, children: m ? /* @__PURE__ */ s(
16364
16360
  je,
16365
16361
  {
@@ -16447,7 +16443,7 @@ const Hi = (t, e) => ({
16447
16443
  var f;
16448
16444
  return d && ((f = a.current) == null ? void 0 : f.focus());
16449
16445
  },
16450
- children: /* @__PURE__ */ H(Ot, { layout: "vertical", onFinish: c, autoComplete: "off", children: [
16446
+ children: /* @__PURE__ */ L(Ot, { layout: "vertical", onFinish: c, autoComplete: "off", children: [
16451
16447
  /* @__PURE__ */ s(
16452
16448
  Ot.Item,
16453
16449
  {
@@ -16462,7 +16458,7 @@ const Hi = (t, e) => ({
16462
16458
  children: /* @__PURE__ */ s(ft, { style: { width: "100%" }, autoFocus: !0, ref: a })
16463
16459
  }
16464
16460
  ),
16465
- /* @__PURE__ */ s(Ge, { align: "middle", justify: "end", children: /* @__PURE__ */ s(Oe, { children: /* @__PURE__ */ H(ct, { children: [
16461
+ /* @__PURE__ */ s(Ge, { align: "middle", justify: "end", children: /* @__PURE__ */ s(Oe, { children: /* @__PURE__ */ L(ct, { children: [
16466
16462
  /* @__PURE__ */ s(
16467
16463
  je,
16468
16464
  {
@@ -16521,7 +16517,7 @@ function Mv({ refreshGraph: t }) {
16521
16517
  previousView: d,
16522
16518
  setPreviousView: f
16523
16519
  } = pe(It);
16524
- return /* @__PURE__ */ H(ct, { wrap: !0, children: [
16520
+ return /* @__PURE__ */ L(ct, { wrap: !0, children: [
16525
16521
  /* @__PURE__ */ s(
16526
16522
  Ua,
16527
16523
  {
@@ -16614,7 +16610,7 @@ const $v = (t) => {
16614
16610
  ), B = ut(async () => {
16615
16611
  if (!n)
16616
16612
  return;
16617
- const te = await L.getHandler().searchAllIds({
16613
+ const te = await H.getHandler().searchAllIds({
16618
16614
  params: E ? i : ee,
16619
16615
  model: r,
16620
16616
  context: o,
@@ -16691,7 +16687,7 @@ const $v = (t) => {
16691
16687
  if (!n || !e)
16692
16688
  return null;
16693
16689
  const le = f ? _s : Kn;
16694
- return /* @__PURE__ */ H(he, { children: [
16690
+ return /* @__PURE__ */ L(he, { children: [
16695
16691
  /* @__PURE__ */ s(to, { title: e.title || e.name, children: /* @__PURE__ */ s(
16696
16692
  Mv,
16697
16693
  {
@@ -16752,7 +16748,7 @@ const $v = (t) => {
16752
16748
  setResults: u,
16753
16749
  setCurrentItemIndex: p
16754
16750
  } = t;
16755
- return e ? /* @__PURE__ */ H(he, { children: [
16751
+ return e ? /* @__PURE__ */ L(he, { children: [
16756
16752
  /* @__PURE__ */ s(to, { children: /* @__PURE__ */ s(Ev, { toolbar: a == null ? void 0 : a.toolbar }) }),
16757
16753
  /* @__PURE__ */ s(
16758
16754
  Jn,
@@ -16791,7 +16787,7 @@ const $v = (t) => {
16791
16787
  };
16792
16788
  function Lv() {
16793
16789
  const { isLoading: t, dashboardRef: e, moveItemsEnabled: n, setMoveItemsEnabled: r } = pe(Ds), { permissions: o } = jt(), { t: i } = we();
16794
- return /* @__PURE__ */ H(ct, { wrap: !0, children: [
16790
+ return /* @__PURE__ */ L(ct, { wrap: !0, children: [
16795
16791
  (o == null ? void 0 : o.write) && /* @__PURE__ */ s(
16796
16792
  At,
16797
16793
  {
@@ -16843,7 +16839,7 @@ const Hv = (t) => {
16843
16839
  const { dashboardData: e, visible: n } = t, r = Z(), o = pe(
16844
16840
  Nt
16845
16841
  ), { openShortcut: i } = o || {};
16846
- return !e || !n ? null : /* @__PURE__ */ H(
16842
+ return !e || !n ? null : /* @__PURE__ */ L(
16847
16843
  Vv,
16848
16844
  {
16849
16845
  dashboardRef: r,
@@ -16980,7 +16976,7 @@ function Wv(t, e) {
16980
16976
  const [Pe, Ne] = ze;
16981
16977
  Ne !== "dashboard" ? tt.push({
16982
16978
  viewTuple: ze,
16983
- promise: L.getHandler().getView({
16979
+ promise: H.getHandler().getView({
16984
16980
  model: r,
16985
16981
  type: Ne,
16986
16982
  id: Pe,
@@ -17115,7 +17111,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
17115
17111
  let rt;
17116
17112
  if (Ne === -1) {
17117
17113
  try {
17118
- rt = (ze = await L.getHandler().search({
17114
+ rt = (ze = await H.getHandler().search({
17119
17115
  model: r,
17120
17116
  params: [["id", "in", [Pe]]],
17121
17117
  skipRead: !0,
@@ -17166,7 +17162,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
17166
17162
  $e(Se);
17167
17163
  }
17168
17164
  }
17169
- return P || G ? /* @__PURE__ */ s(nt, {}) : C ? /* @__PURE__ */ H(
17165
+ return P || G ? /* @__PURE__ */ s(nt, {}) : C ? /* @__PURE__ */ L(
17170
17166
  Gg,
17171
17167
  {
17172
17168
  title: a,
@@ -17361,9 +17357,9 @@ function zv(t, e) {
17361
17357
  setIsLoading: p,
17362
17358
  openAction: m,
17363
17359
  moveItemsEnabled: g
17364
- } = pe(Ds), h = Z(), v = Z(), [y] = Re(L.getHandler().getView), [b] = Re(
17365
- L.getHandler().readObjects
17366
- ), [w] = Re(L.getHandler().update), C = Lt(
17360
+ } = pe(Ds), h = Z(), v = Z(), [y] = Re(H.getHandler().getView), [b] = Re(
17361
+ H.getHandler().readObjects
17362
+ ), [w] = Re(H.getHandler().update), C = Lt(
17367
17363
  wt.FEATURE_READFORVIEW
17368
17364
  );
17369
17365
  ce(() => {
@@ -17637,7 +17633,7 @@ const Kv = $t(zv), Jv = (t) => {
17637
17633
  u(!0);
17638
17634
  let P = [];
17639
17635
  if (n.domain) {
17640
- const F = await L.getHandler().evalDomain({
17636
+ const F = await H.getHandler().evalDomain({
17641
17637
  domain: n.domain,
17642
17638
  values: Cn({
17643
17639
  fields: y == null ? void 0 : y.getFields(),
@@ -17649,7 +17645,7 @@ const Kv = $t(zv), Jv = (t) => {
17649
17645
  P = [...P, ...F];
17650
17646
  }
17651
17647
  try {
17652
- const $ = (await L.getHandler().search({
17648
+ const $ = (await H.getHandler().search({
17653
17649
  model: p,
17654
17650
  params: P,
17655
17651
  fieldsToRetrieve: [h],
@@ -17681,7 +17677,7 @@ const Kv = $t(zv), Jv = (t) => {
17681
17677
  F.push({ id: R, operation: "pendingLink" });
17682
17678
  }), w(F);
17683
17679
  };
17684
- return f && a.length === 0 ? /* @__PURE__ */ s(nt, {}) : /* @__PURE__ */ s(he, { children: /* @__PURE__ */ H("div", { className: "flex flex-row", children: [
17680
+ return f && a.length === 0 ? /* @__PURE__ */ s(nt, {}) : /* @__PURE__ */ s(he, { children: /* @__PURE__ */ L("div", { className: "flex flex-row", children: [
17685
17681
  /* @__PURE__ */ s(
17686
17682
  rr.Group,
17687
17683
  {
@@ -17692,7 +17688,7 @@ const Kv = $t(zv), Jv = (t) => {
17692
17688
  children: /* @__PURE__ */ s(Ge, { children: a.map((P) => /* @__PURE__ */ s(Oe, { span: Math.floor(24 / v), children: /* @__PURE__ */ s(rr, { value: P.value, children: P.label }) })) })
17693
17689
  }
17694
17690
  ),
17695
- !g && /* @__PURE__ */ H(ct, { children: [
17691
+ !g && /* @__PURE__ */ L(ct, { children: [
17696
17692
  /* @__PURE__ */ s(
17697
17693
  je,
17698
17694
  {
@@ -17807,8 +17803,8 @@ const Kv = $t(zv), Jv = (t) => {
17807
17803
  const g = Pt(m);
17808
17804
  return g && /* @__PURE__ */ s(g, {});
17809
17805
  };
17810
- return /* @__PURE__ */ s("ul", { style: c, children: (t.value || []).map((m, g) => /* @__PURE__ */ H("li", { style: d(m.active), children: [
17811
- /* @__PURE__ */ H(ct, { children: [
17806
+ return /* @__PURE__ */ s("ul", { style: c, children: (t.value || []).map((m, g) => /* @__PURE__ */ L("li", { style: d(m.active), children: [
17807
+ /* @__PURE__ */ L(ct, { children: [
17812
17808
  m.icon && p(m.icon),
17813
17809
  " ",
17814
17810
  m.title
@@ -17853,20 +17849,20 @@ const Kv = $t(zv), Jv = (t) => {
17853
17849
  function pb({ text: t }) {
17854
17850
  const e = t.split(`
17855
17851
  `);
17856
- return /* @__PURE__ */ s("div", { children: e.map((n, r) => /* @__PURE__ */ H(jn, { children: [
17852
+ return /* @__PURE__ */ s("div", { children: e.map((n, r) => /* @__PURE__ */ L(jn, { children: [
17857
17853
  n,
17858
17854
  r !== e.length - 1 && /* @__PURE__ */ s("br", {})
17859
17855
  ] }, r)) });
17860
17856
  }
17861
17857
  const mb = (t) => {
17862
17858
  const { data: e, style: n } = t, { t: r } = we();
17863
- return /* @__PURE__ */ H(Jo, { style: { ...n, textAlign: "start" }, children: [
17859
+ return /* @__PURE__ */ L(Jo, { style: { ...n, textAlign: "start" }, children: [
17864
17860
  /* @__PURE__ */ s(
17865
17861
  db,
17866
17862
  {
17867
17863
  avatar: /* @__PURE__ */ s(fb, { email: e.email, theme: "mp" }),
17868
17864
  title: e.author,
17869
- description: /* @__PURE__ */ H(ct, { direction: "horizontal", children: [
17865
+ description: /* @__PURE__ */ L(ct, { direction: "horizontal", children: [
17870
17866
  /* @__PURE__ */ s("span", { title: e.date, children: dt(e.date).fromNow() }),
17871
17867
  e.isAuthor && /* @__PURE__ */ s(Ko, { color: "blue", children: r("author") })
17872
17868
  ] }),
@@ -17984,7 +17980,7 @@ function Ib(t, e) {
17984
17980
  const { children: n } = t, [r, o] = T("welcome"), { t: i } = we(), { showErrorNotification: a } = yt(), { globalValues: l, rootContext: c } = Xt(), d = Zr(
17985
17981
  wt.FEATURE_LOGGABLE_ACTIONS
17986
17982
  ), [f, u] = Re(
17987
- L.getHandler().logAction
17983
+ H.getHandler().logAction
17988
17984
  );
17989
17985
  ce(() => () => {
17990
17986
  u();
@@ -18033,7 +18029,7 @@ function Ib(t, e) {
18033
18029
  g.current.set(I, A);
18034
18030
  }
18035
18031
  async function C(I) {
18036
- const { actionRawData: A, res_id: k, limit: E } = I, M = await L.getHandler().getFields({
18032
+ const { actionRawData: A, res_id: k, limit: E } = I, M = await H.getHandler().getFields({
18037
18033
  model: I.model,
18038
18034
  context: c
18039
18035
  });
@@ -18042,7 +18038,7 @@ function Ib(t, e) {
18042
18038
  );
18043
18039
  const V = k || W.active_id || W.id;
18044
18040
  if (V) {
18045
- const j = await L.getHandler().readObjects({
18041
+ const j = await H.getHandler().readObjects({
18046
18042
  model: I.model,
18047
18043
  context: c,
18048
18044
  ids: [V]
@@ -18057,7 +18053,7 @@ function Ib(t, e) {
18057
18053
  }) : N = {};
18058
18054
  const U = await (async () => {
18059
18055
  try {
18060
- return A != null && A.domain && Array.isArray(A.domain) && A.domain.length > 0 ? A.domain : A && A.domain && !Array.isArray(A.domain) ? await L.getHandler().evalDomain({
18056
+ return A != null && A.domain && Array.isArray(A.domain) && A.domain.length > 0 ? A.domain : A && A.domain && !Array.isArray(A.domain) ? await H.getHandler().evalDomain({
18061
18057
  domain: A.domain,
18062
18058
  values: { ...W || {}, ...l },
18063
18059
  context: { ...c, ...N },
@@ -18084,7 +18080,7 @@ function Ib(t, e) {
18084
18080
  view_id: A,
18085
18081
  res_id: k
18086
18082
  }) {
18087
- const E = await L.getHandler().getView({
18083
+ const E = await H.getHandler().getView({
18088
18084
  model: I,
18089
18085
  id: A || void 0,
18090
18086
  type: "form",
@@ -18112,7 +18108,7 @@ function Ib(t, e) {
18112
18108
  domain: W = [],
18113
18109
  context: V = {}
18114
18110
  }) {
18115
- const N = await L.getHandler().getActionData({
18111
+ const N = await H.getHandler().getActionData({
18116
18112
  action: I,
18117
18113
  context: c
18118
18114
  });
@@ -18129,7 +18125,7 @@ function Ib(t, e) {
18129
18125
  values: l
18130
18126
  }), K = N.domain, Q = await (async () => {
18131
18127
  try {
18132
- return K ? await L.getHandler().evalDomain({
18128
+ return K ? await H.getHandler().evalDomain({
18133
18129
  domain: K,
18134
18130
  values: l,
18135
18131
  context: { ...c, ...z, ...V }
@@ -18152,7 +18148,7 @@ function Ib(t, e) {
18152
18148
  else if (ne === "dashboard")
18153
18149
  Y.push([void 0, "dashboard"]);
18154
18150
  else {
18155
- const { view_id: ie } = await L.getHandler().getView({
18151
+ const { view_id: ie } = await H.getHandler().getView({
18156
18152
  model: de,
18157
18153
  type: ne,
18158
18154
  id: ve,
@@ -18228,7 +18224,7 @@ function Ib(t, e) {
18228
18224
  } = I, [z, K] = U[0], Q = { id: z, type: K }, de = V, q = ln({
18229
18225
  context: de,
18230
18226
  values: { ...k, ...l }
18231
- }), oe = N, se = N ? await L.getHandler().evalDomain({
18227
+ }), oe = N, se = N ? await H.getHandler().evalDomain({
18232
18228
  domain: N,
18233
18229
  values: Cn({
18234
18230
  fields: A,
@@ -18265,7 +18261,7 @@ function Ib(t, e) {
18265
18261
  overrideUnsettedLimit: W = !1,
18266
18262
  values: V = {},
18267
18263
  domain: N
18268
- } = I, U = `${k},${A}`, j = await L.getHandler().getActionData({
18264
+ } = I, U = `${k},${A}`, j = await H.getHandler().getActionData({
18269
18265
  action: U,
18270
18266
  context: c
18271
18267
  }), ee = j.context, B = ln({
@@ -18275,7 +18271,7 @@ function Ib(t, e) {
18275
18271
  });
18276
18272
  let z = [];
18277
18273
  const K = N && N.length > 0 ? N : j.domain;
18278
- (N == null ? void 0 : N.length) > 0 ? z = N : j.domain && (z = await L.getHandler().evalDomain({
18274
+ (N == null ? void 0 : N.length) > 0 ? z = N : j.domain && (z = await H.getHandler().evalDomain({
18279
18275
  domain: j.domain,
18280
18276
  values: { ...l, ...V },
18281
18277
  context: { ...c, ...B }
@@ -18295,7 +18291,7 @@ function Ib(t, e) {
18295
18291
  else if (ie === "dashboard")
18296
18292
  te.push([void 0, "dashboard"]);
18297
18293
  else {
18298
- const { view_id: Te } = await L.getHandler().getView({
18294
+ const { view_id: Te } = await H.getHandler().getView({
18299
18295
  model: Q,
18300
18296
  type: ie,
18301
18297
  id: ne,
@@ -18340,7 +18336,7 @@ function Ib(t, e) {
18340
18336
  domain: W,
18341
18337
  context: V
18342
18338
  }) {
18343
- const N = await L.getHandler().getActionStringForModel(I);
18339
+ const N = await H.getHandler().getActionStringForModel(I);
18344
18340
  await D({
18345
18341
  action: N,
18346
18342
  values: A,
@@ -18383,7 +18379,7 @@ function Ib(t, e) {
18383
18379
  console.error(le);
18384
18380
  }
18385
18381
  if (V !== "current" && V !== void 0) {
18386
- const le = await L.getHandler().getView({
18382
+ const le = await H.getHandler().getView({
18387
18383
  model: E,
18388
18384
  type: "form",
18389
18385
  id: N.type === "form" ? N.id : void 0,
@@ -18444,7 +18440,7 @@ function Ib(t, e) {
18444
18440
  if (U === "dashboard")
18445
18441
  M.push([void 0, "dashboard"]);
18446
18442
  else {
18447
- const { view_id: j } = await L.getHandler().getView({
18443
+ const { view_id: j } = await H.getHandler().getView({
18448
18444
  model: I,
18449
18445
  type: U,
18450
18446
  context: c
@@ -18533,7 +18529,7 @@ function Eb(t) {
18533
18529
  ), $ = O(() => {
18534
18530
  S();
18535
18531
  }, [S]);
18536
- return /* @__PURE__ */ H(
18532
+ return /* @__PURE__ */ L(
18537
18533
  "div",
18538
18534
  {
18539
18535
  ref: y,
@@ -18889,7 +18885,7 @@ const { useToken: kb } = Xe, Mw = (t) => {
18889
18885
  onToggleFavourite: $,
18890
18886
  onItemClick: D,
18891
18887
  placement: "bottomRight",
18892
- header: /* @__PURE__ */ H("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
18888
+ header: /* @__PURE__ */ L("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
18893
18889
  /* @__PURE__ */ s("div", { style: { paddingLeft: 15, color: "#ccc" }, children: f == null ? void 0 : f("favorites").toUpperCase() }),
18894
18890
  /* @__PURE__ */ s("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ s(Et, { title: f == null ? void 0 : f("edit_favorites"), children: /* @__PURE__ */ s(
18895
18891
  ns,
@@ -18923,7 +18919,7 @@ export {
18923
18919
  gb as CommentsTimelineField,
18924
18920
  Da as ConfigContext,
18925
18921
  tf as ConfigContextProvider,
18926
- L as ConnectionProvider,
18922
+ H as ConnectionProvider,
18927
18923
  Vf as ContentRootProvider,
18928
18924
  Pw as CurrentTabContent,
18929
18925
  Ct as DEFAULT_SEARCH_LIMIT,