@gisce/react-ooui 1.5.7 → 1.5.8-rc.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.
@@ -48,7 +48,7 @@ const {
48
48
  labelSize: l,
49
49
  labelType: f
50
50
  } = t, d = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), {
51
- token: y
51
+ token: g
52
52
  } = ns(), p = l === void 0 ? es : ts;
53
53
  return /* @__PURE__ */ P("div", {
54
54
  className: `flex flex-row items-center pb-1 pt-1 ${rs[m]}`,
@@ -57,7 +57,7 @@ const {
57
57
  children: /* @__PURE__ */ n(Ur, {
58
58
  className: "pr-1 text-xs",
59
59
  style: {
60
- color: y.colorPrimary
60
+ color: g.colorPrimary
61
61
  }
62
62
  })
63
63
  }), /* @__PURE__ */ n("span", {
@@ -384,7 +384,7 @@ function we({
384
384
  tooltip: u
385
385
  } = e, {
386
386
  t: m
387
- } = W(ye), y = a ? [{
387
+ } = W(ye), g = a ? [{
388
388
  required: !0,
389
389
  message: m("fillRequiredField"),
390
390
  type: l,
@@ -393,7 +393,7 @@ function we({
393
393
  className: "mb-0",
394
394
  name: c,
395
395
  valuePropName: i,
396
- rules: y,
396
+ rules: g,
397
397
  children: t
398
398
  });
399
399
  if (!o)
@@ -455,7 +455,7 @@ const {
455
455
  domain: d,
456
456
  submitForm: u,
457
457
  fetchValues: m,
458
- formHasChanges: y,
458
+ formHasChanges: g,
459
459
  elementHasLostFocus: p,
460
460
  getFields: h
461
461
  } = e;
@@ -473,7 +473,7 @@ const {
473
473
  getContext: l,
474
474
  submitForm: u,
475
475
  fetchValues: m,
476
- formHasChanges: y,
476
+ formHasChanges: g,
477
477
  elementHasLostFocus: p
478
478
  },
479
479
  children: t
@@ -616,17 +616,17 @@ const io = (e) => {
616
616
  readOnly: c
617
617
  } = t, d = W(Le), {
618
618
  executeButtonAction: u
619
- } = d || {}, [m, y] = _(!1), {
619
+ } = d || {}, [m, g] = _(!1), {
620
620
  lang: p
621
621
  } = W(ye);
622
622
  async function h() {
623
- y(!0), await u({
623
+ g(!0), await u({
624
624
  type: s,
625
625
  action: r,
626
626
  context: f
627
- }), y(!1);
627
+ }), g(!1);
628
628
  }
629
- function g() {
629
+ function y() {
630
630
  if (a) {
631
631
  zt({
632
632
  confirmMessage: a,
@@ -652,7 +652,7 @@ const io = (e) => {
652
652
  children: /* @__PURE__ */ n(Ie, {
653
653
  block: !0,
654
654
  disabled: !o || c || m,
655
- onClick: g,
655
+ onClick: y,
656
656
  icon: v(),
657
657
  type: t.primary ? "primary" : "default",
658
658
  danger: t.danger,
@@ -679,14 +679,14 @@ const io = (e) => {
679
679
  primary: d,
680
680
  danger: u,
681
681
  context: m,
682
- readOnly: y
682
+ readOnly: g
683
683
  } = r || {}, p = W(Le), {
684
684
  executeButtonAction: h
685
- } = p || {}, [g, v] = _(!1), {
685
+ } = p || {}, [y, v] = _(!1), {
686
686
  lang: C
687
687
  } = W(ye);
688
688
  function R() {
689
- if (g)
689
+ if (y)
690
690
  return /* @__PURE__ */ n(st, {});
691
691
  if (c) {
692
692
  const S = ct(c);
@@ -721,7 +721,7 @@ const io = (e) => {
721
721
  ooui: t
722
722
  }),
723
723
  children: /* @__PURE__ */ P(Gt.Button, {
724
- disabled: !a || y,
724
+ disabled: !a || g,
725
725
  onClick: A,
726
726
  icon: /* @__PURE__ */ n(kt, {}),
727
727
  type: d ? "primary" : void 0,
@@ -754,15 +754,15 @@ const io = (e) => {
754
754
  confirmMessage: d,
755
755
  icon: u,
756
756
  context: m,
757
- readOnly: y,
757
+ readOnly: g,
758
758
  danger: p
759
- } = s, [h, g] = _(!1);
759
+ } = s, [h, y] = _(!1);
760
760
  async function v() {
761
- g(!0), await r({
761
+ y(!0), await r({
762
762
  type: c,
763
763
  action: a,
764
764
  context: m
765
- }), g(!1);
765
+ }), y(!1);
766
766
  }
767
767
  function C() {
768
768
  if (d) {
@@ -786,7 +786,7 @@ const io = (e) => {
786
786
  }
787
787
  }
788
788
  return /* @__PURE__ */ n(je.Item, {
789
- disabled: !f || y,
789
+ disabled: !f || g,
790
790
  onClick: C,
791
791
  icon: R(),
792
792
  danger: p,
@@ -875,9 +875,9 @@ const so = (e) => {
875
875
  modalWidth: l
876
876
  } = hn(), {
877
877
  t: f
878
- } = W(ye), [c, d] = _([]), [u, m] = _(!1), [y, p] = _(!1), [h, g] = _({}), v = ue();
878
+ } = W(ye), [c, d] = _([]), [u, m] = _(!1), [g, p] = _(!1), [h, y] = _({}), v = ue();
879
879
  ge(() => {
880
- t ? C() : g({});
880
+ t ? C() : y({});
881
881
  }, [t]);
882
882
  async function C() {
883
883
  m(!0);
@@ -913,7 +913,7 @@ const so = (e) => {
913
913
  }))[0];
914
914
  T[F.code] = w[s] || "";
915
915
  }
916
- v.current = T, g(T);
916
+ v.current = T, y(T);
917
917
  }
918
918
  function A() {
919
919
  return c.map((x, T) => /* @__PURE__ */ P(Ce, {
@@ -932,12 +932,12 @@ const so = (e) => {
932
932
  rows: 4,
933
933
  value: h[x.code] || "",
934
934
  onChange: (F) => {
935
- g({
935
+ y({
936
936
  ...h,
937
937
  [x.code]: F.target.value
938
938
  });
939
939
  },
940
- disabled: y
940
+ disabled: g
941
941
  })
942
942
  })]
943
943
  }, T));
@@ -970,11 +970,11 @@ const so = (e) => {
970
970
  children: [/* @__PURE__ */ n(Ie, {
971
971
  icon: /* @__PURE__ */ n(qt, {}),
972
972
  onClick: r,
973
- disabled: y,
973
+ disabled: g,
974
974
  children: f("cancel")
975
975
  }), /* @__PURE__ */ n(Ie, {
976
- icon: y ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(Mt, {}),
977
- disabled: y,
976
+ icon: g ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(Mt, {}),
977
+ disabled: g,
978
978
  onClick: S,
979
979
  style: {
980
980
  marginLeft: 15
@@ -1085,8 +1085,8 @@ const {
1085
1085
  value: e,
1086
1086
  disabled: !0,
1087
1087
  id: t,
1088
- onChange: (y) => {
1089
- i == null || i(y.target.value);
1088
+ onChange: (g) => {
1089
+ i == null || i(g.target.value);
1090
1090
  },
1091
1091
  onBlur: c,
1092
1092
  style: {
@@ -1117,8 +1117,8 @@ const {
1117
1117
  value: e,
1118
1118
  id: t,
1119
1119
  style: r,
1120
- onChange: (y) => {
1121
- i == null || i(y.target.value);
1120
+ onChange: (g) => {
1121
+ i == null || i(g.target.value);
1122
1122
  },
1123
1123
  onBlur: c
1124
1124
  })
@@ -1291,29 +1291,29 @@ function Ia(e, t, r) {
1291
1291
  if (typeof e != "function")
1292
1292
  throw new TypeError(Ta);
1293
1293
  t = xr(t) || 0, Sa(r) && (d = !!r.leading, u = "maxWait" in r, s = u ? Fa(xr(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
1294
- function y(S) {
1294
+ function g(S) {
1295
1295
  var E = i, x = o;
1296
1296
  return i = o = void 0, c = S, a = e.apply(x, E), a;
1297
1297
  }
1298
1298
  function p(S) {
1299
- return c = S, l = setTimeout(v, t), d ? y(S) : a;
1299
+ return c = S, l = setTimeout(v, t), d ? g(S) : a;
1300
1300
  }
1301
1301
  function h(S) {
1302
1302
  var E = S - f, x = S - c, T = t - E;
1303
1303
  return u ? Oa(T, s - x) : T;
1304
1304
  }
1305
- function g(S) {
1305
+ function y(S) {
1306
1306
  var E = S - f, x = S - c;
1307
1307
  return f === void 0 || E >= t || E < 0 || u && x >= s;
1308
1308
  }
1309
1309
  function v() {
1310
1310
  var S = Fn();
1311
- if (g(S))
1311
+ if (y(S))
1312
1312
  return C(S);
1313
1313
  l = setTimeout(v, h(S));
1314
1314
  }
1315
1315
  function C(S) {
1316
- return l = void 0, m && i ? y(S) : (i = o = void 0, a);
1316
+ return l = void 0, m && i ? g(S) : (i = o = void 0, a);
1317
1317
  }
1318
1318
  function R() {
1319
1319
  l !== void 0 && clearTimeout(l), c = 0, i = f = o = l = void 0;
@@ -1322,12 +1322,12 @@ function Ia(e, t, r) {
1322
1322
  return l === void 0 ? a : C(Fn());
1323
1323
  }
1324
1324
  function A() {
1325
- var S = Fn(), E = g(S);
1325
+ var S = Fn(), E = y(S);
1326
1326
  if (i = arguments, o = this, f = S, E) {
1327
1327
  if (l === void 0)
1328
1328
  return p(f);
1329
1329
  if (u)
1330
- return clearTimeout(l), l = setTimeout(v, t), y(f);
1330
+ return clearTimeout(l), l = setTimeout(v, t), g(f);
1331
1331
  }
1332
1332
  return l === void 0 && (l = setTimeout(v, t)), a;
1333
1333
  }
@@ -1384,13 +1384,13 @@ const Aa = (e) => {
1384
1384
  i == null || i(u);
1385
1385
  };
1386
1386
  async function f() {
1387
- const u = await Rt(r), m = `data:${u == null ? void 0 : u.mime};base64,${r}`, y = document.createElement("a");
1388
- y.href = m, y.download = `image.${u == null ? void 0 : u.ext}`, y.click();
1387
+ const u = await Rt(r), m = `data:${u == null ? void 0 : u.mime};base64,${r}`, g = document.createElement("a");
1388
+ g.href = m, g.download = `image.${u == null ? void 0 : u.ext}`, g.click();
1389
1389
  }
1390
1390
  async function c(u) {
1391
1391
  u.stopPropagation(), u.preventDefault();
1392
- const m = u.target.files[0], y = await go(m);
1393
- l(y);
1392
+ const m = u.target.files[0], g = await go(m);
1393
+ l(g);
1394
1394
  }
1395
1395
  function d() {
1396
1396
  l(void 0);
@@ -1483,9 +1483,9 @@ const Aa = (e) => {
1483
1483
  title: o.label,
1484
1484
  render: f,
1485
1485
  sorter: (c, d) => {
1486
- var y, p;
1486
+ var g, p;
1487
1487
  let u = c[a] || "", m = d[a] || "";
1488
- return s === "many2one" && (u = ((y = c[a]) == null ? void 0 : y.value) || "", m = ((p = d[a]) == null ? void 0 : p.value) || ""), u < m ? -1 : u > m ? 1 : 0;
1488
+ return s === "many2one" && (u = ((g = c[a]) == null ? void 0 : g.value) || "", m = ((p = d[a]) == null ? void 0 : p.value) || ""), u < m ? -1 : u > m ? 1 : 0;
1489
1489
  }
1490
1490
  };
1491
1491
  }), yo = (e, t) => t.map((i) => {
@@ -1525,9 +1525,9 @@ function Dt({
1525
1525
  if (!t)
1526
1526
  return e;
1527
1527
  const { id: i, desc: o } = t, s = o === !1 ? "ascend" : "descend", a = r[i].type, l = (f, c) => {
1528
- var m, y;
1528
+ var m, g;
1529
1529
  let d = f[i] || "", u = c[i] || "";
1530
- return a === "many2one" && (d = ((m = f[i]) == null ? void 0 : m[1]) || "", u = ((y = c[i]) == null ? void 0 : y[1]) || ""), d === u ? 0 : s === "ascend" ? d > u ? 1 : -1 : d < u ? 1 : -1;
1530
+ return a === "many2one" && (d = ((m = f[i]) == null ? void 0 : m[1]) || "", u = ((g = c[i]) == null ? void 0 : g[1]) || ""), d === u ? 0 : s === "ascend" ? d > u ? 1 : -1 : d < u ? 1 : -1;
1531
1531
  };
1532
1532
  return e.sort(l);
1533
1533
  }
@@ -1554,7 +1554,7 @@ const Qn = async (e) => {
1554
1554
  };
1555
1555
  let d = [], u;
1556
1556
  if (a === "tree" && (o == null ? void 0 : o.arch)) {
1557
- const h = (p = _t(o)) == null ? void 0 : p.colors, g = await H.getHandler().readEvalUiObjects({
1557
+ const h = (p = _t(o)) == null ? void 0 : p.colors, y = await H.getHandler().readEvalUiObjects({
1558
1558
  model: r,
1559
1559
  ids: f,
1560
1560
  arch: o == null ? void 0 : o.arch,
@@ -1564,7 +1564,7 @@ const Qn = async (e) => {
1564
1564
  colors: h
1565
1565
  }
1566
1566
  });
1567
- d = g[0], u = nn(g[1]);
1567
+ d = y[0], u = nn(y[1]);
1568
1568
  } else
1569
1569
  d = await H.getHandler().readObjects({
1570
1570
  model: r,
@@ -1573,19 +1573,19 @@ const Qn = async (e) => {
1573
1573
  context: s
1574
1574
  });
1575
1575
  const m = d.map((h) => {
1576
- const g = {};
1576
+ const y = {};
1577
1577
  return Object.keys(h).forEach((v) => {
1578
- (c[a].hasOwnProperty(v) || v === "id") && (g[v] = h[v]);
1579
- }), g;
1578
+ (c[a].hasOwnProperty(v) || v === "id") && (y[v] = h[v]);
1579
+ }), y;
1580
1580
  });
1581
1581
  return [
1582
1582
  t.map((h) => {
1583
- const g = m.find(
1583
+ const y = m.find(
1584
1584
  (C) => C.id === h.id
1585
1585
  ), v = {
1586
1586
  ...h
1587
1587
  };
1588
- return a === "form" ? v.values = g : a === "tree" && (v.treeValues = g), v;
1588
+ return a === "form" ? v.values = y : a === "tree" && (v.treeValues = y), v;
1589
1589
  }).concat(l),
1590
1590
  u
1591
1591
  ];
@@ -1613,7 +1613,7 @@ const Qn = async (e) => {
1613
1613
  St(() => {
1614
1614
  p();
1615
1615
  }, [t]);
1616
- const y = async (h) => o && o[h] ? o[h] : await H.getHandler().getView({
1616
+ const g = async (h) => o && o[h] ? o[h] : await H.getHandler().getView({
1617
1617
  model: r,
1618
1618
  type: h,
1619
1619
  context: {
@@ -1623,8 +1623,8 @@ const Qn = async (e) => {
1623
1623
  }), p = async () => {
1624
1624
  a(!0), f(void 0);
1625
1625
  try {
1626
- const h = await y("form"), g = await y("tree");
1627
- c.set("form", h), c.set("tree", g), d(c);
1626
+ const h = await g("form"), y = await g("tree");
1627
+ c.set("form", h), c.set("tree", y), d(c);
1628
1628
  } catch (h) {
1629
1629
  f(h);
1630
1630
  } finally {
@@ -1652,10 +1652,10 @@ const Qn = async (e) => {
1652
1652
  onChange: o
1653
1653
  } = e, {
1654
1654
  items: s = []
1655
- } = t || {}, [a, l] = _(!1), [f, c] = _(), [d, u] = _(!1), [m, y] = _(), {
1655
+ } = t || {}, [a, l] = _(!1), [f, c] = _(), [d, u] = _(!1), [m, g] = _(), {
1656
1656
  relation: p,
1657
1657
  context: h,
1658
- readOnly: g,
1658
+ readOnly: y,
1659
1659
  summaryField: v,
1660
1660
  titleField: C
1661
1661
  } = i, R = s.filter((x) => x.values), b = W(Le), {
@@ -1715,7 +1715,7 @@ const Qn = async (e) => {
1715
1715
  cursor: "pointer"
1716
1716
  },
1717
1717
  onClick: () => {
1718
- y(R.find((L) => x.id === L.id)), u(!0);
1718
+ g(R.find((L) => x.id === L.id)), u(!0);
1719
1719
  },
1720
1720
  children: /* @__PURE__ */ n("strong", {
1721
1721
  children: (F = x.values) == null ? void 0 : F[C]
@@ -1726,7 +1726,7 @@ const Qn = async (e) => {
1726
1726
  cursor: "pointer"
1727
1727
  },
1728
1728
  onClick: () => {
1729
- y(R.find((L) => x.id === L.id)), u(!0);
1729
+ g(R.find((L) => x.id === L.id)), u(!0);
1730
1730
  },
1731
1731
  children: (w = x.values) == null ? void 0 : w[v]
1732
1732
  })]
@@ -1750,7 +1750,7 @@ const Qn = async (e) => {
1750
1750
  onCancel: () => {
1751
1751
  u(!1);
1752
1752
  },
1753
- readOnly: g,
1753
+ readOnly: y,
1754
1754
  postSaveAction: E
1755
1755
  })]
1756
1756
  });
@@ -1978,12 +1978,12 @@ const $t = ({
1978
1978
  items: o = []
1979
1979
  } = t || {}, s = o.filter((S) => S.operation !== "pendingRemove").map((S) => S.id), [a, l] = _([]), [f, c] = _(), [d, u] = _(!1), {
1980
1980
  relation: m,
1981
- context: y,
1981
+ context: g,
1982
1982
  readOnly: p,
1983
1983
  field: h
1984
- } = r, g = W(Le), {
1984
+ } = r, y = W(Le), {
1985
1985
  getContext: v
1986
- } = g || {};
1986
+ } = y || {};
1987
1987
  St(() => {
1988
1988
  R();
1989
1989
  }, [o]);
@@ -2000,11 +2000,11 @@ const $t = ({
2000
2000
  const T = await H.getHandler().evalDomain({
2001
2001
  domain: r.domain,
2002
2002
  values: $t({
2003
- fields: g == null ? void 0 : g.getFields(),
2004
- values: g.getPlainValues()
2003
+ fields: y == null ? void 0 : y.getFields(),
2004
+ values: y.getPlainValues()
2005
2005
  }),
2006
- fields: g == null ? void 0 : g.getFields(),
2007
- context: g.getContext()
2006
+ fields: y == null ? void 0 : y.getFields(),
2007
+ context: y.getContext()
2008
2008
  });
2009
2009
  S = [...S, ...T];
2010
2010
  }
@@ -2014,7 +2014,7 @@ const $t = ({
2014
2014
  fields: [h],
2015
2015
  context: {
2016
2016
  ...v == null ? void 0 : v(),
2017
- ...y
2017
+ ...g
2018
2018
  }
2019
2019
  })).map((T) => {
2020
2020
  const F = T[h];
@@ -2232,28 +2232,28 @@ const $t = ({
2232
2232
  s < o && (o = s);
2233
2233
  let a = !1, l = [];
2234
2234
  const f = i.map((u, m) => {
2235
- const y = u.filter((g) => !g.invisible), p = nl({
2236
- row: y,
2235
+ const g = u.filter((y) => !y.invisible), p = nl({
2236
+ row: g,
2237
2237
  numberOfColumns: o
2238
2238
  });
2239
2239
  let h = p;
2240
- return (m === 0 || !(u.length === 1 && u.some((g) => g.type === "group"))) && (h = tl({
2240
+ return (m === 0 || !(u.length === 1 && u.some((y) => y.type === "group"))) && (h = tl({
2241
2241
  row: p,
2242
2242
  numberOfColumns: o,
2243
2243
  mustFillWithEmpties: r
2244
- }), l = l.concat(h)), h.map((g) => (g instanceof Vt && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
2244
+ }), l = l.concat(h)), h.map((y) => (y instanceof Vt && y.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
2245
2245
  style: {
2246
2246
  ...el({
2247
- item: g,
2247
+ item: y,
2248
2248
  responsiveBehaviour: r
2249
2249
  }),
2250
2250
  minWidth: 0
2251
2251
  },
2252
2252
  children: Qa({
2253
- ooui: g,
2253
+ ooui: y,
2254
2254
  responsiveBehaviour: r
2255
2255
  })
2256
- }, g.key)));
2256
+ }, y.key)));
2257
2257
  }), c = i.length === 1 ? rl(l, o) : ol(o, a);
2258
2258
  return /* @__PURE__ */ n("div", {
2259
2259
  style: {
@@ -2397,10 +2397,10 @@ const $t = ({
2397
2397
  setActionViewTotalItems: d,
2398
2398
  treeView: u,
2399
2399
  formView: m,
2400
- sorter: y,
2400
+ sorter: g,
2401
2401
  setSorter: p,
2402
2402
  setCurrentItemIndex: h,
2403
- setResultsActionView: g,
2403
+ setResultsActionView: y,
2404
2404
  resultsActionView: v,
2405
2405
  domain: C,
2406
2406
  currentId: R,
@@ -2409,7 +2409,7 @@ const $t = ({
2409
2409
  searchParams: S = [],
2410
2410
  setSearchValues: E
2411
2411
  } = e, [x, T] = _(!1), [F, w] = _(!1), [L, V] = _(), [O, M] = _(1), [k, D] = _(0), [$, I] = _(), [j, G] = _([]), [U, Y] = _(void 0), [z, N] = _(void 0), B = ue(b || Wt), X = ue([]), ne = ke((ie) => {
2412
- g == null || g([...ie]), G([...ie]);
2412
+ y == null || y([...ie]), G([...ie]);
2413
2413
  }, []), le = ke(() => v || j, [v, j]), J = ke(async () => {
2414
2414
  const ie = await H.getHandler().nameSearch({
2415
2415
  model: t,
@@ -2430,9 +2430,9 @@ const $t = ({
2430
2430
  attrs: Ke
2431
2431
  }), xe = ee[0];
2432
2432
  X.current = [...xe], Y(nn(ee[1])), N(Cr(ee[1]));
2433
- const Ve = xe.map((se) => se.id), He = y !== void 0 ? Dt({
2433
+ const Ve = xe.map((se) => se.id), He = g !== void 0 ? Dt({
2434
2434
  resultsToSort: xe,
2435
- sorter: y,
2435
+ sorter: g,
2436
2436
  fields: { ...u.fields, ...m.fields }
2437
2437
  }) : [...X.current];
2438
2438
  ne(He), Ve.length > 0 ? h == null || h(0) : h == null || h(void 0);
@@ -2448,7 +2448,7 @@ const $t = ({
2448
2448
  C,
2449
2449
  u,
2450
2450
  m,
2451
- y,
2451
+ g,
2452
2452
  h,
2453
2453
  d
2454
2454
  ]), Z = ke(
@@ -2465,9 +2465,9 @@ const $t = ({
2465
2465
  attrs: xe
2466
2466
  });
2467
2467
  Y(nn(se)), N(Cr(se)), X.current = [...He];
2468
- const me = y !== void 0 ? Dt({
2468
+ const me = g !== void 0 ? Dt({
2469
2469
  resultsToSort: He,
2470
- sorter: y,
2470
+ sorter: g,
2471
2471
  fields: { ...u.fields, ...m.fields }
2472
2472
  }) : [...X.current];
2473
2473
  if (ne(me), v && me.length > 0) {
@@ -2491,7 +2491,7 @@ const $t = ({
2491
2491
  C,
2492
2492
  u,
2493
2493
  m,
2494
- y,
2494
+ g,
2495
2495
  d,
2496
2496
  b,
2497
2497
  k,
@@ -2525,12 +2525,12 @@ const $t = ({
2525
2525
  w,
2526
2526
  T,
2527
2527
  a,
2528
- y,
2528
+ g,
2529
2529
  u
2530
2530
  ]
2531
2531
  ), he = ke(
2532
2532
  (ie) => {
2533
- if (JSON.stringify(ie) === JSON.stringify(y))
2533
+ if (JSON.stringify(ie) === JSON.stringify(g))
2534
2534
  return;
2535
2535
  p == null || p(ie);
2536
2536
  const Ee = ie !== void 0 ? Dt({
@@ -2628,10 +2628,10 @@ const $t = ({
2628
2628
  setCurrentId: d,
2629
2629
  setResults: u,
2630
2630
  results: m,
2631
- currentItemIndex: y,
2631
+ currentItemIndex: g,
2632
2632
  setCurrentItemIndex: p,
2633
2633
  currentModel: h,
2634
- sorter: g,
2634
+ sorter: y,
2635
2635
  setSorter: v,
2636
2636
  totalItems: C,
2637
2637
  setTotalItems: R,
@@ -2643,7 +2643,7 @@ const $t = ({
2643
2643
  limit: T
2644
2644
  } = e, [F, w] = _(!1), [L, V] = _(!1), [O, M] = _(!1), [k, D] = _(!0), [$, I] = _(!0), [j, G] = _([]), [U, Y] = _(!1), [z, N] = _([]), [B, X] = _(!1), [ne, le] = _(!0), [J, Z] = _(), [fe, he] = _({}), [Me, De] = _(T !== void 0 ? T : Wt), [Ne, Ge] = _(i);
2645
2645
  ge(() => {
2646
- m && m.length > 0 && !y && (p == null || p(0), d == null || d(m[0].id));
2646
+ m && m.length > 0 && !g && (p == null || p(0), d == null || d(m[0].id));
2647
2647
  }, [m]), ge(() => {
2648
2648
  De(T !== void 0 ? T : Wt);
2649
2649
  }, [T]), ge(() => {
@@ -2671,7 +2671,7 @@ const $t = ({
2671
2671
  onNewClicked: f,
2672
2672
  currentId: c,
2673
2673
  setCurrentId: d,
2674
- currentItemIndex: y,
2674
+ currentItemIndex: g,
2675
2675
  setCurrentItemIndex: p,
2676
2676
  results: m,
2677
2677
  setResults: u,
@@ -2692,7 +2692,7 @@ const $t = ({
2692
2692
  searchParams: z,
2693
2693
  searchVisible: B,
2694
2694
  setSearchVisible: X,
2695
- sorter: g,
2695
+ sorter: y,
2696
2696
  setSorter: v,
2697
2697
  totalItems: C,
2698
2698
  setTotalItems: R,
@@ -2722,7 +2722,7 @@ const $t = ({
2722
2722
  onChangeTab: l,
2723
2723
  onRemoveTab: f,
2724
2724
  tabs: c
2725
- } = e, [d, u] = _(), [m, y] = _();
2725
+ } = e, [d, u] = _(), [m, g] = _();
2726
2726
  return /* @__PURE__ */ n(dt.Provider, {
2727
2727
  value: {
2728
2728
  openAction: r,
@@ -2735,7 +2735,7 @@ const $t = ({
2735
2735
  tabs: c,
2736
2736
  currentId: m,
2737
2737
  currentView: d,
2738
- setCurrentId: y,
2738
+ setCurrentId: g,
2739
2739
  setCurrentView: u
2740
2740
  },
2741
2741
  children: t
@@ -2756,10 +2756,10 @@ const $t = ({
2756
2756
  xt(t, () => ({
2757
2757
  openActionModal: b
2758
2758
  }));
2759
- const [m, y] = _(!1), [p, h] = _({
2759
+ const [m, g] = _(!1), [p, h] = _({
2760
2760
  context: {}
2761
2761
  });
2762
- async function g(E) {
2762
+ async function y(E) {
2763
2763
  const {
2764
2764
  reportData: x,
2765
2765
  fields: T,
@@ -2828,7 +2828,7 @@ const $t = ({
2828
2828
  type: L
2829
2829
  } = E;
2830
2830
  if (d.current.push(w), L === "ir.actions.report.xml")
2831
- return await g({
2831
+ return await y({
2832
2832
  reportData: E,
2833
2833
  fields: x,
2834
2834
  values: T,
@@ -2942,7 +2942,7 @@ const $t = ({
2942
2942
  context: F,
2943
2943
  formView: T,
2944
2944
  actionData: w
2945
- }), y(!0));
2945
+ }), g(!0));
2946
2946
  }
2947
2947
  async function A({
2948
2948
  domain: E,
@@ -2957,16 +2957,16 @@ const $t = ({
2957
2957
  context: {},
2958
2958
  formView: void 0,
2959
2959
  actionData: void 0
2960
- }), y(!1), await new Promise((L) => setTimeout(L, 300)), h({
2960
+ }), g(!1), await new Promise((L) => setTimeout(L, 300)), h({
2961
2961
  domain: E,
2962
2962
  model: x,
2963
2963
  context: F,
2964
2964
  formView: T,
2965
2965
  actionData: w
2966
- }), y(!0);
2966
+ }), g(!0);
2967
2967
  }
2968
2968
  async function S() {
2969
- Or(d.current), d.current = [], y(!1), h({
2969
+ Or(d.current), d.current = [], g(!1), h({
2970
2970
  domain: void 0,
2971
2971
  model: void 0,
2972
2972
  context: {},
@@ -2997,7 +2997,7 @@ const $t = ({
2997
2997
  visible: m,
2998
2998
  onSubmitSucceed: S,
2999
2999
  onCancel: () => {
3000
- Or(d.current), d.current = [], y(!1), h({
3000
+ Or(d.current), d.current = [], g(!1), h({
3001
3001
  domain: void 0,
3002
3002
  model: void 0,
3003
3003
  context: {},
@@ -3105,10 +3105,10 @@ function Ol(e, t) {
3105
3105
  readOnly: d = !1,
3106
3106
  mustClearAfterSave: u = !1,
3107
3107
  submitMode: m = "api",
3108
- values: y,
3108
+ values: g,
3109
3109
  formView: p,
3110
3110
  postSaveAction: h,
3111
- insideButtonModal: g = !1,
3111
+ insideButtonModal: y = !1,
3112
3112
  parentContext: v = {},
3113
3113
  actionDomain: C,
3114
3114
  visible: R = !0,
@@ -3153,7 +3153,7 @@ function Ol(e, t) {
3153
3153
  }
3154
3154
  (i === void 0 && I || i !== void 0 && I && i < 0) && (B.current = void 0, M(void 0)), rr();
3155
3155
  }
3156
- }, [i, r, y, p, R]), ge(() => {
3156
+ }, [i, r, g, p, R]), ge(() => {
3157
3157
  z && (wn({
3158
3158
  elementHasLostFocus: !0
3159
3159
  }), N(!1));
@@ -3273,7 +3273,7 @@ function Ol(e, t) {
3273
3273
  }
3274
3274
  }, yt = async (K) => {
3275
3275
  let q, re, oe, pe;
3276
- be == null || be(!0), V(void 0), K != null && K.fields ? (re = K.fields, oe = K.arch) : (re = I, oe = D), y && (K == null ? void 0 : K.forceRefresh) !== !0 ? q = y : {
3276
+ be == null || be(!0), V(void 0), K != null && K.fields ? (re = K.fields, oe = K.arch) : (re = I, oe = D), g && (K == null ? void 0 : K.forceRefresh) !== !0 ? q = g : {
3277
3277
  values: q,
3278
3278
  defaultGetCalled: pe
3279
3279
  } = await qo({
@@ -3396,12 +3396,12 @@ function Ol(e, t) {
3396
3396
  });
3397
3397
  B.current = oe, X.current = re;
3398
3398
  }
3399
- h && await h([ce()]), !g && q && (se == null || se(ce(), Ye(), ae()));
3399
+ h && await h([ce()]), !y && q && (se == null || se(ce(), Ye(), ae()));
3400
3400
  }, zo = async (K) => {
3401
3401
  const {
3402
3402
  callOnSubmitSucceed: q = !0
3403
3403
  } = K || {};
3404
- !g && q && (se == null || se(ce(), Ye(), ae()));
3404
+ !y && q && (se == null || se(ce(), Ye(), ae()));
3405
3405
  }, Qt = async (K) => {
3406
3406
  let q = !1;
3407
3407
  const {
@@ -3570,7 +3570,7 @@ function Ol(e, t) {
3570
3570
  ...q
3571
3571
  }
3572
3572
  });
3573
- if (typeof re == "object" && re !== null && Object.keys(re).length === 0 && g)
3573
+ if (typeof re == "object" && re !== null && Object.keys(re).length === 0 && y)
3574
3574
  se == null || se(ce(), Ye(), ae());
3575
3575
  else if (re.type && re.type === "ir.actions.act_window_close")
3576
3576
  se == null || se(ce(), Ye(), ae());
@@ -3669,7 +3669,7 @@ function Ol(e, t) {
3669
3669
  }
3670
3670
  let oe = !1;
3671
3671
  try {
3672
- (nt() || ce() === void 0) && (oe = !0, bn(!0), m === "2many" ? (await ir({
3672
+ !d && (nt() || ce() === void 0) && (oe = !0, bn(!0), m === "2many" ? (await ir({
3673
3673
  callOnSubmitSucceed: !1
3674
3674
  }), Z.current = !0) : await Qt({
3675
3675
  callOnSubmitSucceed: !1
@@ -3775,11 +3775,11 @@ const Zt = bt(Ol), Xt = (e) => {
3775
3775
  ...f
3776
3776
  } = e, {
3777
3777
  modalWidth: c
3778
- } = hn(), [d, u] = _(i), [m, y] = _(!1), [p, h] = _();
3778
+ } = hn(), [d, u] = _(i), [m, g] = _(!1), [p, h] = _();
3779
3779
  ge(() => {
3780
- a && g();
3780
+ a && y();
3781
3781
  }, [l, a]);
3782
- async function g() {
3782
+ async function y() {
3783
3783
  const {
3784
3784
  action_id: b,
3785
3785
  res_id: A,
@@ -3791,7 +3791,7 @@ const Zt = bt(Ol), Xt = (e) => {
3791
3791
  view_id: E,
3792
3792
  res_id: A || !1
3793
3793
  });
3794
- y(x !== !1), x !== !1 && h(x);
3794
+ g(x !== !1), x !== !1 && h(x);
3795
3795
  }
3796
3796
  async function v() {
3797
3797
  if (m && p)
@@ -3812,7 +3812,7 @@ const Zt = bt(Ol), Xt = (e) => {
3812
3812
  res_id: A || !1
3813
3813
  });
3814
3814
  }
3815
- y(!m);
3815
+ g(!m);
3816
3816
  }
3817
3817
  function C() {
3818
3818
  return /* @__PURE__ */ P(Ce, {
@@ -4063,15 +4063,15 @@ const {
4063
4063
  const [m] = u;
4064
4064
  return i ? !i.includes(m) : !0;
4065
4065
  }).map((u) => {
4066
- const [m, y] = u;
4066
+ const [m, g] = u;
4067
4067
  return /* @__PURE__ */ n(El, {
4068
- value: y,
4069
- children: y
4068
+ value: g,
4069
+ children: g
4070
4070
  }, m);
4071
4071
  }), c = a && !s ? Nl : Ct;
4072
4072
  function d(u) {
4073
- const m = u.map((y) => {
4074
- const p = l.find(([h, g]) => y === g);
4073
+ const m = u.map((g) => {
4074
+ const p = l.find(([h, y]) => g === y);
4075
4075
  return p && p[0];
4076
4076
  });
4077
4077
  if (m.length === 0) {
@@ -4237,17 +4237,17 @@ function Fo(e) {
4237
4237
  setSearchFilterHeight: d,
4238
4238
  searchError: u,
4239
4239
  searchValues: m,
4240
- showLimitOptions: y = !0
4241
- } = e, [p, h] = _(), [g, v] = _(), [C, R] = _(!1), b = ue(), {
4240
+ showLimitOptions: g = !0
4241
+ } = e, [p, h] = _(), [y, v] = _(), [C, R] = _(!1), b = ue(), {
4242
4242
  token: A
4243
4243
  } = jl(), [S] = lt.useForm();
4244
4244
  ge(() => {
4245
4245
  S.setFieldsValue(m);
4246
4246
  }, [m]);
4247
4247
  const E = () => {
4248
- if (!g)
4248
+ if (!y)
4249
4249
  return;
4250
- const F = C ? g : p, w = F == null ? void 0 : F.rows;
4250
+ const F = C ? y : p, w = F == null ? void 0 : F.rows;
4251
4251
  return w == null ? void 0 : w.map((L, V) => /* @__PURE__ */ n(Ce, {
4252
4252
  children: L.map((O, M) => /* @__PURE__ */ n(de, {
4253
4253
  xs: 24,
@@ -4302,7 +4302,7 @@ function Fo(e) {
4302
4302
  offset: a,
4303
4303
  limit: l
4304
4304
  },
4305
- children: [x, C && y && /* @__PURE__ */ n(Bl, {
4305
+ children: [x, C && g && /* @__PURE__ */ n(Bl, {
4306
4306
  onLimitChange: f
4307
4307
  }), /* @__PURE__ */ n(Hl, {
4308
4308
  advancedFilter: C,
@@ -4453,10 +4453,10 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
4453
4453
  id: t,
4454
4454
  model: r,
4455
4455
  context: i = {}
4456
- } = e, [o, s] = _(!1), [a, l] = _(!1), [f, c] = _(!1), [d, u] = _(), [m, y] = _(), {
4456
+ } = e, [o, s] = _(!1), [a, l] = _(!1), [f, c] = _(!1), [d, u] = _(), [m, g] = _(), {
4457
4457
  t: p
4458
4458
  } = W(ye), h = W(dt), {
4459
- openRelate: g
4459
+ openRelate: y
4460
4460
  } = h || {}, v = W(Lt), {
4461
4461
  processAction: C
4462
4462
  } = v || {};
@@ -4486,7 +4486,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
4486
4486
  }))[0]), $ = {
4487
4487
  ...It($, k),
4488
4488
  active_id: t
4489
- }, y($), c(!1);
4489
+ }, g($), c(!1);
4490
4490
  } catch (M) {
4491
4491
  c(!1), ze(M);
4492
4492
  return;
@@ -4537,7 +4537,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
4537
4537
  const w = d.toolbar.relate.find((L) => L.id === parseInt(F.key));
4538
4538
  if (!w)
4539
4539
  return;
4540
- g({
4540
+ y({
4541
4541
  relateData: w,
4542
4542
  values: m,
4543
4543
  fields: d.fields,
@@ -4615,13 +4615,13 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
4615
4615
  if (!t || t && o)
4616
4616
  return;
4617
4617
  l(!0);
4618
- const y = await H.getHandler().execute({
4618
+ const g = await H.getHandler().execute({
4619
4619
  action: "name_get",
4620
4620
  payload: [d],
4621
4621
  model: f,
4622
4622
  context: r
4623
4623
  });
4624
- s(y[0][1]), l(!1);
4624
+ s(g[0][1]), l(!1);
4625
4625
  }, [t, o]);
4626
4626
  if (ge(() => {
4627
4627
  u();
@@ -4646,7 +4646,7 @@ var _o = { exports: {} };
4646
4646
  (function(r, i) {
4647
4647
  e.exports = i();
4648
4648
  })(ft, function() {
4649
- var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", f = "hour", c = "day", d = "week", u = "month", m = "quarter", y = "year", p = "date", h = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(V) {
4649
+ var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", f = "hour", c = "day", d = "week", u = "month", m = "quarter", g = "year", p = "date", h = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(V) {
4650
4650
  var O = ["th", "st", "nd", "rd"], M = V % 100;
4651
4651
  return "[" + V + (O[(M - 20) % 10] || O[M] || O[0]) + "]";
4652
4652
  } }, R = function(V, O, M) {
@@ -4663,7 +4663,7 @@ var _o = { exports: {} };
4663
4663
  }, a: function(V) {
4664
4664
  return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
4665
4665
  }, p: function(V) {
4666
- return { M: u, y, w: d, d: c, D: p, h: f, m: l, s: a, ms: s, Q: m }[V] || String(V || "").toLowerCase().replace(/s$/, "");
4666
+ return { M: u, y: g, w: d, d: c, D: p, h: f, m: l, s: a, ms: s, Q: m }[V] || String(V || "").toLowerCase().replace(/s$/, "");
4667
4667
  }, u: function(V) {
4668
4668
  return V === void 0;
4669
4669
  } }, A = "en", S = {};
@@ -4709,7 +4709,7 @@ var _o = { exports: {} };
4709
4709
  if (D instanceof Date)
4710
4710
  return new Date(D);
4711
4711
  if (typeof D == "string" && !/Z$/i.test(D)) {
4712
- var I = D.match(g);
4712
+ var I = D.match(y);
4713
4713
  if (I) {
4714
4714
  var j = I[2] - 1 || 0, G = (I[7] || "0").substring(0, 3);
4715
4715
  return $ ? new Date(Date.UTC(I[1], j, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, G)) : new Date(I[1], j, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, G);
@@ -4745,7 +4745,7 @@ var _o = { exports: {} };
4745
4745
  return F.w(D.toDate()[ne].apply(D.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(le)), D);
4746
4746
  }, U = this.$W, Y = this.$M, z = this.$D, N = "set" + (this.$u ? "UTC" : "");
4747
4747
  switch (I) {
4748
- case y:
4748
+ case g:
4749
4749
  return $ ? j(1, 0) : j(31, 11);
4750
4750
  case u:
4751
4751
  return $ ? j(1, Y) : j(0, Y + 1);
@@ -4767,8 +4767,8 @@ var _o = { exports: {} };
4767
4767
  }, O.endOf = function(M) {
4768
4768
  return this.startOf(M, !1);
4769
4769
  }, O.$set = function(M, k) {
4770
- var D, $ = F.p(M), I = "set" + (this.$u ? "UTC" : ""), j = (D = {}, D[c] = I + "Date", D[p] = I + "Date", D[u] = I + "Month", D[y] = I + "FullYear", D[f] = I + "Hours", D[l] = I + "Minutes", D[a] = I + "Seconds", D[s] = I + "Milliseconds", D)[$], G = $ === c ? this.$D + (k - this.$W) : k;
4771
- if ($ === u || $ === y) {
4770
+ var D, $ = F.p(M), I = "set" + (this.$u ? "UTC" : ""), j = (D = {}, D[c] = I + "Date", D[p] = I + "Date", D[u] = I + "Month", D[g] = I + "FullYear", D[f] = I + "Hours", D[l] = I + "Minutes", D[a] = I + "Seconds", D[s] = I + "Milliseconds", D)[$], G = $ === c ? this.$D + (k - this.$W) : k;
4771
+ if ($ === u || $ === g) {
4772
4772
  var U = this.clone().set(p, 1);
4773
4773
  U.$d[j](G), U.init(), this.$d = U.set(p, Math.min(this.$D, U.daysInMonth())).$d;
4774
4774
  } else
@@ -4787,8 +4787,8 @@ var _o = { exports: {} };
4787
4787
  };
4788
4788
  if (I === u)
4789
4789
  return this.set(u, this.$M + M);
4790
- if (I === y)
4791
- return this.set(y, this.$y + M);
4790
+ if (I === g)
4791
+ return this.set(g, this.$y + M);
4792
4792
  if (I === c)
4793
4793
  return j(1);
4794
4794
  if (I === d)
@@ -4816,7 +4816,7 @@ var _o = { exports: {} };
4816
4816
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4817
4817
  }, O.diff = function(M, k, D) {
4818
4818
  var $, I = F.p(k), j = T(M), G = (j.utcOffset() - this.utcOffset()) * i, U = this - j, Y = F.m(this, j);
4819
- return Y = ($ = {}, $[y] = Y / 12, $[u] = Y, $[m] = Y / 3, $[d] = (U - G) / 6048e5, $[c] = (U - G) / 864e5, $[f] = U / o, $[l] = U / i, $[a] = U / r, $)[I] || U, D ? Y : F.a(Y);
4819
+ return Y = ($ = {}, $[g] = Y / 12, $[u] = Y, $[m] = Y / 3, $[d] = (U - G) / 6048e5, $[c] = (U - G) / 864e5, $[f] = U / o, $[l] = U / i, $[a] = U / r, $)[I] || U, D ? Y : F.a(Y);
4820
4820
  }, O.daysInMonth = function() {
4821
4821
  return this.endOf(u).$D;
4822
4822
  }, O.$locale = function() {
@@ -4838,7 +4838,7 @@ var _o = { exports: {} };
4838
4838
  return this.$d.toUTCString();
4839
4839
  }, V;
4840
4840
  }(), L = w.prototype;
4841
- return T.prototype = L, [["$ms", s], ["$s", a], ["$m", l], ["$H", f], ["$W", c], ["$M", u], ["$y", y], ["$D", p]].forEach(function(V) {
4841
+ return T.prototype = L, [["$ms", s], ["$s", a], ["$m", l], ["$H", f], ["$W", c], ["$M", u], ["$y", g], ["$D", p]].forEach(function(V) {
4842
4842
  L[V[1]] = function(O) {
4843
4843
  return this.$g(O, V[0], V[1]);
4844
4844
  };
@@ -4892,22 +4892,22 @@ var Ao = { exports: {} };
4892
4892
  return function(r, i, o) {
4893
4893
  var s = i.prototype, a = function(u) {
4894
4894
  return u && (u.indexOf ? u : u.s);
4895
- }, l = function(u, m, y, p, h) {
4896
- var g = u.name ? u : u.$locale(), v = a(g[m]), C = a(g[y]), R = v || C.map(function(A) {
4895
+ }, l = function(u, m, g, p, h) {
4896
+ var y = u.name ? u : u.$locale(), v = a(y[m]), C = a(y[g]), R = v || C.map(function(A) {
4897
4897
  return A.slice(0, p);
4898
4898
  });
4899
4899
  if (!h)
4900
4900
  return R;
4901
- var b = g.weekStart;
4901
+ var b = y.weekStart;
4902
4902
  return R.map(function(A, S) {
4903
4903
  return R[(S + (b || 0)) % 7];
4904
4904
  });
4905
4905
  }, f = function() {
4906
4906
  return o.Ls[o.locale()];
4907
4907
  }, c = function(u, m) {
4908
- return u.formats[m] || function(y) {
4909
- return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(p, h, g) {
4910
- return h || g.slice(1);
4908
+ return u.formats[m] || function(g) {
4909
+ return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(p, h, y) {
4910
+ return h || y.slice(1);
4911
4911
  });
4912
4912
  }(u.formats[m.toUpperCase()]);
4913
4913
  }, d = function() {
@@ -5014,7 +5014,7 @@ const ut = {
5014
5014
  return;
5015
5015
  }
5016
5016
  u(p.format(ut[d].dateInternalFormat));
5017
- }, y = t ? at(t, ut[d].dateInternalFormat) : void 0;
5017
+ }, g = t ? at(t, ut[d].dateInternalFormat) : void 0;
5018
5018
  return /* @__PURE__ */ n(Pn, {
5019
5019
  style: {
5020
5020
  width: "100%",
@@ -5026,7 +5026,7 @@ const ut = {
5026
5026
  picker: "date",
5027
5027
  showTime: o,
5028
5028
  format: ut[d].dateDisplayFormat,
5029
- value: y,
5029
+ value: g,
5030
5030
  onChange: m
5031
5031
  });
5032
5032
  }, ec = Et.div`
@@ -5146,10 +5146,10 @@ function gn(e) {
5146
5146
  rowSelection: d,
5147
5147
  scrollY: u,
5148
5148
  colorsForResults: m = {},
5149
- statusForResults: y = {},
5149
+ statusForResults: g = {},
5150
5150
  onChangeSort: p,
5151
5151
  sorter: h,
5152
- onFetchChildrenForRecord: g,
5152
+ onFetchChildrenForRecord: y,
5153
5153
  childField: v,
5154
5154
  rootTree: C = !1,
5155
5155
  context: R,
@@ -5265,10 +5265,10 @@ function gn(e) {
5265
5265
  color: m[N.id]
5266
5266
  };
5267
5267
  },
5268
- onRowStatus: Ea(y) ? (N) => {
5269
- if (y[N.id])
5268
+ onRowStatus: Ea(g) ? (N) => {
5269
+ if (g[N.id])
5270
5270
  return /* @__PURE__ */ n(di, {
5271
- color: y[N.id]
5271
+ color: g[N.id]
5272
5272
  });
5273
5273
  } : void 0,
5274
5274
  onRowDoubleClick: f,
@@ -5277,11 +5277,11 @@ function gn(e) {
5277
5277
  onChangeSort: p,
5278
5278
  sorter: h,
5279
5279
  readonly: b,
5280
- expandableOpts: g ? {
5280
+ expandableOpts: y ? {
5281
5281
  expandIcon: Ci,
5282
5282
  collapseIcon: Si,
5283
5283
  loadingIcon: st,
5284
- onFetchChildrenForRecord: g,
5284
+ onFetchChildrenForRecord: y,
5285
5285
  childField: v
5286
5286
  } : void 0
5287
5287
  }), G()]
@@ -5300,7 +5300,7 @@ function hc(e, t) {
5300
5300
  rootTree: d = !1,
5301
5301
  parentContext: u = {},
5302
5302
  onChangeSelectedRowKeys: m
5303
- } = e, [y, p] = _(!1), [h, g] = _(!1), v = ue(!1), [C, R] = _(), [b, A] = _(), [S, E] = _(), [x, T] = _(), [F, w] = _(200), L = ue(), {
5303
+ } = e, [g, p] = _(!1), [h, y] = _(!1), v = ue(!1), [C, R] = _(), [b, A] = _(), [S, E] = _(), [x, T] = _(), [F, w] = _(200), L = ue(), {
5304
5304
  height: V
5305
5305
  } = hn(), O = W(Lt), {
5306
5306
  processAction: M
@@ -5376,9 +5376,9 @@ function hc(e, t) {
5376
5376
  !h || c && (v.current = !1, Se());
5377
5377
  }, [$e, Ke, h, c, a]);
5378
5378
  const et = async () => {
5379
- g(!1), p(!0), T(void 0), Z == null || Z(!0);
5379
+ y(!1), p(!0), T(void 0), Z == null || Z(!0);
5380
5380
  try {
5381
- await Ye(), g(!0);
5381
+ await Ye(), y(!0);
5382
5382
  } catch (Ae) {
5383
5383
  T(Ae), Z == null || Z(!1);
5384
5384
  } finally {
@@ -5507,7 +5507,7 @@ function hc(e, t) {
5507
5507
  style: c ? {} : {
5508
5508
  display: "none"
5509
5509
  },
5510
- children: y ? /* @__PURE__ */ n(Re, {}) : nt()
5510
+ children: g ? /* @__PURE__ */ n(Re, {}) : nt()
5511
5511
  });
5512
5512
  }
5513
5513
  const Vo = bt(hc), ko = (e) => {
@@ -5524,26 +5524,26 @@ const Vo = bt(hc), ko = (e) => {
5524
5524
  modalHeight: u
5525
5525
  } = hn(), {
5526
5526
  t: m
5527
- } = W(ye), [y, p] = _([]), h = async () => {
5527
+ } = W(ye), [g, p] = _([]), h = async () => {
5528
5528
  await new Promise((R) => setTimeout(R, 5)), r();
5529
- }, g = async (R) => {
5529
+ }, y = async (R) => {
5530
5530
  const {
5531
5531
  id: b
5532
5532
  } = R;
5533
5533
  i([b]);
5534
5534
  };
5535
5535
  function v() {
5536
- if (y.length === 0) {
5536
+ if (g.length === 0) {
5537
5537
  h();
5538
5538
  return;
5539
5539
  }
5540
- i(y);
5540
+ i(g);
5541
5541
  }
5542
5542
  const C = () => /* @__PURE__ */ P(te, {
5543
5543
  children: [/* @__PURE__ */ n(Vo, {
5544
5544
  model: o,
5545
5545
  nameSearch: s,
5546
- onRowClicked: g,
5546
+ onRowClicked: y,
5547
5547
  treeScrollY: u * 0.3,
5548
5548
  domain: a,
5549
5549
  parentContext: l,
@@ -5646,7 +5646,7 @@ const Vo = bt(hc), ko = (e) => {
5646
5646
  domain: c
5647
5647
  } = i, d = o && !a ? {
5648
5648
  backgroundColor: Mo.colorPrimaryBg
5649
- } : void 0, [u, m] = _(!1), [y, p] = _(!1), [h, g] = _(!1), [v, C] = _(), R = ue(!1), [b, A] = _(""), S = ue(), E = W(Le), {
5649
+ } : void 0, [u, m] = _(!1), [g, p] = _(!1), [h, y] = _(!1), [v, C] = _(), R = ue(!1), [b, A] = _(""), S = ue(), E = W(Le), {
5650
5650
  domain: x,
5651
5651
  getValues: T,
5652
5652
  getFields: F,
@@ -5668,7 +5668,7 @@ const Vo = bt(hc), ko = (e) => {
5668
5668
  $([void 0, ""]);
5669
5669
  return;
5670
5670
  }
5671
- g(!0);
5671
+ y(!0);
5672
5672
  try {
5673
5673
  if (V.current && V.current.length > 0)
5674
5674
  G(S.current);
@@ -5686,7 +5686,7 @@ const Vo = bt(hc), ko = (e) => {
5686
5686
  } catch (B) {
5687
5687
  sn(B);
5688
5688
  } finally {
5689
- g(!1);
5689
+ y(!1);
5690
5690
  }
5691
5691
  }
5692
5692
  }, G = async (B) => {
@@ -5705,7 +5705,7 @@ const Vo = bt(hc), ko = (e) => {
5705
5705
  }
5706
5706
  C(B), m(!0);
5707
5707
  }, U = async (B) => {
5708
- g(!0);
5708
+ y(!0);
5709
5709
  try {
5710
5710
  const X = await H.getHandler().execute({
5711
5711
  action: "name_get",
@@ -5720,7 +5720,7 @@ const Vo = bt(hc), ko = (e) => {
5720
5720
  } catch (X) {
5721
5721
  sn(X);
5722
5722
  } finally {
5723
- g(!1);
5723
+ y(!1);
5724
5724
  }
5725
5725
  };
5726
5726
  async function Y() {
@@ -5818,7 +5818,7 @@ const Vo = bt(hc), ko = (e) => {
5818
5818
  ...l
5819
5819
  },
5820
5820
  id: t && t[0],
5821
- visible: y,
5821
+ visible: g,
5822
5822
  onSubmitSucceed: (B) => {
5823
5823
  p(!1), U(B);
5824
5824
  },
@@ -5864,7 +5864,7 @@ const Vo = bt(hc), ko = (e) => {
5864
5864
  field: c,
5865
5865
  operator: d,
5866
5866
  manualIds: u
5867
- } = e, [m, y] = _(!1), [p, h] = _(), [g, v] = _(), [C, R] = _(), [b, A] = _(0), [S, E] = _(0), [x, T] = _(), [F, w] = _(), [L, V] = _();
5867
+ } = e, [m, g] = _(!1), [p, h] = _(), [y, v] = _(), [C, R] = _(), [b, A] = _(0), [S, E] = _(0), [x, T] = _(), [F, w] = _(), [L, V] = _();
5868
5868
  ge(() => {
5869
5869
  k();
5870
5870
  }, [t, o]);
@@ -5924,7 +5924,7 @@ const Vo = bt(hc), ko = (e) => {
5924
5924
  });
5925
5925
  }
5926
5926
  async function k() {
5927
- y(!0);
5927
+ g(!0);
5928
5928
  let D, $;
5929
5929
  try {
5930
5930
  const I = await O({
@@ -5969,7 +5969,7 @@ const Vo = bt(hc), ko = (e) => {
5969
5969
  } catch (I) {
5970
5970
  V(JSON.stringify(I));
5971
5971
  }
5972
- y(!1);
5972
+ g(!1);
5973
5973
  }
5974
5974
  return L ? /* @__PURE__ */ n(tt, {
5975
5975
  className: "mt-10",
@@ -5996,7 +5996,7 @@ const Vo = bt(hc), ko = (e) => {
5996
5996
  }) => a ? /* @__PURE__ */ n(Sc, {
5997
5997
  value: p,
5998
5998
  total: C,
5999
- percent: g,
5999
+ percent: y,
6000
6000
  measureRef: D,
6001
6001
  height: b,
6002
6002
  width: S,
@@ -6086,10 +6086,10 @@ function Sc({
6086
6086
  useGrouping: !0
6087
6087
  })}` : `${u}`;
6088
6088
  f && (m += " " + f);
6089
- const y = `${i == null ? void 0 : i.toLocaleString("es-ES", {
6089
+ const g = `${i == null ? void 0 : i.toLocaleString("es-ES", {
6090
6090
  useGrouping: !0
6091
6091
  })}%`;
6092
- let p = Lo(y, `bold ${Math.floor(d * 1.03)}px sans-serif`);
6092
+ let p = Lo(g, `bold ${Math.floor(d * 1.03)}px sans-serif`);
6093
6093
  l && (p = p * 1.5), (p >= r * 0.85 || d * 2 < c) && (d = r * 0.85 / p * d);
6094
6094
  const h = l && ct(l, {
6095
6095
  style: {
@@ -6283,7 +6283,7 @@ const {
6283
6283
  limit: s,
6284
6284
  uninformedString: a,
6285
6285
  manualIds: l
6286
- } = e, [f, c] = _(!1), [d, u] = _(), [m, y] = _(), [p, h] = _(), [g, v] = _("line");
6286
+ } = e, [f, c] = _(!1), [d, u] = _(), [m, g] = _(), [p, h] = _(), [y, v] = _("line");
6287
6287
  return St(() => {
6288
6288
  (async () => {
6289
6289
  c(!0), u(void 0);
@@ -6324,7 +6324,7 @@ const {
6324
6324
  uninformedString: a
6325
6325
  }
6326
6326
  });
6327
- y(S);
6327
+ g(S);
6328
6328
  } catch (S) {
6329
6329
  u("Error processing graph data: " + S), c(!1);
6330
6330
  return;
@@ -6334,7 +6334,7 @@ const {
6334
6334
  }, [o, t, s, i, r]), {
6335
6335
  loading: f,
6336
6336
  error: d,
6337
- type: g,
6337
+ type: y,
6338
6338
  values: m,
6339
6339
  evaluatedEntries: p
6340
6340
  };
@@ -6432,11 +6432,11 @@ const kc = {
6432
6432
  type: "info"
6433
6433
  });
6434
6434
  const {
6435
- data: y,
6435
+ data: g,
6436
6436
  isGroup: p,
6437
6437
  isStack: h
6438
- } = d, g = kc[u];
6439
- return g ? /* @__PURE__ */ P("div", {
6438
+ } = d, y = kc[u];
6439
+ return y ? /* @__PURE__ */ P("div", {
6440
6440
  style: {
6441
6441
  padding: "1rem"
6442
6442
  },
@@ -6447,10 +6447,10 @@ const kc = {
6447
6447
  children: `${l("totalRegisters")} ${(v = m == null ? void 0 : m.length) == null ? void 0 : v.toLocaleString("es-ES", {
6448
6448
  useGrouping: !0
6449
6449
  })}`
6450
- }), /* @__PURE__ */ n(g, {
6450
+ }), /* @__PURE__ */ n(y, {
6451
6451
  ...Ec({
6452
6452
  type: u,
6453
- data: y,
6453
+ data: g,
6454
6454
  isGroup: p,
6455
6455
  isStack: h
6456
6456
  })
@@ -6477,17 +6477,17 @@ const $c = (e, t) => {
6477
6477
  domain: s,
6478
6478
  limit: a,
6479
6479
  manualIds: l
6480
- } = e, [f, c] = _(!1), [d, u] = _(), [m, y] = _(), p = W(it), {
6480
+ } = e, [f, c] = _(!1), [d, u] = _(), [m, g] = _(), p = W(it), {
6481
6481
  setGraphIsLoading: h = void 0
6482
6482
  } = p || {};
6483
6483
  xt(t, () => ({
6484
6484
  refresh: () => {
6485
- g();
6485
+ y();
6486
6486
  }
6487
6487
  })), ge(() => {
6488
- g();
6488
+ y();
6489
6489
  }, [r]);
6490
- async function g() {
6490
+ async function y() {
6491
6491
  c(!0), h == null || h(!0);
6492
6492
  try {
6493
6493
  const v = await H.getHandler().getView({
@@ -6496,7 +6496,7 @@ const $c = (e, t) => {
6496
6496
  type: "graph",
6497
6497
  context: o
6498
6498
  });
6499
- y(v.arch);
6499
+ g(v.arch);
6500
6500
  const C = Bn(v.arch);
6501
6501
  u(C);
6502
6502
  } catch (v) {
@@ -6606,11 +6606,11 @@ const $c = (e, t) => {
6606
6606
  onNextItem: d,
6607
6607
  isMany2Many: u,
6608
6608
  onSearchItem: m,
6609
- selectedRowKeys: y,
6609
+ selectedRowKeys: g,
6610
6610
  showCreateButton: p,
6611
6611
  showToggleButton: h
6612
6612
  } = e, {
6613
- token: g
6613
+ token: y
6614
6614
  } = Bc();
6615
6615
  function v() {
6616
6616
  return /* @__PURE__ */ n("div", {
@@ -6621,8 +6621,8 @@ const $c = (e, t) => {
6621
6621
  return /* @__PURE__ */ n("div", {
6622
6622
  className: "flex flex-grow h-8 text-white",
6623
6623
  style: {
6624
- borderRadius: g.borderRadius,
6625
- backgroundColor: g.colorPrimaryActive
6624
+ borderRadius: y.borderRadius,
6625
+ backgroundColor: y.colorPrimaryActive
6626
6626
  },
6627
6627
  children: /* @__PURE__ */ n("div", {
6628
6628
  className: "flex flex-col items-center justify-center h-full",
@@ -6638,7 +6638,7 @@ const $c = (e, t) => {
6638
6638
  tooltip: u ? "Unlink" : "Delete",
6639
6639
  icon: u ? /* @__PURE__ */ n(Fi, {}) : /* @__PURE__ */ n(qn, {}),
6640
6640
  onClick: a,
6641
- disabled: l === 0 || r || s !== "form" && y.length === 0
6641
+ disabled: l === 0 || r || s !== "form" && g.length === 0
6642
6642
  });
6643
6643
  }
6644
6644
  function b() {
@@ -6713,11 +6713,11 @@ const Wc = (e) => {
6713
6713
  } = W($o), d = W(Le), {
6714
6714
  activeId: u,
6715
6715
  getFields: m,
6716
- getValues: y,
6716
+ getValues: g,
6717
6717
  getContext: p,
6718
6718
  domain: h
6719
6719
  } = d || {}, {
6720
- lang: g,
6720
+ lang: y,
6721
6721
  t: v
6722
6722
  } = W(ye), [C, R] = _(!1), [b, A] = _(!1), [S, E] = _(), [x, T] = _(!1), [F, w] = _(!1), [L, V] = _(), [O, M] = _([]), [k, D] = _(!1), $ = ue([]), [I, j] = _(), G = ue(), [U, Y] = _(void 0), {
6723
6723
  readOnly: z,
@@ -6780,7 +6780,7 @@ const Wc = (e) => {
6780
6780
  domain: X,
6781
6781
  values: $t({
6782
6782
  fields: m(),
6783
- values: y()
6783
+ values: g()
6784
6784
  }),
6785
6785
  fields: m(),
6786
6786
  context: p()
@@ -6829,7 +6829,7 @@ const Wc = (e) => {
6829
6829
  he(ve);
6830
6830
  }, be = (Q) => {
6831
6831
  C ? Jt({
6832
- lang: g,
6832
+ lang: y,
6833
6833
  onOk: () => {
6834
6834
  Ee(), Q(), R(!1);
6835
6835
  }
@@ -6837,7 +6837,7 @@ const Wc = (e) => {
6837
6837
  }, $e = () => {
6838
6838
  if (ne) {
6839
6839
  Hc({
6840
- lang: g,
6840
+ lang: y,
6841
6841
  onOk: () => {
6842
6842
  a === "form" ? xe() : Ve();
6843
6843
  }
@@ -6845,7 +6845,7 @@ const Wc = (e) => {
6845
6845
  return;
6846
6846
  }
6847
6847
  Nc({
6848
- lang: g,
6848
+ lang: y,
6849
6849
  onOk: () => {
6850
6850
  a === "form" ? xe() : Ve();
6851
6851
  }
@@ -7080,7 +7080,7 @@ const Wc = (e) => {
7080
7080
  children: [/* @__PURE__ */ n(jc, {
7081
7081
  mode: a,
7082
7082
  title: Be(),
7083
- readOnly: z,
7083
+ readOnly: z || !1,
7084
7084
  isMany2Many: ne,
7085
7085
  formHasChanges: C,
7086
7086
  totalItems: J.length,
@@ -7139,13 +7139,13 @@ const Wc = (e) => {
7139
7139
  context: a
7140
7140
  } = t;
7141
7141
  let l;
7142
- const [f, c] = _(!0), [d, u] = _(), [m, y] = _(/* @__PURE__ */ new Map()), p = W(Le), {
7142
+ const [f, c] = _(!0), [d, u] = _(), [m, g] = _(/* @__PURE__ */ new Map()), p = W(Le), {
7143
7143
  getContext: h
7144
7144
  } = p || {};
7145
7145
  St(() => {
7146
7146
  v();
7147
7147
  }, [t]);
7148
- const g = async (R) => o && o[R] ? o[R] : await H.getHandler().getView({
7148
+ const y = async (R) => o && o[R] ? o[R] : await H.getHandler().getView({
7149
7149
  model: i,
7150
7150
  type: R,
7151
7151
  context: {
@@ -7157,13 +7157,13 @@ const Wc = (e) => {
7157
7157
  try {
7158
7158
  if (r && r.length > 0) {
7159
7159
  for (const R of r) {
7160
- const b = await g(R);
7160
+ const b = await y(R);
7161
7161
  m.set(R, b);
7162
7162
  }
7163
- y(m);
7163
+ g(m);
7164
7164
  } else {
7165
- const R = await g("form"), b = await g("tree");
7166
- m.set("form", R), m.set("tree", b), y(m);
7165
+ const R = await y("form"), b = await y("tree");
7166
+ m.set("form", R), m.set("tree", b), g(m);
7167
7167
  }
7168
7168
  } catch (R) {
7169
7169
  u(JSON.stringify(R));
@@ -7228,7 +7228,7 @@ const Wc = (e) => {
7228
7228
  } = Gc(), f = a && !s ? {
7229
7229
  backgroundColor: l.colorPrimaryBg
7230
7230
  } : void 0, c = ue(), [d, u] = _(), m = W(Le), {
7231
- elementHasLostFocus: y
7231
+ elementHasLostFocus: g
7232
7232
  } = m || {};
7233
7233
  ge(() => {
7234
7234
  u(Oo(r));
@@ -7239,8 +7239,8 @@ const Wc = (e) => {
7239
7239
  function h(v) {
7240
7240
  c.current = v.target.value, u(v.target.value);
7241
7241
  }
7242
- async function g() {
7243
- p(Yl(d)), await new Promise((v) => setTimeout(v, 300)), y == null || y();
7242
+ async function y() {
7243
+ p(Yl(d)), await new Promise((v) => setTimeout(v, 300)), g == null || g();
7244
7244
  }
7245
7245
  return /* @__PURE__ */ n(ot, {
7246
7246
  value: d,
@@ -7250,7 +7250,7 @@ const Wc = (e) => {
7250
7250
  id: o,
7251
7251
  placeholder: "00:00",
7252
7252
  onChange: h,
7253
- onBlur: g
7253
+ onBlur: y
7254
7254
  });
7255
7255
  };
7256
7256
  function No(e) {
@@ -7353,13 +7353,13 @@ const {
7353
7353
  formHasChanges: c,
7354
7354
  elementHasLostFocus: d
7355
7355
  } = s || {}, [u, m] = _(!1), {
7356
- t: y
7356
+ t: g
7357
7357
  } = W(ye);
7358
7358
  return a ? /* @__PURE__ */ P(te, {
7359
7359
  children: [/* @__PURE__ */ n("div", {
7360
7360
  onClick: () => {
7361
7361
  if (c != null && c()) {
7362
- mt(y("saveBeforeTranslate"));
7362
+ mt(g("saveBeforeTranslate"));
7363
7363
  return;
7364
7364
  }
7365
7365
  u || m(!0);
@@ -7415,12 +7415,12 @@ const {
7415
7415
  paddingTop: 5
7416
7416
  },
7417
7417
  children: /* @__PURE__ */ n(Xe, {
7418
- tooltip: y("translate"),
7418
+ tooltip: g("translate"),
7419
7419
  icon: /* @__PURE__ */ n(qr, {}),
7420
7420
  onClick: async () => {
7421
- c != null && c() ? mt(y("saveBeforeTranslate")) : mt(y("enterTextBeforeTranslate"));
7421
+ c != null && c() ? mt(g("saveBeforeTranslate")) : mt(g("enterTextBeforeTranslate"));
7422
7422
  },
7423
- children: y("translate")
7423
+ children: g("translate")
7424
7424
  })
7425
7425
  })]
7426
7426
  });
@@ -7448,25 +7448,25 @@ const {
7448
7448
  onClose: a
7449
7449
  }) => {
7450
7450
  const l = ue({}), f = ue(/* @__PURE__ */ new Map()), c = ke(
7451
- async (g) => {
7452
- if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
7451
+ async (y) => {
7452
+ if (y.selectedKeys === void 0 || y.selectedKeys.length === 0) {
7453
7453
  mt(Oe("selectAtLeastOneField", r));
7454
7454
  return;
7455
7455
  }
7456
7456
  let v = o;
7457
- g.registersAmount === "selected" && (i == null ? void 0 : i.length) !== 0 && (v = [
7457
+ y.registersAmount === "selected" && (i == null ? void 0 : i.length) !== 0 && (v = [
7458
7458
  ["id", "in", i == null ? void 0 : i.map((b) => b.id)]
7459
7459
  ]);
7460
7460
  const { datas: C } = await H.getHandler().exportData({
7461
7461
  model: e,
7462
7462
  fields: ld({
7463
- keys: g.selectedKeys,
7463
+ keys: y.selectedKeys,
7464
7464
  fields: l.current
7465
7465
  }),
7466
7466
  domain: v,
7467
- limit: g.registersAmount === "all" ? 0 : s,
7467
+ limit: y.registersAmount === "all" ? 0 : s,
7468
7468
  context: t,
7469
- format: g.exportType
7469
+ format: y.exportType
7470
7470
  });
7471
7471
  a(), await new Promise((b) => setTimeout(b, 200));
7472
7472
  const R = await Rt(C);
@@ -7474,15 +7474,15 @@ const {
7474
7474
  },
7475
7475
  [r, e, o, s, t, a]
7476
7476
  ), d = ke(async () => {
7477
- const g = await H.getHandler().getFields({
7477
+ const y = await H.getHandler().getFields({
7478
7478
  model: e,
7479
7479
  context: t,
7480
7480
  fields: []
7481
7481
  });
7482
- return l.current["/"] = g, kr({ fields: g });
7482
+ return l.current["/"] = y, kr({ fields: y });
7483
7483
  }, [e, t, l]), u = ke(
7484
- async (g) => {
7485
- const C = Ln(g, l.current)[$n(g)], R = C.relation, b = await H.getHandler().getFields({
7484
+ async (y) => {
7485
+ const C = Ln(y, l.current)[$n(y)], R = C.relation, b = await H.getHandler().getFields({
7486
7486
  model: R,
7487
7487
  context: t,
7488
7488
  fields: []
@@ -7492,20 +7492,20 @@ const {
7492
7492
  parentTitle: C.string,
7493
7493
  title: S.string
7494
7494
  });
7495
- return l.current[g] = b, kr({
7495
+ return l.current[y] = b, kr({
7496
7496
  fields: b,
7497
- parentKey: g
7497
+ parentKey: y
7498
7498
  });
7499
7499
  },
7500
7500
  [l.current, e, t]
7501
7501
  ), m = ke(async () => {
7502
- const g = await id({ model: e, context: t }), v = await ad({
7503
- predefinedExports: g,
7502
+ const y = await id({ model: e, context: t }), v = await ad({
7503
+ predefinedExports: y,
7504
7504
  fields: l.current,
7505
7505
  onGetFieldChilds: u
7506
7506
  });
7507
7507
  return {
7508
- predefinedExports: g.map((R) => ({
7508
+ predefinedExports: y.map((R) => ({
7509
7509
  ...R,
7510
7510
  fields: R.fields.map((b) => {
7511
7511
  const A = $n(b.key), E = Ln(b.key, l.current)[A];
@@ -7517,19 +7517,19 @@ const {
7517
7517
  })),
7518
7518
  keysWithChilds: v
7519
7519
  };
7520
- }, [l.current]), y = ke(
7521
- async (g) => {
7520
+ }, [l.current]), g = ke(
7521
+ async (y) => {
7522
7522
  const v = await h("ir.exports"), C = await h("ir.exports.line"), R = await H.getHandler().create({
7523
7523
  model: "ir.exports",
7524
7524
  values: {
7525
- name: g.name,
7525
+ name: y.name,
7526
7526
  resource: e
7527
7527
  },
7528
7528
  fields: v,
7529
7529
  context: t
7530
7530
  });
7531
7531
  return await Promise.all(
7532
- g.fields.map(async (b) => await H.getHandler().create({
7532
+ y.fields.map(async (b) => await H.getHandler().create({
7533
7533
  model: "ir.exports.line",
7534
7534
  values: {
7535
7535
  name: b.key,
@@ -7538,27 +7538,27 @@ const {
7538
7538
  fields: C,
7539
7539
  context: t
7540
7540
  }))
7541
- ), { ...g, id: R };
7541
+ ), { ...y, id: R };
7542
7542
  },
7543
7543
  []
7544
7544
  ), p = ke(
7545
- async (g) => {
7545
+ async (y) => {
7546
7546
  await H.getHandler().delete({
7547
7547
  model: "ir.exports",
7548
- ids: [g.id]
7548
+ ids: [y.id]
7549
7549
  });
7550
7550
  },
7551
7551
  []
7552
7552
  ), h = ke(
7553
- async (g) => {
7554
- if (f.current.has(g))
7555
- return f.current.get(g);
7553
+ async (y) => {
7554
+ if (f.current.has(y))
7555
+ return f.current.get(y);
7556
7556
  const v = H.getHandler().getFields({
7557
- model: g,
7557
+ model: y,
7558
7558
  context: t,
7559
7559
  fields: []
7560
7560
  });
7561
- f.current.set(g, v);
7561
+ f.current.set(y, v);
7562
7562
  },
7563
7563
  [f, t]
7564
7564
  );
@@ -7567,7 +7567,7 @@ const {
7567
7567
  onGetFieldChilds: u,
7568
7568
  onExport: c,
7569
7569
  onGetPredefinedExports: m,
7570
- onSavePredefinedExport: y,
7570
+ onSavePredefinedExport: g,
7571
7571
  onRemovePredefinedExport: p
7572
7572
  };
7573
7573
  }, kr = ({
@@ -7686,10 +7686,10 @@ const {
7686
7686
  } = e, {
7687
7687
  onExport: u,
7688
7688
  onGetFieldChilds: m,
7689
- onGetFields: y,
7689
+ onGetFields: g,
7690
7690
  onGetPredefinedExports: p,
7691
7691
  onSavePredefinedExport: h,
7692
- onRemovePredefinedExport: g
7692
+ onRemovePredefinedExport: y
7693
7693
  } = nd({
7694
7694
  model: o,
7695
7695
  context: s,
@@ -7707,11 +7707,11 @@ const {
7707
7707
  selectedRegistersToExport: a && a.length && a.length > 0 ? a.length : void 0,
7708
7708
  totalRegisters: l,
7709
7709
  onGetFieldChilds: m,
7710
- onGetFields: y,
7710
+ onGetFields: g,
7711
7711
  visibleRegisters: d,
7712
7712
  onGetPredefinedExports: p,
7713
7713
  onSavePredefinedExport: h,
7714
- onRemovePredefinedExport: g
7714
+ onRemovePredefinedExport: y
7715
7715
  });
7716
7716
  }, ud = (e) => {
7717
7717
  const {
@@ -7737,31 +7737,31 @@ var Ho = { exports: {} };
7737
7737
  var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, o = /\d\d/, s = /\d\d?/, a = /\d*[^-_:/,()\s\d]+/, l = {}, f = function(h) {
7738
7738
  return (h = +h) + (h > 68 ? 1900 : 2e3);
7739
7739
  }, c = function(h) {
7740
- return function(g) {
7741
- this[h] = +g;
7740
+ return function(y) {
7741
+ this[h] = +y;
7742
7742
  };
7743
7743
  }, d = [/[+-]\d\d:?(\d\d)?|Z/, function(h) {
7744
- (this.zone || (this.zone = {})).offset = function(g) {
7745
- if (!g || g === "Z")
7744
+ (this.zone || (this.zone = {})).offset = function(y) {
7745
+ if (!y || y === "Z")
7746
7746
  return 0;
7747
- var v = g.match(/([+-]|\d\d)/g), C = 60 * v[1] + (+v[2] || 0);
7747
+ var v = y.match(/([+-]|\d\d)/g), C = 60 * v[1] + (+v[2] || 0);
7748
7748
  return C === 0 ? 0 : v[0] === "+" ? -C : C;
7749
7749
  }(h);
7750
7750
  }], u = function(h) {
7751
- var g = l[h];
7752
- return g && (g.indexOf ? g : g.s.concat(g.f));
7753
- }, m = function(h, g) {
7751
+ var y = l[h];
7752
+ return y && (y.indexOf ? y : y.s.concat(y.f));
7753
+ }, m = function(h, y) {
7754
7754
  var v, C = l.meridiem;
7755
7755
  if (C) {
7756
7756
  for (var R = 1; R <= 24; R += 1)
7757
- if (h.indexOf(C(R, 0, g)) > -1) {
7757
+ if (h.indexOf(C(R, 0, y)) > -1) {
7758
7758
  v = R > 12;
7759
7759
  break;
7760
7760
  }
7761
7761
  } else
7762
- v = h === (g ? "pm" : "PM");
7762
+ v = h === (y ? "pm" : "PM");
7763
7763
  return v;
7764
- }, y = { A: [a, function(h) {
7764
+ }, g = { A: [a, function(h) {
7765
7765
  this.afternoon = m(h, !1);
7766
7766
  }], a: [a, function(h) {
7767
7767
  this.afternoon = m(h, !0);
@@ -7772,35 +7772,35 @@ var Ho = { exports: {} };
7772
7772
  }], SSS: [/\d{3}/, function(h) {
7773
7773
  this.milliseconds = +h;
7774
7774
  }], s: [s, c("seconds")], ss: [s, c("seconds")], m: [s, c("minutes")], mm: [s, c("minutes")], H: [s, c("hours")], h: [s, c("hours")], HH: [s, c("hours")], hh: [s, c("hours")], D: [s, c("day")], DD: [o, c("day")], Do: [a, function(h) {
7775
- var g = l.ordinal, v = h.match(/\d+/);
7776
- if (this.day = v[0], g)
7775
+ var y = l.ordinal, v = h.match(/\d+/);
7776
+ if (this.day = v[0], y)
7777
7777
  for (var C = 1; C <= 31; C += 1)
7778
- g(C).replace(/\[|\]/g, "") === h && (this.day = C);
7778
+ y(C).replace(/\[|\]/g, "") === h && (this.day = C);
7779
7779
  }], M: [s, c("month")], MM: [o, c("month")], MMM: [a, function(h) {
7780
- var g = u("months"), v = (u("monthsShort") || g.map(function(C) {
7780
+ var y = u("months"), v = (u("monthsShort") || y.map(function(C) {
7781
7781
  return C.slice(0, 3);
7782
7782
  })).indexOf(h) + 1;
7783
7783
  if (v < 1)
7784
7784
  throw new Error();
7785
7785
  this.month = v % 12 || v;
7786
7786
  }], MMMM: [a, function(h) {
7787
- var g = u("months").indexOf(h) + 1;
7788
- if (g < 1)
7787
+ var y = u("months").indexOf(h) + 1;
7788
+ if (y < 1)
7789
7789
  throw new Error();
7790
- this.month = g % 12 || g;
7790
+ this.month = y % 12 || y;
7791
7791
  }], Y: [/[+-]?\d+/, c("year")], YY: [o, function(h) {
7792
7792
  this.year = f(h);
7793
7793
  }], YYYY: [/\d{4}/, c("year")], Z: d, ZZ: d };
7794
7794
  function p(h) {
7795
- var g, v;
7796
- g = h, v = l && l.formats;
7797
- for (var C = (h = g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(T, F, w) {
7795
+ var y, v;
7796
+ y = h, v = l && l.formats;
7797
+ for (var C = (h = y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(T, F, w) {
7798
7798
  var L = w && w.toUpperCase();
7799
7799
  return F || v[w] || r[w] || v[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(V, O, M) {
7800
7800
  return O || M.slice(1);
7801
7801
  });
7802
7802
  })).match(i), R = C.length, b = 0; b < R; b += 1) {
7803
- var A = C[b], S = y[A], E = S && S[0], x = S && S[1];
7803
+ var A = C[b], S = g[A], E = S && S[0], x = S && S[1];
7804
7804
  C[b] = x ? { regex: E, parser: x } : A.replace(/^\[|\]$/g, "");
7805
7805
  }
7806
7806
  return function(T) {
@@ -7822,9 +7822,9 @@ var Ho = { exports: {} };
7822
7822
  }(F), F;
7823
7823
  };
7824
7824
  }
7825
- return function(h, g, v) {
7825
+ return function(h, y, v) {
7826
7826
  v.p.customParseFormat = !0, h && h.parseTwoDigitYear && (f = h.parseTwoDigitYear);
7827
- var C = g.prototype, R = C.parse;
7827
+ var C = y.prototype, R = C.parse;
7828
7828
  C.parse = function(b) {
7829
7829
  var A = b.date, S = b.utc, E = b.args;
7830
7830
  this.$u = S;
@@ -7904,8 +7904,8 @@ const hd = (e) => {
7904
7904
  u(void 0), c([]);
7905
7905
  return;
7906
7906
  }
7907
- const m = t && l && l[0], y = t && l && l[1] && parseInt(l[1]);
7908
- c([y, void 0]), u(m);
7907
+ const m = t && l && l[0], g = t && l && l[1] && parseInt(l[1]);
7908
+ c([g, void 0]), u(m);
7909
7909
  }, [t]), /* @__PURE__ */ P(Ce, {
7910
7910
  gutter: 8,
7911
7911
  wrap: !1,
@@ -7920,9 +7920,9 @@ const hd = (e) => {
7920
7920
  }),
7921
7921
  onChange: (m) => {
7922
7922
  u(m);
7923
- let y = f[0] || 0;
7924
- m !== d && (c([]), y = 0);
7925
- const p = `${m},${y}`;
7923
+ let g = f[0] || 0;
7924
+ m !== d && (c([]), g = 0);
7925
+ const p = `${m},${g}`;
7926
7926
  p !== t && (r == null || r(p));
7927
7927
  },
7928
7928
  value: d
@@ -7939,8 +7939,8 @@ const hd = (e) => {
7939
7939
  value: f,
7940
7940
  onChange: (m) => {
7941
7941
  c(m);
7942
- const y = `${d},${m[0] || 0}`;
7943
- y !== t && (r == null || r(y));
7942
+ const g = `${d},${m[0] || 0}`;
7943
+ g !== t && (r == null || r(g));
7944
7944
  }
7945
7945
  })
7946
7946
  })]
@@ -7978,14 +7978,14 @@ const hd = (e) => {
7978
7978
  getFieldValue: u
7979
7979
  } = W(Le) || {}, {
7980
7980
  t: m
7981
- } = W(ye), y = r ? Da(r) : "", p = (R) => {
7981
+ } = W(ye), g = r ? Da(r) : "", p = (R) => {
7982
7982
  i == null || i(R);
7983
7983
  };
7984
7984
  async function h() {
7985
7985
  const R = await Rt(r), b = `data:${R == null ? void 0 : R.mime};base64,${r}`, A = document.createElement("a"), S = u(a), E = u("name");
7986
7986
  A.href = b, A.download = S || E, A.click();
7987
7987
  }
7988
- async function g() {
7988
+ async function y() {
7989
7989
  const R = await Rt(r);
7990
7990
  pn(r, R.mime);
7991
7991
  }
@@ -8015,7 +8015,7 @@ const hd = (e) => {
8015
8015
  type: "text",
8016
8016
  disabled: !0,
8017
8017
  style: f,
8018
- value: y
8018
+ value: g
8019
8019
  })]
8020
8020
  }), /* @__PURE__ */ n(de, {
8021
8021
  children: /* @__PURE__ */ P(We, {
@@ -8029,7 +8029,7 @@ const hd = (e) => {
8029
8029
  }), /* @__PURE__ */ n(Ie, {
8030
8030
  icon: /* @__PURE__ */ n(Oi, {}),
8031
8031
  disabled: !r,
8032
- onClick: g,
8032
+ onClick: y,
8033
8033
  children: m("open")
8034
8034
  }), /* @__PURE__ */ n(Xe, {
8035
8035
  tooltip: m("download"),
@@ -8067,7 +8067,7 @@ function tr(e) {
8067
8067
  lang: f
8068
8068
  } = W(ye);
8069
8069
  function c() {
8070
- const m = r.map((y, p) => /* @__PURE__ */ n(je.Item, {
8070
+ const m = r.map((g, p) => /* @__PURE__ */ n(je.Item, {
8071
8071
  children: /* @__PURE__ */ P(Ce, {
8072
8072
  wrap: !1,
8073
8073
  children: [/* @__PURE__ */ n(de, {
@@ -8075,23 +8075,23 @@ function tr(e) {
8075
8075
  style: {
8076
8076
  paddingRight: 20
8077
8077
  },
8078
- children: Mr(y)
8078
+ children: Mr(g)
8079
8079
  }), /* @__PURE__ */ n(de, {
8080
8080
  flex: "auto",
8081
8081
  style: {
8082
8082
  paddingRight: 20
8083
8083
  },
8084
- children: y.type.charAt(0).toUpperCase() + y.type.slice(1)
8084
+ children: g.type.charAt(0).toUpperCase() + g.type.slice(1)
8085
8085
  }), /* @__PURE__ */ n(de, {
8086
8086
  flex: "none",
8087
8087
  children: /* @__PURE__ */ n(Mt, {
8088
8088
  style: {
8089
- opacity: t.view_id === y.view_id ? 1 : 0
8089
+ opacity: t.view_id === g.view_id ? 1 : 0
8090
8090
  }
8091
8091
  })
8092
8092
  })]
8093
8093
  })
8094
- }, y.view_id || p));
8094
+ }, g.view_id || p));
8095
8095
  return /* @__PURE__ */ n(je, {
8096
8096
  onClick: u,
8097
8097
  children: /* @__PURE__ */ n(je.ItemGroup, {
@@ -8114,8 +8114,8 @@ function tr(e) {
8114
8114
  }
8115
8115
  function u(m) {
8116
8116
  d(() => {
8117
- const y = r.find((p) => p.view_id === parseInt(m.key));
8118
- i(y);
8117
+ const g = r.find((p) => p.view_id === parseInt(m.key));
8118
+ i(g);
8119
8119
  });
8120
8120
  }
8121
8121
  return /* @__PURE__ */ P("div", {
@@ -8167,41 +8167,27 @@ function At(e) {
8167
8167
  label: s,
8168
8168
  disabled: a = !1,
8169
8169
  searchable: l = "auto"
8170
- } = e, [f, c] = _(), d = (y) => {
8171
- if (!y) {
8172
- c(void 0);
8173
- return;
8174
- }
8175
- const p = y.trim();
8176
- if (p.length === 0) {
8177
- c(void 0);
8178
- return;
8179
- }
8180
- c(p);
8170
+ } = e, [f, c] = _([...i]), d = (g) => {
8171
+ c(g ? i.filter((p) => p.name.toLowerCase().indexOf(g.toLowerCase()) !== -1) : [...i]);
8181
8172
  };
8182
8173
  function u() {
8183
- let y = [];
8184
- f ? y = i.filter((g) => g.name.toLowerCase().includes(f.toLowerCase())) : y = i;
8185
- const p = y.map((g, v) => g.name === "divider" ? /* @__PURE__ */ n(je.Divider, {}, "divider" + v) : /* @__PURE__ */ n(je.Item, {
8186
- children: g.name
8187
- }, g.id)), h = l === !0 || l === "auto" && i.length > 3;
8174
+ const g = f == null ? void 0 : f.map((p, h) => p.name === "divider" ? /* @__PURE__ */ n(je.Divider, {}, "divider" + h) : /* @__PURE__ */ n(je.Item, {
8175
+ children: p.name
8176
+ }, p.id));
8188
8177
  return /* @__PURE__ */ P(je, {
8189
8178
  onClick: m,
8190
- children: [h && /* @__PURE__ */ n(xd, {
8191
- onChange: (g) => d(g.target.value),
8179
+ children: [(l === "auto" && i.length > 3 || l === !0) && /* @__PURE__ */ n(xd, {
8180
+ onChange: (p) => d(p.target.value),
8192
8181
  onSearch: d,
8193
- allowClear: !0,
8194
- style: {
8195
- padding: 5
8196
- }
8182
+ allowClear: !0
8197
8183
  }), /* @__PURE__ */ n(je.ItemGroup, {
8198
8184
  title: r,
8199
- children: p
8185
+ children: g
8200
8186
  })]
8201
8187
  });
8202
8188
  }
8203
- function m(y) {
8204
- const p = i.find((h) => isNaN(y.key) ? h.id === y.key : h.id === parseInt(y.key));
8189
+ function m(g) {
8190
+ const p = i.find((h) => isNaN(g.key) ? h.id === g.key : h.id === parseInt(g.key));
8205
8191
  o(p);
8206
8192
  }
8207
8193
  return /* @__PURE__ */ n(Gt, {
@@ -8411,7 +8397,7 @@ function Od(e) {
8411
8397
  } = e, {
8412
8398
  formRef: a
8413
8399
  } = W(it), [l, f] = _(!1), [c, d] = _([]), [u, m] = _(!1), {
8414
- t: y
8400
+ t: g
8415
8401
  } = W(ye), p = ke(async () => {
8416
8402
  f(!0);
8417
8403
  try {
@@ -8453,7 +8439,7 @@ function Od(e) {
8453
8439
  pn(C.datas, R.mime);
8454
8440
  } else
8455
8441
  s(C);
8456
- }, []), g = ke(async (v) => {
8442
+ }, []), y = ke(async (v) => {
8457
8443
  s(v);
8458
8444
  }, []);
8459
8445
  return ge(() => {
@@ -8467,9 +8453,9 @@ function Od(e) {
8467
8453
  onAddNewAttachment: i,
8468
8454
  onListAllAttachments: o,
8469
8455
  onopenAttachmentLink: h,
8470
- onOpenAttachmentDetail: g
8456
+ onOpenAttachmentDetail: y
8471
8457
  }), /* @__PURE__ */ n(Je, {
8472
- title: y("downloadingAttachment"),
8458
+ title: g("downloadingAttachment"),
8473
8459
  open: u,
8474
8460
  footer: null,
8475
8461
  closable: !1,
@@ -8495,10 +8481,10 @@ function Id({
8495
8481
  currentItemIndex: d,
8496
8482
  setCurrentId: u,
8497
8483
  currentModel: m,
8498
- setRemovingItem: y,
8484
+ setRemovingItem: g,
8499
8485
  removingItem: p,
8500
8486
  duplicatingItem: h,
8501
- setDuplicatingItem: g,
8487
+ setDuplicatingItem: y,
8502
8488
  setResults: v,
8503
8489
  formIsLoading: C,
8504
8490
  attachments: R,
@@ -8557,7 +8543,7 @@ function Id({
8557
8543
  }
8558
8544
  async function G() {
8559
8545
  try {
8560
- y == null || y(!0), await H.getHandler().delete({
8546
+ g == null || g(!0), await H.getHandler().delete({
8561
8547
  model: m,
8562
8548
  ids: [l]
8563
8549
  });
@@ -8568,12 +8554,12 @@ function Id({
8568
8554
  } catch (N) {
8569
8555
  sn(JSON.stringify(N));
8570
8556
  } finally {
8571
- y == null || y(!1);
8557
+ g == null || g(!1);
8572
8558
  }
8573
8559
  }
8574
8560
  async function U() {
8575
8561
  try {
8576
- g == null || g(!0);
8562
+ y == null || y(!0);
8577
8563
  const N = await H.getHandler().duplicate({
8578
8564
  id: l,
8579
8565
  model: m,
@@ -8583,7 +8569,7 @@ function Id({
8583
8569
  } catch (N) {
8584
8570
  sn(JSON.stringify(N));
8585
8571
  } finally {
8586
- g == null || g(!1);
8572
+ y == null || y(!1);
8587
8573
  }
8588
8574
  }
8589
8575
  const Y = a || p || C || h;
@@ -8795,10 +8781,10 @@ const {
8795
8781
  backgroundColor: c.colorPrimaryBg
8796
8782
  } : void 0, u = W(Le), {
8797
8783
  elementHasLostFocus: m
8798
- } = u || {}, [y, p] = _(!1), [h, g] = _(!1);
8784
+ } = u || {}, [g, p] = _(!1), [h, y] = _(!1);
8799
8785
  ge(() => {
8800
- l && !y && g(!1), !r && !l && (p(!0), g(!0));
8801
- }, [y, l]);
8786
+ l && !g && y(!1), !r && !l && (p(!0), y(!0));
8787
+ }, [g, l]);
8802
8788
  const v = (C) => {
8803
8789
  i == null || i(C.target.value);
8804
8790
  };
@@ -8808,10 +8794,10 @@ const {
8808
8794
  align: "middle",
8809
8795
  children: [l ? null : /* @__PURE__ */ n(de, {
8810
8796
  flex: "32px",
8811
- children: y ? /* @__PURE__ */ n(Ie, {
8797
+ children: g ? /* @__PURE__ */ n(Ie, {
8812
8798
  icon: /* @__PURE__ */ n(Mt, {}),
8813
8799
  onClick: () => {
8814
- o(r) && (p(!1), g(!1));
8800
+ o(r) && (p(!1), y(!1));
8815
8801
  },
8816
8802
  style: {
8817
8803
  borderTopRightRadius: 0,
@@ -8821,7 +8807,7 @@ const {
8821
8807
  }) : /* @__PURE__ */ n(Ie, {
8822
8808
  icon: /* @__PURE__ */ n(no, {}),
8823
8809
  onClick: () => {
8824
- p(!0), g(!0);
8810
+ p(!0), y(!0);
8825
8811
  },
8826
8812
  style: {
8827
8813
  borderTopRightRadius: 0,
@@ -8841,7 +8827,7 @@ const {
8841
8827
  onChange: v,
8842
8828
  value: r,
8843
8829
  onBlur: () => {
8844
- o(r) && (p(!1), g(!1), m == null || m());
8830
+ o(r) && (p(!1), y(!1), m == null || m());
8845
8831
  }
8846
8832
  }) : /* @__PURE__ */ n("a", {
8847
8833
  href: `${s}${r}`,
@@ -9100,7 +9086,7 @@ function vn(e) {
9100
9086
  return /* @__PURE__ */ P(te, {
9101
9087
  children: [c.length, " ", d("selectedRegisters"), /* @__PURE__ */ n(tn, {
9102
9088
  copyable: {
9103
- text: c.map((y) => y.id).join(", ")
9089
+ text: c.map((g) => g.id).join(", ")
9104
9090
  }
9105
9091
  })]
9106
9092
  });
@@ -9155,10 +9141,10 @@ const $d = (e) => {
9155
9141
  setResults: d = void 0,
9156
9142
  setCurrentItemIndex: u = void 0,
9157
9143
  currentId: m = void 0,
9158
- results: y = void 0,
9144
+ results: g = void 0,
9159
9145
  setSelectedRowItems: p = void 0,
9160
9146
  setSearchParams: h = void 0,
9161
- searchVisible: g = !0,
9147
+ searchVisible: y = !0,
9162
9148
  setSearchVisible: v = void 0,
9163
9149
  sorter: C = void 0,
9164
9150
  setSorter: R = void 0,
@@ -9200,7 +9186,7 @@ const $d = (e) => {
9200
9186
  setSorter: R,
9201
9187
  setCurrentItemIndex: u,
9202
9188
  setResultsActionView: d,
9203
- resultsActionView: y,
9189
+ resultsActionView: g,
9204
9190
  domain: s,
9205
9191
  currentId: m,
9206
9192
  setActionViewTotalItems: b,
@@ -9229,7 +9215,7 @@ const $d = (e) => {
9229
9215
  O(!1), h == null || h(j.params), v == null || v(!1);
9230
9216
  },
9231
9217
  searchError: D,
9232
- searchVisible: g,
9218
+ searchVisible: y,
9233
9219
  searchValues: F,
9234
9220
  showLimitOptions: !1
9235
9221
  }), I ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ n(yn, {
@@ -9239,7 +9225,7 @@ const $d = (e) => {
9239
9225
  context: o,
9240
9226
  domain: Yt(T || [], s),
9241
9227
  limit: V ? E : void 0,
9242
- manualIds: V ? y == null ? void 0 : y.map((j) => j.id) : void 0
9228
+ manualIds: V ? g == null ? void 0 : g.map((j) => j.id) : void 0
9243
9229
  })]
9244
9230
  });
9245
9231
  }, Ld = (e) => {
@@ -9272,8 +9258,8 @@ const $d = (e) => {
9272
9258
  actionDomain: s,
9273
9259
  id: o,
9274
9260
  parentContext: l,
9275
- onSubmitSucceed: (y, p) => {
9276
- d.findIndex((g) => g.id === y) === -1 && (d.push(p), u(d), m(d.length - 1));
9261
+ onSubmitSucceed: (g, p) => {
9262
+ d.findIndex((y) => y.id === g) === -1 && (d.push(p), u(d), m(d.length - 1));
9277
9263
  }
9278
9264
  })]
9279
9265
  }) : null;
@@ -9363,10 +9349,10 @@ function Hd(e) {
9363
9349
  searchTreeRef: d,
9364
9350
  setCurrentId: u,
9365
9351
  setCurrentItemIndex: m,
9366
- searchParams: y,
9352
+ searchParams: g,
9367
9353
  searchVisible: p,
9368
9354
  setSearchVisible: h,
9369
- setSearchTreeNameSearch: g,
9355
+ setSearchTreeNameSearch: y,
9370
9356
  searchTreeNameSearch: v,
9371
9357
  treeIsLoading: C,
9372
9358
  setPreviousView: R,
@@ -9454,7 +9440,7 @@ function Hd(e) {
9454
9440
  disabled: l || a || C,
9455
9441
  searchText: v,
9456
9442
  onSearch: (Y) => {
9457
- Y && Y.trim().length > 0 ? g == null || g(Y) : g == null || g(void 0);
9443
+ Y && Y.trim().length > 0 ? y == null || y(Y) : y == null || y(void 0);
9458
9444
  }
9459
9445
  }), !T && /* @__PURE__ */ n(Yo, {
9460
9446
  icon: /* @__PURE__ */ n(ro, {
@@ -9468,7 +9454,7 @@ function Hd(e) {
9468
9454
  h == null || h(!p);
9469
9455
  },
9470
9456
  disabled: l || a || C,
9471
- badgeNumber: y == null ? void 0 : y.length
9457
+ badgeNumber: g == null ? void 0 : g.length
9472
9458
  }), vt(), /* @__PURE__ */ n(Bo, {
9473
9459
  disabled: C
9474
9460
  }), /* @__PURE__ */ n(Ze, {
@@ -9593,7 +9579,7 @@ function Hd(e) {
9593
9579
  locale: L,
9594
9580
  onClose: () => k(!1),
9595
9581
  model: c,
9596
- domain: Yt(((U = d == null ? void 0 : d.current) == null ? void 0 : U.getDomain()) || [], y || []),
9582
+ domain: Yt(((U = d == null ? void 0 : d.current) == null ? void 0 : U.getDomain()) || [], g || []),
9597
9583
  limit: S,
9598
9584
  totalRegisters: E || 0,
9599
9585
  selectedRegistersToExport: o,
@@ -9621,7 +9607,7 @@ const Bd = (e) => {
9621
9607
  setCurrentId: d,
9622
9608
  setCurrentView: u,
9623
9609
  availableViews: m,
9624
- searchTreeNameSearch: y
9610
+ searchTreeNameSearch: g
9625
9611
  } = e, {
9626
9612
  currentView: p,
9627
9613
  setPreviousView: h
@@ -9638,14 +9624,14 @@ const Bd = (e) => {
9638
9624
  rootTree: !0,
9639
9625
  model: i,
9640
9626
  parentContext: o,
9641
- nameSearch: y,
9627
+ nameSearch: g,
9642
9628
  formView: s,
9643
9629
  treeView: a,
9644
9630
  domain: l,
9645
- onRowClicked: (g) => {
9631
+ onRowClicked: (y) => {
9646
9632
  const {
9647
9633
  id: v
9648
- } = g;
9634
+ } = y;
9649
9635
  d(v);
9650
9636
  const C = c.findIndex((b) => b.id === v);
9651
9637
  h == null || h(p), f(C);
@@ -9770,10 +9756,10 @@ function Gd(e, t) {
9770
9756
  formDefaultValues: d,
9771
9757
  formForcedValues: u = {},
9772
9758
  res_id: m = !1,
9773
- action_id: y,
9759
+ action_id: g,
9774
9760
  action_type: p,
9775
9761
  treeExpandable: h = !1,
9776
- limit: g
9762
+ limit: y
9777
9763
  } = e, [v, C] = _(), [R, b] = _([]), [A, S] = _(!0), E = m || void 0, [x, T] = _(E), [F, w] = _([]), [L, V] = _(), [O, M] = _([]), [k, D] = _(), [$, I] = _(0), [j, G] = _(!1), [U, Y] = _(!1), [z, N] = _(), {
9778
9764
  t: B
9779
9765
  } = W(ye), X = ue(), ne = ue(), le = W(dt), {
@@ -9827,7 +9813,7 @@ function Gd(e, t) {
9827
9813
  });
9828
9814
  let et;
9829
9815
  ce && (et = {
9830
- action_id: y,
9816
+ action_id: g,
9831
9817
  action_type: p,
9832
9818
  name: a,
9833
9819
  res_id: o.active_id,
@@ -9924,7 +9910,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9924
9910
  id: He == null ? void 0 : He[0],
9925
9911
  type: xe
9926
9912
  },
9927
- action_id: y,
9913
+ action_id: g,
9928
9914
  action_type: p,
9929
9915
  res_id: ee[0]
9930
9916
  });
@@ -9950,7 +9936,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9950
9936
  case "tree":
9951
9937
  return /* @__PURE__ */ n(Bd, {
9952
9938
  visible: v.type === ee.type && v.view_id === ee.view_id,
9953
- limit: g,
9939
+ limit: y,
9954
9940
  model: i,
9955
9941
  context: o,
9956
9942
  domain: r,
@@ -10014,7 +10000,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
10014
10000
  setSearchTreeNameSearch: N,
10015
10001
  searchTreeNameSearch: z,
10016
10002
  goToResourceId: be,
10017
- limit: g,
10003
+ limit: y,
10018
10004
  children: [$e(), /* @__PURE__ */ n(Rd, {
10019
10005
  visible: j,
10020
10006
  onIdSubmitted: be,
@@ -10048,7 +10034,7 @@ async function qd({
10048
10034
  name: d,
10049
10035
  limit: u,
10050
10036
  view_type: m
10051
- } = s, y = m === "tree", p = [];
10037
+ } = s, g = m === "tree", p = [];
10052
10038
  for (const C of c) {
10053
10039
  const [R, b] = C;
10054
10040
  if (R)
@@ -10063,7 +10049,7 @@ async function qd({
10063
10049
  p.push([A, b]);
10064
10050
  }
10065
10051
  }
10066
- const [h, g] = p[0], v = { id: h, type: g };
10052
+ const [h, y] = p[0], v = { id: h, type: y };
10067
10053
  return {
10068
10054
  title: d,
10069
10055
  actionId: e,
@@ -10075,7 +10061,7 @@ async function qd({
10075
10061
  domain: l,
10076
10062
  initialView: v,
10077
10063
  limit: u,
10078
- treeExpandable: y
10064
+ treeExpandable: g
10079
10065
  };
10080
10066
  }
10081
10067
  const zd = Xi(Qi), Jd = (e) => {
@@ -10188,7 +10174,7 @@ function tu(e) {
10188
10174
  domain: s = [],
10189
10175
  visible: a = !0,
10190
10176
  parentContext: l = {}
10191
- } = e, [f, c] = _(!1), [d, u] = _(!1), [m, y] = _(), [p, h] = _(), [g, v] = _(), [C, R] = _(1), [b, A] = _(0), S = ue(eu), E = ue([]), [x, T] = _(0), [F, w] = _([]), [L, V] = _(void 0), [O, M] = _(), [k, D] = _(), [$, I] = _(), [j, G] = _(!1), U = ue([]), Y = (Z) => {
10177
+ } = e, [f, c] = _(!1), [d, u] = _(!1), [m, g] = _(), [p, h] = _(), [y, v] = _(), [C, R] = _(1), [b, A] = _(0), S = ue(eu), E = ue([]), [x, T] = _(0), [F, w] = _([]), [L, V] = _(void 0), [O, M] = _(), [k, D] = _(), [$, I] = _(), [j, G] = _(!1), U = ue([]), Y = (Z) => {
10192
10178
  G(!0), R(Z), A((Z - 1) * S.current);
10193
10179
  }, z = async () => {
10194
10180
  const Z = U.current.length > 0 ? U.current : s, fe = Yt(E.current, Z), {
@@ -10214,7 +10200,7 @@ function tu(e) {
10214
10200
  sorter: O,
10215
10201
  fields: {
10216
10202
  ...p.fields,
10217
- ...g.fields
10203
+ ...y.fields
10218
10204
  }
10219
10205
  });
10220
10206
  G(!1), w(Ge);
@@ -10244,9 +10230,9 @@ function tu(e) {
10244
10230
  action: t,
10245
10231
  context: l
10246
10232
  });
10247
- U.current = Z.domain, v(Z.views.get("form")), h(Z.views.get("tree")), y(Z.model), S.current = Z.limit;
10233
+ U.current = Z.domain, v(Z.views.get("form")), h(Z.views.get("tree")), g(Z.model), S.current = Z.limit;
10248
10234
  }, ne = async () => {
10249
- y(r);
10235
+ g(r);
10250
10236
  const Z = await H.getHandler().getView({
10251
10237
  model: r,
10252
10238
  type: "form",
@@ -10273,7 +10259,7 @@ function tu(e) {
10273
10259
  model: m,
10274
10260
  treeView: p
10275
10261
  });
10276
- }, J = () => !p || !g ? null : /* @__PURE__ */ P("div", {
10262
+ }, J = () => !p || !y ? null : /* @__PURE__ */ P("div", {
10277
10263
  style: {
10278
10264
  overflowY: "scroll"
10279
10265
  },
@@ -10301,7 +10287,7 @@ function tu(e) {
10301
10287
  sorter: Z,
10302
10288
  fields: {
10303
10289
  ...p.fields,
10304
- ...g.fields
10290
+ ...y.fields
10305
10291
  }
10306
10292
  });
10307
10293
  w(fe);
@@ -10356,9 +10342,9 @@ function ru(e, t) {
10356
10342
  configAction: s
10357
10343
  } = e, [a, l] = _([]), [f, c] = _(!1), [d, u] = _(), {
10358
10344
  setIsLoading: m,
10359
- openAction: y,
10345
+ openAction: g,
10360
10346
  moveItemsEnabled: p
10361
- } = W(nr), h = ue(), g = ue();
10347
+ } = W(nr), h = ue(), y = ue();
10362
10348
  ge(() => {
10363
10349
  v();
10364
10350
  }, [r, o, i]), xt(t, () => ({
@@ -10371,7 +10357,7 @@ function ru(e, t) {
10371
10357
  c(!0), m(!0), u(void 0);
10372
10358
  try {
10373
10359
  const x = await C(), T = await b(x), F = x.fields[Dn].relation, w = T[Dn].items;
10374
- g.current = x.fields;
10360
+ y.current = x.fields;
10375
10361
  const L = await R({
10376
10362
  items: w,
10377
10363
  model: F,
@@ -10481,12 +10467,12 @@ function ru(e, t) {
10481
10467
  values: {
10482
10468
  [Dn]: L
10483
10469
  },
10484
- fields: g.current,
10470
+ fields: y.current,
10485
10471
  context: i
10486
10472
  });
10487
10473
  }
10488
10474
  async function E() {
10489
- y(s);
10475
+ g(s);
10490
10476
  }
10491
10477
  return d ? (console.log(d), /* @__PURE__ */ n(tt, {
10492
10478
  className: "mt-10 mb-20",
@@ -10564,7 +10550,7 @@ function ru(e, t) {
10564
10550
  view_id: J,
10565
10551
  view_type: Z
10566
10552
  };
10567
- y(Ne);
10553
+ g(Ne);
10568
10554
  }
10569
10555
  }
10570
10556
  });
@@ -10615,7 +10601,7 @@ function ru(e, t) {
10615
10601
  title: D,
10616
10602
  parms: z,
10617
10603
  action: B,
10618
- openAction: y,
10604
+ openAction: g,
10619
10605
  children: N
10620
10606
  }, V);
10621
10607
  })
@@ -10641,10 +10627,10 @@ const ou = bt(ru), iu = (e) => {
10641
10627
  items: o = []
10642
10628
  } = t || {}, s = o.filter((x) => x.operation !== "pendingRemove").map((x) => x.id), [a, l] = _([]), [f, c] = _(), [d, u] = _(!1), {
10643
10629
  relation: m,
10644
- context: y,
10630
+ context: g,
10645
10631
  readOnly: p,
10646
10632
  field: h,
10647
- columns: g
10633
+ columns: y
10648
10634
  } = r, v = W(Le), {
10649
10635
  getContext: C
10650
10636
  } = v || {};
@@ -10678,7 +10664,7 @@ const ou = bt(ru), iu = (e) => {
10678
10664
  fields: [h],
10679
10665
  context: {
10680
10666
  ...C == null ? void 0 : C(),
10681
- ...y
10667
+ ...g
10682
10668
  }
10683
10669
  })).map((w) => {
10684
10670
  const L = w[h];
@@ -10733,7 +10719,7 @@ const ou = bt(ru), iu = (e) => {
10733
10719
  },
10734
10720
  children: /* @__PURE__ */ n(Ce, {
10735
10721
  children: a.map((x) => /* @__PURE__ */ n(de, {
10736
- span: Math.floor(24 / g),
10722
+ span: Math.floor(24 / y),
10737
10723
  children: /* @__PURE__ */ n(jt, {
10738
10724
  value: x.value,
10739
10725
  children: x.label
@@ -10904,21 +10890,21 @@ var Uo = { exports: {} };
10904
10890
  function l(c, d, u, m) {
10905
10891
  return s.fromToBase(c, d, u, m);
10906
10892
  }
10907
- o.en.relativeTime = a, s.fromToBase = function(c, d, u, m, y) {
10908
- for (var p, h, g, v = u.$locale().relativeTime || a, C = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], R = C.length, b = 0; b < R; b += 1) {
10893
+ o.en.relativeTime = a, s.fromToBase = function(c, d, u, m, g) {
10894
+ for (var p, h, y, v = u.$locale().relativeTime || a, C = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], R = C.length, b = 0; b < R; b += 1) {
10909
10895
  var A = C[b];
10910
10896
  A.d && (p = m ? o(c).diff(u, A.d, !0) : u.diff(c, A.d, !0));
10911
10897
  var S = (r.rounding || Math.round)(Math.abs(p));
10912
- if (g = p > 0, S <= A.r || !A.r) {
10898
+ if (y = p > 0, S <= A.r || !A.r) {
10913
10899
  S <= 1 && b > 0 && (A = C[b - 1]);
10914
10900
  var E = v[A.l];
10915
- y && (S = y("" + S)), h = typeof E == "string" ? E.replace("%d", S) : E(S, d, A.l, g);
10901
+ g && (S = g("" + S)), h = typeof E == "string" ? E.replace("%d", S) : E(S, d, A.l, y);
10916
10902
  break;
10917
10903
  }
10918
10904
  }
10919
10905
  if (d)
10920
10906
  return h;
10921
- var x = g ? v.future : v.past;
10907
+ var x = y ? v.future : v.past;
10922
10908
  return typeof x == "function" ? x(h) : x.replace("%s", h);
10923
10909
  }, s.to = function(c, d) {
10924
10910
  return l(c, d, this, !0);
@@ -11066,7 +11052,7 @@ function Iu(e, t) {
11066
11052
  }
11067
11053
  c(f.filter((A) => A.key !== b)), d.current.delete(b);
11068
11054
  }
11069
- function y({
11055
+ function g({
11070
11056
  tabKey: b,
11071
11057
  canWeClose: A
11072
11058
  }) {
@@ -11177,7 +11163,7 @@ function Iu(e, t) {
11177
11163
  action: E
11178
11164
  }]), l(S);
11179
11165
  }
11180
- async function g({
11166
+ async function y({
11181
11167
  relateData: b,
11182
11168
  fields: A,
11183
11169
  values: S,
@@ -11393,7 +11379,7 @@ function Iu(e, t) {
11393
11379
  ...A
11394
11380
  },
11395
11381
  domain: b,
11396
- setCanWeClose: y,
11382
+ setCanWeClose: g,
11397
11383
  initialView: I,
11398
11384
  res_id: V,
11399
11385
  formDefaultValues: O,
@@ -11410,7 +11396,7 @@ function Iu(e, t) {
11410
11396
  children: /* @__PURE__ */ n(bl, {
11411
11397
  openShortcut: v,
11412
11398
  openAction: R,
11413
- openRelate: g,
11399
+ openRelate: y,
11414
11400
  openDefaultActionForModel: C,
11415
11401
  tabs: f,
11416
11402
  activeKey: a,
@@ -11545,10 +11531,10 @@ const {
11545
11531
  onCheckIsFavourite: r,
11546
11532
  onAddFavourite: i,
11547
11533
  onRemoveFavourite: o
11548
- } = e, [s, a] = _(!1), [l, f] = _(!1), [c, d] = _([]), [u, m] = _(!0), [y, p] = _(), {
11534
+ } = e, [s, a] = _(!1), [l, f] = _(!1), [c, d] = _([]), [u, m] = _(!0), [g, p] = _(), {
11549
11535
  t: h
11550
11536
  } = W(ye) || {}, {
11551
- token: g
11537
+ token: y
11552
11538
  } = Vu(), v = W(dt), {
11553
11539
  openShortcut: C,
11554
11540
  tabs: R,
@@ -11632,7 +11618,7 @@ const {
11632
11618
  title: h == null ? void 0 : h("edit_favorites"),
11633
11619
  children: /* @__PURE__ */ n(no, {
11634
11620
  style: {
11635
- color: g.colorPrimary,
11621
+ color: y.colorPrimary,
11636
11622
  cursor: "pointer"
11637
11623
  },
11638
11624
  onClick: L
@@ -11678,8 +11664,8 @@ const {
11678
11664
  });
11679
11665
  }
11680
11666
  async function M() {
11681
- if (s && y)
11682
- await o(y);
11667
+ if (s && g)
11668
+ await o(g);
11683
11669
  else {
11684
11670
  if (!A)
11685
11671
  return;