@gisce/react-ooui 2.67.0-alpha.4 → 2.67.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -208,7 +208,7 @@ const { Text: ed, Title: td } = Xt, { useToken: nd } = Je, rd = {
208
208
  }
209
209
  );
210
210
  };
211
- function Ne({
211
+ function Ve({
212
212
  ooui: e,
213
213
  children: t,
214
214
  layout: n = "horizontal",
@@ -446,7 +446,7 @@ const Po = (e) => {
446
446
  return b && /* @__PURE__ */ i(b, {});
447
447
  }
448
448
  }
449
- return /* @__PURE__ */ i(Ne, { ooui: t, children: /* @__PURE__ */ i(
449
+ return /* @__PURE__ */ i(Ve, { ooui: t, children: /* @__PURE__ */ i(
450
450
  Ge,
451
451
  {
452
452
  block: !0,
@@ -498,7 +498,7 @@ const Po = (e) => {
498
498
  if (t.buttons.length === 0)
499
499
  return null;
500
500
  if (t.buttons.length > 1)
501
- return /* @__PURE__ */ i(Ne, { ooui: new oo({ defaultButton: n }), children: /* @__PURE__ */ k(
501
+ return /* @__PURE__ */ i(Ve, { ooui: new oo({ defaultButton: n }), children: /* @__PURE__ */ k(
502
502
  Rl.Button,
503
503
  {
504
504
  disabled: !s || f,
@@ -800,7 +800,7 @@ Un.displayName = "BaseInput";
800
800
  const Bs = (e) => {
801
801
  const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: a, translatable: s } = t;
802
802
  let l = /* @__PURE__ */ i(Hs, { ooui: t, isSearchField: n });
803
- return s && !o && !n && (l = /* @__PURE__ */ i(Us, { ooui: t, field: r })), /* @__PURE__ */ i(Ne, { required: a, ...e, children: l });
803
+ return s && !o && !n && (l = /* @__PURE__ */ i(Us, { ooui: t, field: r })), /* @__PURE__ */ i(Ve, { required: a, ...e, children: l });
804
804
  }, Hs = nt(
805
805
  ({
806
806
  value: e,
@@ -952,7 +952,7 @@ const hd = mt(ft)`
952
952
  }
953
953
  `, { defaultAlgorithm: vd, defaultSeed: bd } = Je, wd = vd(bd), { Option: Sd } = cn, Ys = (e) => {
954
954
  const { ooui: t } = e, { required: n } = t;
955
- return /* @__PURE__ */ i(Ne, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Gs, { ...e }) });
955
+ return /* @__PURE__ */ i(Ve, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Gs, { ...e }) });
956
956
  }, Gs = (e) => {
957
957
  const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: a, required: s } = t, l = Array.from(o.entries()), c = l && l.length && l.map((p) => {
958
958
  const [d, f] = p;
@@ -977,7 +977,7 @@ const hd = mt(ft)`
977
977
  }
978
978
  `, { defaultAlgorithm: xd, defaultSeed: Td } = Je, hi = xd(Td), Id = (e) => {
979
979
  const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
980
- return /* @__PURE__ */ i(Ne, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(Fd, { id: n, readOnly: r, required: o }) });
980
+ return /* @__PURE__ */ i(Ve, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(Fd, { id: n, readOnly: r, required: o }) });
981
981
  }, Fd = (e) => {
982
982
  const { required: t, readOnly: n, ...r } = e;
983
983
  return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? Ad : jn, { disabled: n, ...r }) });
@@ -1028,7 +1028,7 @@ const Vo = (e) => {
1028
1028
  }
1029
1029
  }, Od = (e) => {
1030
1030
  const { ooui: t } = e, { required: n, id: r } = t;
1031
- return bt(r) ? /* @__PURE__ */ i(Vo, { value: r }) : /* @__PURE__ */ i(Ne, { required: n, ...e, children: /* @__PURE__ */ i(Rd, { ooui: t }) });
1031
+ return bt(r) ? /* @__PURE__ */ i(Vo, { value: r }) : /* @__PURE__ */ i(Ve, { required: n, ...e, children: /* @__PURE__ */ i(Rd, { ooui: t }) });
1032
1032
  }, Rd = (e) => {
1033
1033
  const { ooui: t, value: n, onChange: r } = e, { readOnly: o } = t, a = U(null), { t: s } = me(), l = (d) => {
1034
1034
  r == null || r(d);
@@ -1097,7 +1097,7 @@ const Vo = (e) => {
1097
1097
  ] });
1098
1098
  }, Ed = (e) => {
1099
1099
  const { ooui: t } = e, { required: n } = t;
1100
- return /* @__PURE__ */ i(Ne, { required: n, ...e, children: /* @__PURE__ */ i(Dd, {}) });
1100
+ return /* @__PURE__ */ i(Ve, { required: n, ...e, children: /* @__PURE__ */ i(Dd, {}) });
1101
1101
  }, Dd = (e) => {
1102
1102
  const { value: t, onChange: n } = e;
1103
1103
  if (!t)
@@ -1936,7 +1936,7 @@ const un = ({
1936
1936
  s(!1);
1937
1937
  }
1938
1938
  };
1939
- return a ? /* @__PURE__ */ i(tt, {}) : l ? /* @__PURE__ */ i(gt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(Ne, { type: "array", ...e, children: /* @__PURE__ */ i(ou, { ooui: t, views: u }) });
1939
+ return a ? /* @__PURE__ */ i(tt, {}) : l ? /* @__PURE__ */ i(gt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(Ve, { type: "array", ...e, children: /* @__PURE__ */ i(ou, { ooui: t, views: u }) });
1940
1940
  }, ou = (e) => {
1941
1941
  const { value: t, views: n, ooui: r, onChange: o } = e, { items: a = [] } = t || {}, [s, l] = F(!1), [c, u] = F(), [p, d] = F(!1), [f, h] = F(), {
1942
1942
  relation: m,
@@ -4298,7 +4298,7 @@ function pa(e) {
4298
4298
  });
4299
4299
  return t = `${o}:${a}`, e < 0 && (t = "-" + t), t;
4300
4300
  }
4301
- const Qu = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(ha, {}) }), ha = ({ value: e }) => {
4301
+ const Qu = (e) => /* @__PURE__ */ i(Ve, { ...e, children: /* @__PURE__ */ i(ha, {}) }), ha = ({ value: e }) => {
4302
4302
  const t = `${(e || 0).toLocaleString("en-US", {
4303
4303
  minimumIntegerDigits: 1,
4304
4304
  maximumFractionDigits: 4,
@@ -4552,7 +4552,7 @@ const Qu = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(ha,
4552
4552
  function af(e) {
4553
4553
  return e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1);
4554
4554
  }
4555
- const lf = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(ga, { ...e }) }), ga = (e) => {
4555
+ const lf = (e) => /* @__PURE__ */ i(Ve, { ...e, children: /* @__PURE__ */ i(ga, { ...e }) }), ga = (e) => {
4556
4556
  const { t } = me(), [n, r] = et(
4557
4557
  N.getHandler().readObjects
4558
4558
  ), { getFieldValue: o } = re(Ke) || {}, { ooui: a, value: s } = e, [l, c] = F("default");
@@ -4613,7 +4613,7 @@ const lf = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(ga,
4613
4613
  }
4614
4614
  }, ya = (e) => {
4615
4615
  const { ooui: t, showTime: n = !1 } = e, { required: r } = t;
4616
- return /* @__PURE__ */ i(Ne, { required: r, ...e, children: /* @__PURE__ */ i(uf, { ooui: t, showTime: n }) });
4616
+ return /* @__PURE__ */ i(Ve, { required: r, ...e, children: /* @__PURE__ */ i(uf, { ooui: t, showTime: n }) });
4617
4617
  }, uf = (e) => {
4618
4618
  const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: a, readOnly: s, required: l } = r, { token: c } = df(), u = Uo(), p = l && !s ? { backgroundColor: c.colorPrimaryBg } : void 0, d = o ? "time" : "date", f = (g) => {
4619
4619
  n == null || n(g);
@@ -5141,7 +5141,7 @@ const lf = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(ga,
5141
5141
  );
5142
5142
  }, Df = (e) => {
5143
5143
  const t = Uo();
5144
- return /* @__PURE__ */ i(Ne, { ...e, layout: "vertical", children: /* @__PURE__ */ i(
5144
+ return /* @__PURE__ */ i(Ve, { ...e, layout: "vertical", children: /* @__PURE__ */ i(
5145
5145
  xo.RangePicker,
5146
5146
  {
5147
5147
  allowEmpty: [!0, !0],
@@ -5197,7 +5197,7 @@ const lf = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(ga,
5197
5197
  }
5198
5198
  ),
5199
5199
  /* @__PURE__ */ k(qe, { align: "bottom", className: "p-0", children: [
5200
- /* @__PURE__ */ i(Re, { className: "mr-2", children: /* @__PURE__ */ i(Ne, { ...e, ooui: s[0], showLabel: !1, children: /* @__PURE__ */ i(
5200
+ /* @__PURE__ */ i(Re, { className: "mr-2", children: /* @__PURE__ */ i(Ve, { ...e, ooui: s[0], showLabel: !1, children: /* @__PURE__ */ i(
5201
5201
  xo.RangePicker,
5202
5202
  {
5203
5203
  className: "w-60",
@@ -5206,7 +5206,7 @@ const lf = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(ga,
5206
5206
  locale: a
5207
5207
  }
5208
5208
  ) }) }),
5209
- /* @__PURE__ */ i(Re, { children: /* @__PURE__ */ i(Ne, { ...e, ooui: s[1], showLabel: !1, children: /* @__PURE__ */ i(kf, {}) }) })
5209
+ /* @__PURE__ */ i(Re, { children: /* @__PURE__ */ i(Ve, { ...e, ooui: s[1], showLabel: !1, children: /* @__PURE__ */ i(kf, {}) }) })
5210
5210
  ] })
5211
5211
  ] });
5212
5212
  }, kf = ({
@@ -5242,7 +5242,7 @@ const lf = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(ga,
5242
5242
  () => c ? Lf : xr,
5243
5243
  [c]
5244
5244
  ), p = E((f) => f ? /* @__PURE__ */ i(kr, { content: f }) : null, []), d = E((f) => `${f}`.replace(/[^0-9.-]+/g, ""), []);
5245
- return /* @__PURE__ */ i(Ne, { required: c, type: "number", ...e, children: /* @__PURE__ */ i(
5245
+ return /* @__PURE__ */ i(Ve, { required: c, type: "number", ...e, children: /* @__PURE__ */ i(
5246
5246
  u,
5247
5247
  {
5248
5248
  addonBefore: p(t.prefix),
@@ -5274,7 +5274,7 @@ const Lf = mt(xr)`
5274
5274
  },
5275
5275
  [n]
5276
5276
  );
5277
- return /* @__PURE__ */ i(Ne, { required: p, type: "number", ...e, children: /* @__PURE__ */ i(
5277
+ return /* @__PURE__ */ i(Ve, { required: p, type: "number", ...e, children: /* @__PURE__ */ i(
5278
5278
  d,
5279
5279
  {
5280
5280
  addonBefore: f(t.prefix),
@@ -5341,7 +5341,7 @@ function Wf(e) {
5341
5341
  }
5342
5342
  const { defaultAlgorithm: Yf, defaultSeed: Gf } = Je, qf = Yf(Gf), { Option: Kf } = cn, zf = (e) => {
5343
5343
  const { ooui: t } = e, { required: n } = t;
5344
- return /* @__PURE__ */ i(Ne, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Jf, { ...e }) });
5344
+ return /* @__PURE__ */ i(Ve, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Jf, { ...e }) });
5345
5345
  }, Jf = (e) => {
5346
5346
  const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: a, required: s } = t, l = Array.from(o.entries()), c = l && l.length && l.filter((d) => {
5347
5347
  const [f] = d;
@@ -5787,7 +5787,7 @@ var xa = ur, Ta = function() {
5787
5787
  return o;
5788
5788
  }, Vm = km, Ia = Function.prototype.bind || Vm, Ni = {}.hasOwnProperty, Xr = Function.prototype.call, Nm = Xr.bind ? Xr.bind(Ni) : function(e, t) {
5789
5789
  return Xr.call(Ni, e, t);
5790
- }, Me, In = SyntaxError, Fa = Function, wn = TypeError, Zr = function(e) {
5790
+ }, je, In = SyntaxError, Fa = Function, wn = TypeError, Zr = function(e) {
5791
5791
  try {
5792
5792
  return Fa('"use strict"; return (' + e + ").constructor;")();
5793
5793
  } catch {
@@ -5813,22 +5813,22 @@ var eo = function() {
5813
5813
  }
5814
5814
  }() : eo, pn = _m(), Lm = Rm(), ct = Object.getPrototypeOf || (Lm ? function(e) {
5815
5815
  return e.__proto__;
5816
- } : null), yn = {}, Mm = typeof Uint8Array > "u" || !ct ? Me : ct(Uint8Array), an = {
5817
- "%AggregateError%": typeof AggregateError > "u" ? Me : AggregateError,
5816
+ } : null), yn = {}, Mm = typeof Uint8Array > "u" || !ct ? je : ct(Uint8Array), an = {
5817
+ "%AggregateError%": typeof AggregateError > "u" ? je : AggregateError,
5818
5818
  "%Array%": Array,
5819
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? Me : ArrayBuffer,
5820
- "%ArrayIteratorPrototype%": pn && ct ? ct([][Symbol.iterator]()) : Me,
5821
- "%AsyncFromSyncIteratorPrototype%": Me,
5819
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? je : ArrayBuffer,
5820
+ "%ArrayIteratorPrototype%": pn && ct ? ct([][Symbol.iterator]()) : je,
5821
+ "%AsyncFromSyncIteratorPrototype%": je,
5822
5822
  "%AsyncFunction%": yn,
5823
5823
  "%AsyncGenerator%": yn,
5824
5824
  "%AsyncGeneratorFunction%": yn,
5825
5825
  "%AsyncIteratorPrototype%": yn,
5826
- "%Atomics%": typeof Atomics > "u" ? Me : Atomics,
5827
- "%BigInt%": typeof BigInt > "u" ? Me : BigInt,
5828
- "%BigInt64Array%": typeof BigInt64Array > "u" ? Me : BigInt64Array,
5829
- "%BigUint64Array%": typeof BigUint64Array > "u" ? Me : BigUint64Array,
5826
+ "%Atomics%": typeof Atomics > "u" ? je : Atomics,
5827
+ "%BigInt%": typeof BigInt > "u" ? je : BigInt,
5828
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? je : BigInt64Array,
5829
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? je : BigUint64Array,
5830
5830
  "%Boolean%": Boolean,
5831
- "%DataView%": typeof DataView > "u" ? Me : DataView,
5831
+ "%DataView%": typeof DataView > "u" ? je : DataView,
5832
5832
  "%Date%": Date,
5833
5833
  "%decodeURI%": decodeURI,
5834
5834
  "%decodeURIComponent%": decodeURIComponent,
@@ -5838,49 +5838,49 @@ var eo = function() {
5838
5838
  "%eval%": eval,
5839
5839
  // eslint-disable-line no-eval
5840
5840
  "%EvalError%": EvalError,
5841
- "%Float32Array%": typeof Float32Array > "u" ? Me : Float32Array,
5842
- "%Float64Array%": typeof Float64Array > "u" ? Me : Float64Array,
5843
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Me : FinalizationRegistry,
5841
+ "%Float32Array%": typeof Float32Array > "u" ? je : Float32Array,
5842
+ "%Float64Array%": typeof Float64Array > "u" ? je : Float64Array,
5843
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? je : FinalizationRegistry,
5844
5844
  "%Function%": Fa,
5845
5845
  "%GeneratorFunction%": yn,
5846
- "%Int8Array%": typeof Int8Array > "u" ? Me : Int8Array,
5847
- "%Int16Array%": typeof Int16Array > "u" ? Me : Int16Array,
5848
- "%Int32Array%": typeof Int32Array > "u" ? Me : Int32Array,
5846
+ "%Int8Array%": typeof Int8Array > "u" ? je : Int8Array,
5847
+ "%Int16Array%": typeof Int16Array > "u" ? je : Int16Array,
5848
+ "%Int32Array%": typeof Int32Array > "u" ? je : Int32Array,
5849
5849
  "%isFinite%": isFinite,
5850
5850
  "%isNaN%": isNaN,
5851
- "%IteratorPrototype%": pn && ct ? ct(ct([][Symbol.iterator]())) : Me,
5852
- "%JSON%": typeof JSON == "object" ? JSON : Me,
5853
- "%Map%": typeof Map > "u" ? Me : Map,
5854
- "%MapIteratorPrototype%": typeof Map > "u" || !pn || !ct ? Me : ct((/* @__PURE__ */ new Map())[Symbol.iterator]()),
5851
+ "%IteratorPrototype%": pn && ct ? ct(ct([][Symbol.iterator]())) : je,
5852
+ "%JSON%": typeof JSON == "object" ? JSON : je,
5853
+ "%Map%": typeof Map > "u" ? je : Map,
5854
+ "%MapIteratorPrototype%": typeof Map > "u" || !pn || !ct ? je : ct((/* @__PURE__ */ new Map())[Symbol.iterator]()),
5855
5855
  "%Math%": Math,
5856
5856
  "%Number%": Number,
5857
5857
  "%Object%": Object,
5858
5858
  "%parseFloat%": parseFloat,
5859
5859
  "%parseInt%": parseInt,
5860
- "%Promise%": typeof Promise > "u" ? Me : Promise,
5861
- "%Proxy%": typeof Proxy > "u" ? Me : Proxy,
5860
+ "%Promise%": typeof Promise > "u" ? je : Promise,
5861
+ "%Proxy%": typeof Proxy > "u" ? je : Proxy,
5862
5862
  "%RangeError%": RangeError,
5863
5863
  "%ReferenceError%": ReferenceError,
5864
- "%Reflect%": typeof Reflect > "u" ? Me : Reflect,
5864
+ "%Reflect%": typeof Reflect > "u" ? je : Reflect,
5865
5865
  "%RegExp%": RegExp,
5866
- "%Set%": typeof Set > "u" ? Me : Set,
5867
- "%SetIteratorPrototype%": typeof Set > "u" || !pn || !ct ? Me : ct((/* @__PURE__ */ new Set())[Symbol.iterator]()),
5868
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? Me : SharedArrayBuffer,
5866
+ "%Set%": typeof Set > "u" ? je : Set,
5867
+ "%SetIteratorPrototype%": typeof Set > "u" || !pn || !ct ? je : ct((/* @__PURE__ */ new Set())[Symbol.iterator]()),
5868
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? je : SharedArrayBuffer,
5869
5869
  "%String%": String,
5870
- "%StringIteratorPrototype%": pn && ct ? ct(""[Symbol.iterator]()) : Me,
5871
- "%Symbol%": pn ? Symbol : Me,
5870
+ "%StringIteratorPrototype%": pn && ct ? ct(""[Symbol.iterator]()) : je,
5871
+ "%Symbol%": pn ? Symbol : je,
5872
5872
  "%SyntaxError%": In,
5873
5873
  "%ThrowTypeError%": $m,
5874
5874
  "%TypedArray%": Mm,
5875
5875
  "%TypeError%": wn,
5876
- "%Uint8Array%": typeof Uint8Array > "u" ? Me : Uint8Array,
5877
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? Me : Uint8ClampedArray,
5878
- "%Uint16Array%": typeof Uint16Array > "u" ? Me : Uint16Array,
5879
- "%Uint32Array%": typeof Uint32Array > "u" ? Me : Uint32Array,
5876
+ "%Uint8Array%": typeof Uint8Array > "u" ? je : Uint8Array,
5877
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? je : Uint8ClampedArray,
5878
+ "%Uint16Array%": typeof Uint16Array > "u" ? je : Uint16Array,
5879
+ "%Uint32Array%": typeof Uint32Array > "u" ? je : Uint32Array,
5880
5880
  "%URIError%": URIError,
5881
- "%WeakMap%": typeof WeakMap > "u" ? Me : WeakMap,
5882
- "%WeakRef%": typeof WeakRef > "u" ? Me : WeakRef,
5883
- "%WeakSet%": typeof WeakSet > "u" ? Me : WeakSet
5881
+ "%WeakMap%": typeof WeakMap > "u" ? je : WeakMap,
5882
+ "%WeakRef%": typeof WeakRef > "u" ? je : WeakRef,
5883
+ "%WeakSet%": typeof WeakSet > "u" ? je : WeakSet
5884
5884
  };
5885
5885
  if (ct)
5886
5886
  try {
@@ -6991,14 +6991,14 @@ function fh(e, t) {
6991
6991
  setTotalItems: B,
6992
6992
  isActive: ge,
6993
6993
  order: Fe,
6994
- setOrder: ce
6995
- } = Ka({ useLocalState: !c }), de = d || W, Ae = U(de);
6994
+ setOrder: de
6995
+ } = Ka({ useLocalState: !c }), ue = d || W, Ae = U(ue);
6996
6996
  ie(() => {
6997
- ke();
6997
+ Pe();
6998
6998
  }, []), ie(() => {
6999
6999
  var Z;
7000
- (de !== void 0 && Ae.current === void 0 || typeof de == "string" && typeof Ae.current == "string" && de !== Ae.current) && (G == null || G([]), oe == null || oe({}), (Z = g.current) == null || Z.unselectAll(), Gt()), Ae.current = de;
7001
- }, [de]);
7000
+ (ue !== void 0 && Ae.current === void 0 || typeof ue == "string" && typeof Ae.current == "string" && ue !== Ae.current) && (G == null || G([]), oe == null || oe({}), (Z = g.current) == null || Z.unselectAll(), Gt()), Ae.current = ue;
7001
+ }, [ue]);
7002
7002
  const we = z(() => {
7003
7003
  if (S)
7004
7004
  return Ut(S);
@@ -7014,7 +7014,7 @@ function fh(e, t) {
7014
7014
  });
7015
7015
  const {
7016
7016
  isFieldLoading: Ye,
7017
- refresh: Te,
7017
+ refresh: Ie,
7018
7018
  addRecordsToCheckFunctionFields: ae
7019
7019
  } = Ja({
7020
7020
  model: n,
@@ -7039,31 +7039,31 @@ function fh(e, t) {
7039
7039
  ...Z,
7040
7040
  render: (Oe, Xe) => Ye != null && Ye(Xe, Z.key) ? /* @__PURE__ */ i(Ds, {}) : Z.render(Oe, Z.key, Z == null ? void 0 : Z.ooui, Z == null ? void 0 : Z.context)
7041
7041
  }));
7042
- }, [Ee, Ye]), je = z(() => {
7042
+ }, [Ee, Ye]), Be = z(() => {
7043
7043
  if (!P)
7044
7044
  return wa({
7045
7045
  treeViewId: S == null ? void 0 : S.view_id,
7046
7046
  model: n
7047
7047
  });
7048
7048
  }, [n, S == null ? void 0 : S.view_id, P]), {
7049
- loading: He,
7050
- getColumnState: Ie,
7049
+ loading: Ue,
7050
+ getColumnState: xe,
7051
7051
  updateColumnState: le
7052
- } = Wo({ key: je }), De = z(
7052
+ } = Wo({ key: Be }), De = z(
7053
7053
  () => Jt(he || [], s),
7054
7054
  [s, he]
7055
- ), Pe = E(() => {
7056
- const Oe = `${JSON.stringify(de ? s : De)}-${de}`;
7055
+ ), Ne = E(() => {
7056
+ const Oe = `${JSON.stringify(ue ? s : De)}-${ue}`;
7057
7057
  return Oe !== kt.current ? (kt.current = Oe, !0) : !1;
7058
- }, [s, De, de]), ke = E(async () => {
7059
- if (!de) {
7058
+ }, [s, De, ue]), Pe = E(async () => {
7059
+ if (!ue) {
7060
7060
  _(void 0), B(0), C(!0);
7061
7061
  try {
7062
7062
  const Z = await N.getHandler().searchCount({
7063
- params: de ? s : De,
7063
+ params: ue ? s : De,
7064
7064
  model: n,
7065
7065
  context: u,
7066
- name_search: de
7066
+ name_search: ue
7067
7067
  });
7068
7068
  _(Z), B(Z);
7069
7069
  } catch (Z) {
@@ -7076,7 +7076,7 @@ function fh(e, t) {
7076
7076
  s,
7077
7077
  De,
7078
7078
  n,
7079
- de,
7079
+ ue,
7080
7080
  u,
7081
7081
  B,
7082
7082
  b
@@ -7092,7 +7092,6 @@ function fh(e, t) {
7092
7092
  we.colors && (it.colors = we.colors), we.status && (it.status = we.status);
7093
7093
  let It;
7094
7094
  if (!v.current && Fe) {
7095
- v.current = !0;
7096
7095
  const ut = mr({
7097
7096
  state: Fe
7098
7097
  });
@@ -7105,9 +7104,10 @@ function fh(e, t) {
7105
7104
  })), mn = ut && (ut == null ? void 0 : ut.length) > 0 ? ut : void 0, Ur = mr({
7106
7105
  state: mn
7107
7106
  });
7108
- ce == null || ce(mn), It = pr(Ur);
7107
+ de == null || de(mn), It = pr(Ur);
7109
7108
  }
7110
- const Rt = de ? s : De, { results: tn, attrsEvaluated: or } = await N.getHandler().searchForTree({
7109
+ v.current = !0;
7110
+ const Rt = ue ? s : De, { results: tn, attrsEvaluated: or } = await N.getHandler().searchForTree({
7111
7111
  params: Rt,
7112
7112
  limit: Oe - Z,
7113
7113
  offset: Z,
@@ -7116,7 +7116,7 @@ function fh(e, t) {
7116
7116
  context: u,
7117
7117
  attrs: it,
7118
7118
  order: It,
7119
- name_search: de,
7119
+ name_search: ue,
7120
7120
  skipFunctionFields: !0,
7121
7121
  onIdsRetrieved: (ut) => {
7122
7122
  ae(ut);
@@ -7125,16 +7125,16 @@ function fh(e, t) {
7125
7125
  if (K == null || K({
7126
7126
  model: n,
7127
7127
  params: Rt,
7128
- name_search: de,
7128
+ name_search: ue,
7129
7129
  context: u,
7130
7130
  order: It
7131
- }), Pe() || Yt.current !== It)
7131
+ }), Ne() || Yt.current !== It)
7132
7132
  X == null || X(ir);
7133
7133
  else {
7134
7134
  const ut = [...J || [], ...ir];
7135
7135
  X == null || X(ut);
7136
7136
  }
7137
- if (Yt.current = It, de ? (_(tn.length), B(tn.length), T(!0), C(!1)) : T(!1), tn.length === 0)
7137
+ if (Yt.current = It, ue ? (_(tn.length), B(tn.length), T(!0), C(!1)) : T(!1), tn.length === 0)
7138
7138
  return y.current = [], _(0), B(0), [];
7139
7139
  const sr = dn(we, tn), ar = ln(or);
7140
7140
  if (h.current = {
@@ -7155,11 +7155,11 @@ function fh(e, t) {
7155
7155
  s,
7156
7156
  De,
7157
7157
  n,
7158
- Pe,
7159
- de,
7158
+ Ne,
7159
+ ue,
7160
7160
  u,
7161
7161
  X,
7162
- ce,
7162
+ de,
7163
7163
  K,
7164
7164
  B,
7165
7165
  we,
@@ -7168,12 +7168,12 @@ function fh(e, t) {
7168
7168
  T,
7169
7169
  C
7170
7170
  ]
7171
- ), ue = E(
7171
+ ), ce = E(
7172
7172
  (Z) => {
7173
7173
  H == null || H(Z), p == null || p(Z.map((Oe) => Oe.id));
7174
7174
  },
7175
7175
  [p, H]
7176
- ), We = E(
7176
+ ), Me = E(
7177
7177
  (Z) => {
7178
7178
  H == null || H(Z.map((Oe) => ({ id: Oe }))), p == null || p(Z);
7179
7179
  },
@@ -7209,25 +7209,25 @@ function fh(e, t) {
7209
7209
  // eslint-disable-next-line @typescript-eslint/require-array-sort-compare
7210
7210
  [["id", "in", ze.sort()]]
7211
7211
  ) : void 0
7212
- }), Be = E(async () => {
7212
+ }), He = E(async () => {
7213
7213
  let Z = !1;
7214
7214
  (Q == null ? void 0 : Q.length) === 0 ? Z = !0 : Z = !1;
7215
7215
  const Oe = async () => {
7216
- if (de) {
7217
- ue(y.current);
7216
+ if (ue) {
7217
+ ce(y.current);
7218
7218
  return;
7219
7219
  }
7220
7220
  if (!x)
7221
7221
  return;
7222
7222
  const Xe = await N.getHandler().searchAllIds(
7223
7223
  {
7224
- params: de ? s : De,
7224
+ params: ue ? s : De,
7225
7225
  model: n,
7226
7226
  context: u,
7227
7227
  totalItems: x
7228
7228
  }
7229
7229
  );
7230
- ue(Xe.map((it) => ({ id: it })));
7230
+ ce(Xe.map((it) => ({ id: it })));
7231
7231
  };
7232
7232
  Z ? x && x > uh ? Wt({
7233
7233
  confirmMessage: O("confirmSelectAllRegisters").replace(
@@ -7238,17 +7238,17 @@ function fh(e, t) {
7238
7238
  onOk: Oe
7239
7239
  }) : Oe() : H([]);
7240
7240
  }, [
7241
- ue,
7241
+ ce,
7242
7242
  s,
7243
7243
  De,
7244
7244
  n,
7245
- de,
7245
+ ue,
7246
7246
  u,
7247
7247
  Q == null ? void 0 : Q.length,
7248
7248
  H,
7249
7249
  O,
7250
7250
  x
7251
- ]), _e = E(() => ee, [ee]), $e = z(() => fe ? /* @__PURE__ */ i(Go, { aggregates: ne, isLoading: St }) : null, [ne, St, fe]), Ue = E((Z) => /* @__PURE__ */ i(qn, { color: Z, style: { marginLeft: 7 } }), []), pt = E(
7251
+ ]), _e = E(() => ee, [ee]), $e = z(() => fe ? /* @__PURE__ */ i(Go, { aggregates: ne, isLoading: St }) : null, [ne, St, fe]), We = E((Z) => /* @__PURE__ */ i(qn, { color: Z, style: { marginLeft: 7 } }), []), pt = E(
7252
7252
  (Z) => {
7253
7253
  var Oe;
7254
7254
  return (Oe = m.current) == null ? void 0 : Oe[Z.id];
@@ -7269,17 +7269,17 @@ function fh(e, t) {
7269
7269
  onRequestData: be,
7270
7270
  onRowDoubleClick: a,
7271
7271
  onRowStyle: Qe,
7272
- onRowSelectionChange: We,
7272
+ onRowSelectionChange: Me,
7273
7273
  onColumnChanged: le,
7274
- onGetColumnsState: Ie,
7274
+ onGetColumnsState: xe,
7275
7275
  onChangeFirstVisibleRowIndex: L,
7276
7276
  onGetFirstVisibleRowIndex: _e,
7277
7277
  selectedRowKeys: ze,
7278
- onSelectionCheckboxClicked: Be,
7278
+ onSelectionCheckboxClicked: He,
7279
7279
  totalRows: x || 99999,
7280
7280
  footer: $e,
7281
7281
  hasStatusColumn: we.status !== null,
7282
- statusComponent: Ue,
7282
+ statusComponent: We,
7283
7283
  onRowStatus: pt,
7284
7284
  strings: Pt,
7285
7285
  initialSortState: Fe
@@ -7287,39 +7287,39 @@ function fh(e, t) {
7287
7287
  ), [
7288
7288
  Fe,
7289
7289
  I,
7290
- We,
7290
+ Me,
7291
7291
  Ee,
7292
7292
  Ce,
7293
7293
  _e,
7294
7294
  $e,
7295
- Ie,
7295
+ xe,
7296
7296
  be,
7297
7297
  a,
7298
7298
  pt,
7299
7299
  Qe,
7300
- Be,
7300
+ He,
7301
7301
  ze,
7302
7302
  L,
7303
- Ue,
7303
+ We,
7304
7304
  Pt,
7305
7305
  x,
7306
7306
  we,
7307
7307
  le
7308
- ]), xe = U(he), st = U(M), kt = U(), Yt = U();
7308
+ ]), Te = U(he), st = U(M), kt = U(), Yt = U();
7309
7309
  $t(() => {
7310
7310
  const Z = !Xo(
7311
7311
  he,
7312
- xe.current
7312
+ Te.current
7313
7313
  ), Oe = st.current && !M;
7314
- Z && (Oe || f === "top") && Gt(), xe.current = he, st.current = M;
7314
+ Z && (Oe || f === "top") && Gt(), Te.current = he, st.current = M;
7315
7315
  }, [he, M]);
7316
7316
  const Gt = E(async () => {
7317
7317
  var Z;
7318
- ue([]), kt.current = void 0, T(!1), await ke(), (Z = g == null ? void 0 : g.current) == null || Z.refresh(), Te();
7318
+ ce([]), kt.current = void 0, T(!1), await Pe(), (Z = g == null ? void 0 : g.current) == null || Z.refresh(), Ie();
7319
7319
  }, [
7320
- ue,
7321
- ke,
7322
- Te,
7320
+ ce,
7321
+ Pe,
7322
+ Ie,
7323
7323
  T
7324
7324
  ]);
7325
7325
  Dt(t, () => ({
@@ -7357,19 +7357,19 @@ function fh(e, t) {
7357
7357
  ]
7358
7358
  ), $n = E(() => {
7359
7359
  var Z;
7360
- ue([]), (Z = g.current) == null || Z.unselectAll(), j == null || j(void 0), G == null || G([]), oe == null || oe(void 0);
7360
+ ce([]), (Z = g.current) == null || Z.unselectAll(), j == null || j(void 0), G == null || G([]), oe == null || oe(void 0);
7361
7361
  }, [
7362
- ue,
7362
+ ce,
7363
7363
  j,
7364
7364
  G,
7365
7365
  oe
7366
7366
  ]), Vt = E(
7367
7367
  ({ params: Z, searchValues: Oe }) => {
7368
7368
  var Xe;
7369
- ue([]), (Xe = g.current) == null || Xe.unselectAll(), j == null || j(void 0), G == null || G(Z), oe == null || oe(Oe);
7369
+ ce([]), (Xe = g.current) == null || Xe.unselectAll(), j == null || j(void 0), G == null || G(Z), oe == null || oe(Oe);
7370
7370
  },
7371
7371
  [
7372
- ue,
7372
+ ce,
7373
7373
  j,
7374
7374
  G,
7375
7375
  oe
@@ -7398,10 +7398,10 @@ function fh(e, t) {
7398
7398
  ), Ze = E(
7399
7399
  ({ params: Z, values: Oe }) => {
7400
7400
  var Xe;
7401
- ue([]), (Xe = g.current) == null || Xe.unselectAll(), j == null || j(void 0), G == null || G(Z), oe == null || oe(Oe), $ == null || $(!1);
7401
+ ce([]), (Xe = g.current) == null || Xe.unselectAll(), j == null || j(void 0), G == null || G(Z), oe == null || oe(Oe), $ == null || $(!1);
7402
7402
  },
7403
7403
  [
7404
- ue,
7404
+ ce,
7405
7405
  j,
7406
7406
  G,
7407
7407
  oe,
@@ -7430,7 +7430,7 @@ function fh(e, t) {
7430
7430
  {
7431
7431
  selectedRowKeys: ze,
7432
7432
  totalRows: x,
7433
- customMiddleComponent: de && w && x && x > Ct && /* @__PURE__ */ i(
7433
+ customMiddleComponent: ue && w && x && x > Ct && /* @__PURE__ */ i(
7434
7434
  Qa,
7435
7435
  {
7436
7436
  onFilterSearchClick: () => $ == null ? void 0 : $(!0)
@@ -7438,7 +7438,7 @@ function fh(e, t) {
7438
7438
  )
7439
7439
  }
7440
7440
  ),
7441
- /* @__PURE__ */ i("div", { ref: D, style: Tt, children: P || He || A ? /* @__PURE__ */ i(tt, {}) : yt })
7441
+ /* @__PURE__ */ i("div", { ref: D, style: Tt, children: P || Ue || A ? /* @__PURE__ */ i(tt, {}) : yt })
7442
7442
  ] });
7443
7443
  }
7444
7444
  const Xa = _t(fh), ns = (e, t = "14px -apple-system") => {
@@ -7605,7 +7605,7 @@ const Xa = _t(fh), ns = (e, t = "14px -apple-system") => {
7605
7605
  return null;
7606
7606
  const J = [], K = (d == null ? void 0 : d.length) > 0 ? O.filter((B) => d.includes(B.id)) : O;
7607
7607
  return X.forEach((B) => {
7608
- const ge = K.reduce((Fe, ce) => ce[B.field] && !isNaN(ce[B.field]) ? Fe + ce[B.field] : Fe, 0);
7608
+ const ge = K.reduce((Fe, de) => de[B.field] && !isNaN(de[B.field]) ? Fe + de[B.field] : Fe, 0);
7609
7609
  J.push(`${B.label}: ${Math.round(ge * 100) / 100}`);
7610
7610
  }), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: J.join(", ") });
7611
7611
  }, [O, d, S]), oe = z(() => {
@@ -7691,23 +7691,23 @@ const el = (e) => {
7691
7691
  context: u
7692
7692
  });
7693
7693
  if (ee(ae.length), p == null || p(ae.length), ae.length > 0) {
7694
- const Ee = ae.map((ke) => ke == null ? void 0 : ke[0]), { colors: Ce, status: je } = Ut(d), He = {};
7695
- Ce && (He.colors = Ce), je && (He.status = je);
7696
- const Ie = await N.getHandler().readEvalUiObjects({
7694
+ const Ee = ae.map((Pe) => Pe == null ? void 0 : Pe[0]), { colors: Ce, status: Be } = Ut(d), Ue = {};
7695
+ Ce && (Ue.colors = Ce), Be && (Ue.status = Be);
7696
+ const xe = await N.getHandler().readEvalUiObjects({
7697
7697
  model: t,
7698
7698
  ids: Ee,
7699
7699
  arch: d == null ? void 0 : d.arch,
7700
7700
  fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
7701
7701
  context: u,
7702
- attrs: He
7703
- }), le = Ie[0];
7704
- X.current = [...le], he(ln(Ie[1])), W(Wn(Ie[1]));
7705
- const De = le.map((ke) => ke.id), Pe = h !== void 0 ? bn({
7702
+ attrs: Ue
7703
+ }), le = xe[0];
7704
+ X.current = [...le], he(ln(xe[1])), W(Wn(xe[1]));
7705
+ const De = le.map((Pe) => Pe.id), Ne = h !== void 0 ? bn({
7706
7706
  resultsToSort: le,
7707
7707
  sorter: h,
7708
7708
  fields: { ...d.fields, ...f.fields }
7709
7709
  }) : [...X.current];
7710
- J(Pe), De.length > 0 ? g == null || g(0) : g == null || g(void 0);
7710
+ J(Ne), De.length > 0 ? g == null || g(0) : g == null || g(void 0);
7711
7711
  } else
7712
7712
  J([]), g == null || g(void 0);
7713
7713
  D(!1), c.current = !0;
@@ -7725,10 +7725,10 @@ const el = (e) => {
7725
7725
  p
7726
7726
  ]), ge = E(
7727
7727
  async (ae) => {
7728
- const { params: Ee, newOffset: Ce } = ae || {}, je = Jt(Ee || _, b), { colors: He, status: Ie } = Ut(d), le = {};
7729
- He && (le.colors = He), Ie && (le.status = Ie);
7730
- const { totalItems: De, results: Pe, attrsEvaluated: ke } = await N.getHandler().searchForTree({
7731
- params: je,
7728
+ const { params: Ee, newOffset: Ce } = ae || {}, Be = Jt(Ee || _, b), { colors: Ue, status: xe } = Ut(d), le = {};
7729
+ Ue && (le.colors = Ue), xe && (le.status = xe);
7730
+ const { totalItems: De, results: Ne, attrsEvaluated: Pe } = await N.getHandler().searchForTree({
7731
+ params: Be,
7732
7732
  limit: j.current,
7733
7733
  offset: Ce || $,
7734
7734
  model: t,
@@ -7736,22 +7736,22 @@ const el = (e) => {
7736
7736
  context: u,
7737
7737
  attrs: le
7738
7738
  });
7739
- he(ln(ke)), W(Wn(ke)), X.current = [...Pe];
7739
+ he(ln(Pe)), W(Wn(Pe)), X.current = [...Ne];
7740
7740
  const ve = h !== void 0 ? bn({
7741
- resultsToSort: Pe,
7741
+ resultsToSort: Ne,
7742
7742
  sorter: h,
7743
7743
  fields: { ...d.fields, ...f.fields }
7744
7744
  }) : [...X.current];
7745
7745
  if (J(ve), v && ve.length > 0) {
7746
- const We = ve.findIndex(
7746
+ const Me = ve.findIndex(
7747
7747
  (be) => A === be.id
7748
7748
  );
7749
- We === -1 ? g == null || g(0) : g == null || g(We);
7749
+ Me === -1 ? g == null || g(0) : g == null || g(Me);
7750
7750
  } else
7751
7751
  g == null || g(void 0);
7752
7752
  D(!1);
7753
- const ue = await De();
7754
- ee(ue), p == null || p(ue);
7753
+ const ce = await De();
7754
+ ee(ce), p == null || p(ce);
7755
7755
  },
7756
7756
  [
7757
7757
  g,
@@ -7787,7 +7787,7 @@ const el = (e) => {
7787
7787
  r,
7788
7788
  s
7789
7789
  ]
7790
- ), ce = E(
7790
+ ), de = E(
7791
7791
  (ae) => {
7792
7792
  if (JSON.stringify(ae) === JSON.stringify(h))
7793
7793
  return;
@@ -7807,12 +7807,12 @@ const el = (e) => {
7807
7807
  f == null ? void 0 : f.fields,
7808
7808
  J
7809
7809
  ]
7810
- ), de = E(
7810
+ ), ue = E(
7811
7811
  (ae) => {
7812
- const { params: Ee, searchValues: Ce, limit: je, offset: He } = ae;
7813
- O || (n == null || n(void 0), r == null || r([]), w == null || w(Ce), o == null || o(Ee), a == null || a(!1), S(!0), P(void 0), M(1), je && (j.current = je, x == null || x(je)), He && H(He), Fe({
7812
+ const { params: Ee, searchValues: Ce, limit: Be, offset: Ue } = ae;
7813
+ O || (n == null || n(void 0), r == null || r([]), w == null || w(Ce), o == null || o(Ee), a == null || a(!1), S(!0), P(void 0), M(1), Be && (j.current = Be, x == null || x(Be)), Ue && H(Ue), Fe({
7814
7814
  params: Ee,
7815
- newOffset: He
7815
+ newOffset: Ue
7816
7816
  }));
7817
7817
  },
7818
7818
  [
@@ -7850,14 +7850,14 @@ const el = (e) => {
7850
7850
  return J([...K(), ...Ce]), dn(Ut(d), Ce);
7851
7851
  },
7852
7852
  [d, t, u, K, J]
7853
- ), Te = E(async () => await N.getHandler().searchAllIds({
7853
+ ), Ie = E(async () => await N.getHandler().searchAllIds({
7854
7854
  params: Jt(_, b),
7855
7855
  model: t,
7856
7856
  context: u,
7857
7857
  totalItems: L
7858
7858
  }), [t, u, L, _, b]);
7859
7859
  return {
7860
- submit: de,
7860
+ submit: ue,
7861
7861
  clear: we,
7862
7862
  fetchResults: Fe,
7863
7863
  tableRefreshing: O,
@@ -7868,12 +7868,12 @@ const el = (e) => {
7868
7868
  limit: j.current,
7869
7869
  getResults: K,
7870
7870
  requestPageChange: Ae,
7871
- changeSort: ce,
7871
+ changeSort: de,
7872
7872
  fetchChildrenForRecord: Ye,
7873
7873
  colorsForResults: se,
7874
7874
  statusForResults: oe,
7875
7875
  totalItems: L,
7876
- getAllIds: Te
7876
+ getAllIds: Ie
7877
7877
  };
7878
7878
  };
7879
7879
  function gh(e, t) {
@@ -7911,30 +7911,30 @@ function gh(e, t) {
7911
7911
  setSearchTreeNameSearch: B = void 0,
7912
7912
  setTreeIsLoading: ge = void 0,
7913
7913
  searchValues: Fe = {},
7914
- setSearchValues: ce = void 0,
7915
- limit: de = Ct,
7914
+ setSearchValues: de = void 0,
7915
+ limit: ue = Ct,
7916
7916
  setLimit: Ae = void 0
7917
7917
  } = (p ? $ : {}) || {}, we = E(
7918
- (xe) => {
7919
- se == null || se(xe.map((st) => ({ id: st }))), f == null || f(xe);
7918
+ (Te) => {
7919
+ se == null || se(Te.map((st) => ({ id: st }))), f == null || f(Te);
7920
7920
  },
7921
7921
  [f, se]
7922
7922
  ), {
7923
7923
  submit: Ye,
7924
- clear: Te,
7924
+ clear: Ie,
7925
7925
  fetchResults: ae,
7926
7926
  tableRefreshing: Ee,
7927
7927
  searchFilterLoading: Ce,
7928
- searchError: je,
7929
- page: He,
7930
- limit: Ie,
7928
+ searchError: Be,
7929
+ page: Ue,
7930
+ limit: xe,
7931
7931
  offset: le,
7932
7932
  getResults: De,
7933
- requestPageChange: Pe,
7934
- changeSort: ke,
7933
+ requestPageChange: Ne,
7934
+ changeSort: Pe,
7935
7935
  fetchChildrenForRecord: ve,
7936
- colorsForResults: ue,
7937
- statusForResults: We,
7936
+ colorsForResults: ce,
7937
+ statusForResults: Me,
7938
7938
  totalItems: be,
7939
7939
  getAllIds: Qe
7940
7940
  } = el({
@@ -7942,7 +7942,7 @@ function gh(e, t) {
7942
7942
  setSearchTreeNameSearch: B,
7943
7943
  setSelectedRowItems: we,
7944
7944
  setSearchParams: oe,
7945
- setSearchValues: ce,
7945
+ setSearchValues: de,
7946
7946
  searchParams: he,
7947
7947
  setSearchVisible: j,
7948
7948
  setTreeIsLoading: ge,
@@ -7959,7 +7959,7 @@ function gh(e, t) {
7959
7959
  domain: c,
7960
7960
  currentId: ee,
7961
7961
  setActionViewTotalItems: K,
7962
- limit: de,
7962
+ limit: ue,
7963
7963
  setLimit: Ae,
7964
7964
  clearSelection: (yt = b.current) == null ? void 0 : yt.unselectAll
7965
7965
  });
@@ -7971,20 +7971,20 @@ function gh(e, t) {
7971
7971
  getDomain: () => c
7972
7972
  })), ie(() => {
7973
7973
  g && u && x && (v.current = !1, ae());
7974
- }, [He, le, g, u, s, x]);
7974
+ }, [Ue, le, g, u, s, x]);
7975
7975
  const ze = async () => {
7976
7976
  y(!1), m(!0), D(void 0), ge == null || ge(!0);
7977
7977
  try {
7978
7978
  await St(), y(!0);
7979
- } catch (xe) {
7980
- D(xe), ge == null || ge(!1);
7979
+ } catch (Te) {
7980
+ D(Te), ge == null || ge(!1);
7981
7981
  } finally {
7982
7982
  m(!1);
7983
7983
  }
7984
7984
  }, St = async () => {
7985
7985
  C(n);
7986
- let xe = r;
7987
- r || (xe = await N.getHandler().getView({
7986
+ let Te = r;
7987
+ r || (Te = await N.getHandler().getView({
7988
7988
  model: n,
7989
7989
  type: "form",
7990
7990
  context: d
@@ -7994,19 +7994,19 @@ function gh(e, t) {
7994
7994
  model: n,
7995
7995
  type: "tree",
7996
7996
  context: d
7997
- })), T(xe), _(st);
7997
+ })), T(Te), _(st);
7998
7998
  };
7999
7999
  ie(() => {
8000
8000
  ze();
8001
8001
  }, [n]);
8002
8002
  const ne = E(
8003
- (xe) => {
8004
- Ae == null || Ae(xe);
8003
+ (Te) => {
8004
+ Ae == null || Ae(Te);
8005
8005
  },
8006
8006
  [Ae]
8007
8007
  ), fe = E(
8008
- async (xe) => {
8009
- const { id: st } = xe;
8008
+ async (Te) => {
8009
+ const { id: st } = Te;
8010
8010
  R.current || (R.current = await N.getHandler().treeButOpen({
8011
8011
  id: x.view_id,
8012
8012
  model: A,
@@ -8018,18 +8018,18 @@ function gh(e, t) {
8018
8018
  fields: x.fields,
8019
8019
  values: {
8020
8020
  active_id: st,
8021
- ...xe
8021
+ ...Te
8022
8022
  },
8023
8023
  context: d
8024
8024
  }));
8025
8025
  },
8026
8026
  [A, d, M, x]
8027
- ), Be = E(
8028
- async (xe) => {
8029
- const { id: st } = xe;
8027
+ ), He = E(
8028
+ async (Te) => {
8029
+ const { id: st } = Te;
8030
8030
  if (x != null && x.isExpandable) {
8031
8031
  try {
8032
- await fe(xe);
8032
+ await fe(Te);
8033
8033
  } catch (kt) {
8034
8034
  vt(kt);
8035
8035
  }
@@ -8044,10 +8044,10 @@ function gh(e, t) {
8044
8044
  },
8045
8045
  [A, w, a, fe, x]
8046
8046
  ), _e = E(async () => {
8047
- const xe = await Qe();
8048
- se == null || se(xe.map((st) => ({ id: st }))), f == null || f(xe);
8049
- }, [Qe, f, se]), $e = z(() => x != null && x.isExpandable ? P - 160 : P - (I + 240), [P, I, x == null ? void 0 : x.isExpandable]), Ue = z(
8050
- () => G == null ? void 0 : G.map((xe) => xe.id),
8047
+ const Te = await Qe();
8048
+ se == null || se(Te.map((st) => ({ id: st }))), f == null || f(Te);
8049
+ }, [Qe, f, se]), $e = z(() => x != null && x.isExpandable ? P - 160 : P - (I + 240), [P, I, x == null ? void 0 : x.isExpandable]), We = z(
8050
+ () => G == null ? void 0 : G.map((Te) => Te.id),
8051
8051
  [G]
8052
8052
  ), pt = E(() => !x || !w ? null : /* @__PURE__ */ k(te, { children: [
8053
8053
  /* @__PURE__ */ i(
@@ -8058,14 +8058,14 @@ function gh(e, t) {
8058
8058
  w.search_fields,
8059
8059
  x.search_fields
8060
8060
  ]),
8061
- onClear: Te,
8062
- limit: de,
8061
+ onClear: Ie,
8062
+ limit: ue,
8063
8063
  offset: le,
8064
8064
  isSearching: Ce,
8065
8065
  onSubmit: Ye,
8066
8066
  onLimitChange: ne,
8067
8067
  setSearchFilterHeight: S,
8068
- searchError: je,
8068
+ searchError: Be,
8069
8069
  searchVisible: W,
8070
8070
  searchValues: Fe
8071
8071
  }
@@ -8076,20 +8076,20 @@ function gh(e, t) {
8076
8076
  ref: b,
8077
8077
  context: d,
8078
8078
  total: be,
8079
- limit: Ie,
8080
- page: He,
8079
+ limit: xe,
8080
+ page: Ue,
8081
8081
  treeView: x,
8082
8082
  results: De(),
8083
- onRequestPageChange: Pe,
8083
+ onRequestPageChange: Ne,
8084
8084
  loading: Ee,
8085
- onRowClicked: Be,
8085
+ onRowClicked: He,
8086
8086
  scrollY: l || $e,
8087
- colorsForResults: ue,
8088
- statusForResults: We,
8089
- selectedRowKeys: Ue,
8087
+ colorsForResults: ce,
8088
+ statusForResults: Me,
8089
+ selectedRowKeys: We,
8090
8090
  onRowSelectionChange: we,
8091
8091
  sorter: X,
8092
- onChangeSort: ke,
8092
+ onChangeSort: Pe,
8093
8093
  onFetchChildrenForRecord: x.isExpandable ? ve : void 0,
8094
8094
  childField: x.field_parent,
8095
8095
  rootTree: p,
@@ -8099,35 +8099,35 @@ function gh(e, t) {
8099
8099
  ] }), [
8100
8100
  $e,
8101
8101
  we,
8102
- ke,
8103
- Te,
8104
- ue,
8102
+ Pe,
8103
+ Ie,
8104
+ ce,
8105
8105
  ve,
8106
8106
  w,
8107
8107
  De,
8108
- de,
8109
- Ie,
8108
+ ue,
8109
+ xe,
8110
8110
  le,
8111
- Be,
8112
- ne,
8113
8111
  He,
8112
+ ne,
8113
+ Ue,
8114
8114
  d,
8115
- Pe,
8115
+ Ne,
8116
8116
  p,
8117
- je,
8117
+ Be,
8118
8118
  Ce,
8119
8119
  Fe,
8120
8120
  W,
8121
8121
  _e,
8122
- Ue,
8123
- X,
8124
8122
  We,
8123
+ X,
8124
+ Me,
8125
8125
  Ye,
8126
8126
  Ee,
8127
8127
  be,
8128
8128
  l,
8129
8129
  x
8130
- ]), Pt = O || je;
8130
+ ]), Pt = O || Be;
8131
8131
  return Pt ? /* @__PURE__ */ i(gt, { className: "mt-10", message: Pt, type: "error", banner: !0 }) : /* @__PURE__ */ i("div", { style: u ? {} : { display: "none" }, children: h ? /* @__PURE__ */ i(tt, {}) : pt() });
8132
8132
  }
8133
8133
  const tl = _t(gh), yh = Ct, vh = (e) => {
@@ -8169,15 +8169,15 @@ const tl = _t(gh), yh = Ct, vh = (e) => {
8169
8169
  setOrder: H,
8170
8170
  limit: L,
8171
8171
  setLimit: ee
8172
- } = Ka({ useLocalState: !a }), [Q, G] = F(!0), [se, he] = F(), [oe, W] = F([]), [j, X] = F(!1), J = s || O, K = U(J), B = U(w), ge = U(h), Fe = U(), ce = U({}), de = U(), Ae = U([]), we = U(!1), Ye = z(() => wa({ treeViewId: r == null ? void 0 : r.view_id, model: o }), [r == null ? void 0 : r.view_id, o]), {
8173
- fetchColumnState: Te,
8172
+ } = Ka({ useLocalState: !a }), [Q, G] = F(!0), [se, he] = F(), [oe, W] = F([]), [j, X] = F(!1), J = s || O, K = U(J), B = U(w), ge = U(h), Fe = U(), de = U({}), ue = U(), Ae = U([]), we = U(!1), Ye = z(() => wa({ treeViewId: r == null ? void 0 : r.view_id, model: o }), [r == null ? void 0 : r.view_id, o]), {
8173
+ fetchColumnState: Ie,
8174
8174
  loading: ae,
8175
8175
  getColumnState: Ee,
8176
8176
  updateColumnState: Ce
8177
8177
  } = Wo({
8178
8178
  key: Ye,
8179
8179
  treeViewFetching: t
8180
- }), je = E((Se) => {
8180
+ }), Be = E((Se) => {
8181
8181
  Ae.current = Ae.current.map((Le) => {
8182
8182
  const Ze = Se.find((Z) => Z.id === Le.id);
8183
8183
  return { ...Le, ...Ze };
@@ -8186,8 +8186,8 @@ const tl = _t(gh), yh = Ct, vh = (e) => {
8186
8186
  return { ...Ze, ...Z };
8187
8187
  }));
8188
8188
  }, []), {
8189
- isFieldLoading: He,
8190
- refresh: Ie,
8189
+ isFieldLoading: Ue,
8190
+ refresh: xe,
8191
8191
  addRecordsToCheckFunctionFields: le
8192
8192
  } = Ja({
8193
8193
  model: o,
@@ -8195,13 +8195,13 @@ const tl = _t(gh), yh = Ct, vh = (e) => {
8195
8195
  tableRef: l,
8196
8196
  context: u,
8197
8197
  isActive: P,
8198
- onResultsUpdated: je,
8198
+ onResultsUpdated: Be,
8199
8199
  treeOoui: n
8200
- }), De = jo(), [Pe, ke] = et(
8200
+ }), De = jo(), [Ne, Pe] = et(
8201
8201
  N.getHandler().searchCount
8202
- ), [ve, ue] = et(
8202
+ ), [ve, ce] = et(
8203
8203
  N.getHandler().searchForTree
8204
- ), [We, be] = et(
8204
+ ), [Me, be] = et(
8205
8205
  N.getHandler().searchAllIds
8206
8206
  ), Qe = z(
8207
8207
  () => Jt(w || [], c),
@@ -8212,7 +8212,7 @@ const tl = _t(gh), yh = Ct, vh = (e) => {
8212
8212
  }, [c, Qe, J]), ne = E(async () => {
8213
8213
  he(void 0), R(0), G(!0);
8214
8214
  try {
8215
- const Se = await Pe({
8215
+ const Se = await Ne({
8216
8216
  params: J ? c : Qe,
8217
8217
  model: o,
8218
8218
  context: u,
@@ -8226,23 +8226,23 @@ const tl = _t(gh), yh = Ct, vh = (e) => {
8226
8226
  }
8227
8227
  }, [
8228
8228
  R,
8229
- Pe,
8229
+ Ne,
8230
8230
  J,
8231
8231
  c,
8232
8232
  Qe,
8233
8233
  o,
8234
8234
  u,
8235
8235
  De
8236
- ]), fe = E(() => v, [v]), Be = E(() => b, [b]), _e = E((Se) => {
8236
+ ]), fe = E(() => v, [v]), He = E(() => b, [b]), _e = E((Se) => {
8237
8237
  var Le, Ze, Z, Oe;
8238
- return ce.current[(Ze = (Le = Se.node) == null ? void 0 : Le.data) == null ? void 0 : Ze.id] ? { color: ce.current[(Oe = (Z = Se.node) == null ? void 0 : Z.data) == null ? void 0 : Oe.id] } : {};
8238
+ return de.current[(Ze = (Le = Se.node) == null ? void 0 : Le.data) == null ? void 0 : Ze.id] ? { color: de.current[(Oe = (Z = Se.node) == null ? void 0 : Z.data) == null ? void 0 : Oe.id] } : {};
8239
8239
  }, []), $e = E(
8240
8240
  (Se) => {
8241
8241
  var Le;
8242
- return (Le = de.current) == null ? void 0 : Le[Se.id];
8242
+ return (Le = ue.current) == null ? void 0 : Le[Se.id];
8243
8243
  },
8244
8244
  []
8245
- ), Ue = E(() => {
8245
+ ), We = E(() => {
8246
8246
  var Se;
8247
8247
  g([]), (Se = l.current) == null || Se.unselectAll(), D == null || D(void 0), x == null || x([]), T == null || T(void 0);
8248
8248
  }, [
@@ -8283,10 +8283,10 @@ const tl = _t(gh), yh = Ct, vh = (e) => {
8283
8283
  ie(() => {
8284
8284
  if (!t)
8285
8285
  return () => {
8286
- ke(), ue(), be();
8286
+ Pe(), ce(), be();
8287
8287
  };
8288
8288
  }, [t]), $t(() => {
8289
- !n || !r || t || xe();
8289
+ !n || !r || t || Te();
8290
8290
  }, [
8291
8291
  r,
8292
8292
  n,
@@ -8314,7 +8314,7 @@ const tl = _t(gh), yh = Ct, vh = (e) => {
8314
8314
  ), Le = ge.current && !h;
8315
8315
  Se && (Le || p === "top") && st(), B.current = w, ge.current = h;
8316
8316
  }, [w, h]);
8317
- const xe = E(async () => {
8317
+ const Te = E(async () => {
8318
8318
  if (!n || t)
8319
8319
  return [];
8320
8320
  if (we.current)
@@ -8356,13 +8356,13 @@ const tl = _t(gh), yh = Ct, vh = (e) => {
8356
8356
  return;
8357
8357
  }
8358
8358
  const it = dn(n, Z), It = ln(Oe);
8359
- if (ce.current = {
8360
- ...ce.current,
8359
+ if (de.current = {
8360
+ ...de.current,
8361
8361
  ...It
8362
- }, !de.current && n.status && (de.current = {}), n.status) {
8362
+ }, !ue.current && n.status && (ue.current = {}), n.status) {
8363
8363
  const Rt = Wn(Oe);
8364
- de.current = {
8365
- ...de.current,
8364
+ ue.current = {
8365
+ ...ue.current,
8366
8366
  ...Rt
8367
8367
  };
8368
8368
  }
@@ -8393,13 +8393,13 @@ const tl = _t(gh), yh = Ct, vh = (e) => {
8393
8393
  ne,
8394
8394
  R
8395
8395
  ]), st = E(async () => {
8396
- G(!0), y(0), Te(), g([]), Fe.current = void 0, J || Ie(), await xe();
8396
+ G(!0), y(0), Ie(), g([]), Fe.current = void 0, J || xe(), await Te();
8397
8397
  }, [
8398
+ Ie,
8398
8399
  Te,
8399
- xe,
8400
8400
  g,
8401
8401
  y,
8402
- Ie,
8402
+ xe,
8403
8403
  J
8404
8404
  ]), kt = E(
8405
8405
  (Se, Le) => {
@@ -8412,12 +8412,12 @@ const tl = _t(gh), yh = Ct, vh = (e) => {
8412
8412
  A,
8413
8413
  y
8414
8414
  ]
8415
- ), Yt = E(async () => await We({
8415
+ ), Yt = E(async () => await Me({
8416
8416
  params: Jt(w, c),
8417
8417
  model: o,
8418
8418
  context: u,
8419
8419
  totalItems: se
8420
- }), [We, w, c, o, u, se]), Gt = E(async () => {
8420
+ }), [Me, w, c, o, u, se]), Gt = E(async () => {
8421
8421
  const Se = await Yt();
8422
8422
  g == null || g(Se.map((Le) => ({ id: Le })));
8423
8423
  }, [Yt, g]), Tt = z(() => ze.length === 0 ? "unchecked" : ze.length === L && L > 0 || ze.length === se ? "checked" : "indeterminate", [ze, L, se]), fn = E(() => {
@@ -8455,7 +8455,7 @@ const tl = _t(gh), yh = Ct, vh = (e) => {
8455
8455
  onGetFirstVisibleRowIndex: fe,
8456
8456
  setTreeFirstVisibleRow: y,
8457
8457
  onRowHasBeenSelected: Vt,
8458
- onSearchFilterClear: Ue,
8458
+ onSearchFilterClear: We,
8459
8459
  onSearchFilterSubmit: pt,
8460
8460
  onSideSearchFilterClose: Pt,
8461
8461
  onSideSearchFilterSubmit: yt,
@@ -8476,11 +8476,12 @@ const tl = _t(gh), yh = Ct, vh = (e) => {
8476
8476
  order: $,
8477
8477
  setOrder: H,
8478
8478
  setTreeFirstVisibleColumn: A,
8479
- onGetFirstVisibleColumn: Be,
8479
+ onGetFirstVisibleColumn: He,
8480
8480
  onSortChange: $n,
8481
- isFieldLoading: He,
8481
+ isFieldLoading: Ue,
8482
8482
  setSearchVisible: m,
8483
- nameSearchFetchCompleted: j
8483
+ nameSearchFetchCompleted: j,
8484
+ nameSearch: J
8484
8485
  };
8485
8486
  }, bh = (e, t) => {
8486
8487
  const { t: n } = me(), r = Cn(() => {
@@ -8653,9 +8654,9 @@ function Ch(e, t) {
8653
8654
  ie(() => {
8654
8655
  m.current = a;
8655
8656
  }, [a]);
8656
- const g = E((Pe) => {
8657
- var ke;
8658
- (ke = m.current) == null || ke.call(m, Pe);
8657
+ const g = E((ce) => {
8658
+ var Me;
8659
+ (Me = m.current) == null || Me.call(m, ce);
8659
8660
  }, []), y = ba({
8660
8661
  elementRef: h,
8661
8662
  offset: Sh
@@ -8694,14 +8695,15 @@ function Ch(e, t) {
8694
8695
  getColumnState: B,
8695
8696
  updateColumnState: ge,
8696
8697
  currentPage: Fe,
8697
- limit: ce,
8698
- order: de,
8698
+ limit: de,
8699
+ order: ue,
8699
8700
  setTreeFirstVisibleColumn: Ae,
8700
8701
  onGetFirstVisibleColumn: we,
8701
8702
  onSortChange: Ye,
8702
- isFieldLoading: Te,
8703
+ isFieldLoading: Ie,
8703
8704
  setSearchVisible: ae,
8704
- nameSearchFetchCompleted: Ee
8705
+ nameSearchFetchCompleted: Ee,
8706
+ nameSearch: Ce
8705
8707
  } = vh({
8706
8708
  treeViewFetching: A,
8707
8709
  treeOoui: C,
@@ -8713,7 +8715,7 @@ function Ch(e, t) {
8713
8715
  domain: s,
8714
8716
  filterType: d,
8715
8717
  context: u
8716
- }), [Ce, je, He] = Yo({
8718
+ }), [Be, Ue, xe] = Yo({
8717
8719
  ooui: C,
8718
8720
  model: n,
8719
8721
  showEmptyValues: !0,
@@ -8735,17 +8737,17 @@ function Ch(e, t) {
8735
8737
  getFields: () => v == null ? void 0 : v.fields,
8736
8738
  getDomain: () => s
8737
8739
  }));
8738
- const Ie = z(() => He ? /* @__PURE__ */ i(Go, { aggregates: je, isLoading: Ce }) : null, [je, Ce, He]), le = E(
8739
- (Pe) => /* @__PURE__ */ i(qn, { color: Pe, style: { marginLeft: 7 } }),
8740
+ const le = z(() => xe ? /* @__PURE__ */ i(Go, { aggregates: Ue, isLoading: Be }) : null, [Ue, Be, xe]), De = E(
8741
+ (ce) => /* @__PURE__ */ i(qn, { color: ce, style: { marginLeft: 7 } }),
8740
8742
  []
8741
- ), De = z(
8743
+ ), Ne = z(
8742
8744
  () => ({
8743
8745
  overflow: "hidden",
8744
8746
  height: `${y}px`,
8745
8747
  ...l ? {} : { display: "none" }
8746
8748
  }),
8747
8749
  [y, l]
8748
- );
8750
+ ), Pe = Ce !== void 0 && Ee, ve = Pe && G !== void 0 && G !== null && G > Ct;
8749
8751
  return /* @__PURE__ */ k(Fn, { children: [
8750
8752
  /* @__PURE__ */ i(
8751
8753
  wh,
@@ -8767,13 +8769,13 @@ function Ch(e, t) {
8767
8769
  total: G || 0,
8768
8770
  totalRowsLoading: Q,
8769
8771
  page: p ? 1 : Fe || 1,
8770
- pageSize: p ? Ct : ce || yh,
8772
+ pageSize: p ? Ct : de || yh,
8771
8773
  currentPageSelectedCount: I.length,
8772
8774
  onRequestPageChange: oe,
8773
8775
  totalSelectedCount: I.length,
8774
8776
  onSelectAllGlobalRecords: j,
8775
- simpleSummary: p !== void 0 && Ee,
8776
- customMiddleComponent: p && Ee && G && G > Ct && /* @__PURE__ */ i(
8777
+ simpleSummary: Pe,
8778
+ customMiddleComponent: ve && /* @__PURE__ */ i(
8777
8779
  Qa,
8778
8780
  {
8779
8781
  onFilterSearchClick: () => ae(!0)
@@ -8781,7 +8783,7 @@ function Ch(e, t) {
8781
8783
  )
8782
8784
  }
8783
8785
  ),
8784
- /* @__PURE__ */ i("div", { ref: h, style: De, children: A ? /* @__PURE__ */ i(tt, {}) : /* @__PURE__ */ i(
8786
+ /* @__PURE__ */ i("div", { ref: h, style: Ne, children: A ? /* @__PURE__ */ i(tt, {}) : /* @__PURE__ */ i(
8785
8787
  nl,
8786
8788
  {
8787
8789
  columns: w,
@@ -8798,17 +8800,17 @@ function Ch(e, t) {
8798
8800
  onGetFirstVisibleRowIndex: P,
8799
8801
  onGetFirstVisibleColumn: we,
8800
8802
  setTreeFirstVisibleColumn: Ae,
8801
- footerComp: Ie,
8802
- statusComp: le,
8803
+ footerComp: le,
8804
+ statusComp: De,
8803
8805
  onRowStatus: R,
8804
8806
  onRowStyle: se,
8805
8807
  headerCheckboxState: J,
8806
8808
  onHeaderCheckboxClick: X,
8807
8809
  refresh: S,
8808
- actionViewSortState: de,
8810
+ actionViewSortState: ue,
8809
8811
  onSortChange: Ye,
8810
8812
  tableRef: f,
8811
- isFieldLoading: Te
8813
+ isFieldLoading: Ie
8812
8814
  }
8813
8815
  ) })
8814
8816
  ] });
@@ -8946,30 +8948,30 @@ const xh = _t(Ch), Sr = "legacy", Th = (e) => {
8946
8948
  initialOrder: R
8947
8949
  } = e, [P, V] = F(!1), [M, $] = F(!1), [H, L] = F(!1), [ee, Q] = F(!0), [G, se] = F(!0), [he, oe] = F([]), [W, j] = F(!1), [X, J] = F(
8948
8950
  I || []
8949
- ), [K, B] = F(!1), [ge, Fe] = F(!0), [ce, de] = F(), [Ae, we] = F(
8951
+ ), [K, B] = F(!1), [ge, Fe] = F(!0), [de, ue] = F(), [Ae, we] = F(
8950
8952
  Du(
8951
8953
  I || [],
8952
8954
  n.fields
8953
8955
  )
8954
- ), [Ye, Te] = F(0), [ae, Ee] = F(void 0), [Ce, je] = F(), [He, Ie] = F(Sr), [le, De] = F(
8956
+ ), [Ye, Ie] = F(0), [ae, Ee] = F(void 0), [Ce, Be] = F(), [Ue, xe] = F(Sr), [le, De] = F(
8955
8957
  R
8956
- ), [Pe, ke] = F(
8958
+ ), [Ne, Pe] = F(
8957
8959
  O !== void 0 ? O : Ct
8958
- ), [ve, ue] = F(r), [We, be] = F(
8960
+ ), [ve, ce] = F(r), [Me, be] = F(
8959
8961
  S || 1
8960
8962
  );
8961
8963
  ie(() => {
8962
8964
  f && f.length > 0 && !h && (m == null || m(0), p == null || p(f[0].id));
8963
8965
  }, [f]), ie(() => {
8964
- ke(O !== void 0 ? O : Ct);
8966
+ Pe(O !== void 0 ? O : Ct);
8965
8967
  }, [O]), ie(() => {
8966
- a.length === 1 ? de(a[0]) : a.length > 1 && de(
8968
+ a.length === 1 ? ue(a[0]) : a.length > 1 && ue(
8967
8969
  a.filter(
8968
8970
  (ze) => ze.view_id !== n.view_id
8969
8971
  )[0]
8970
8972
  );
8971
8973
  }, [a]), ie(() => {
8972
- (ce == null ? void 0 : ce.view_id) === n.view_id && a.length > 1 && de(
8974
+ (de == null ? void 0 : de.view_id) === n.view_id && a.length > 1 && ue(
8973
8975
  a.filter(
8974
8976
  (ze) => ze.view_id !== n.view_id
8975
8977
  )[0]
@@ -9026,26 +9028,26 @@ const xh = _t(Ch), Sr = "legacy", Th = (e) => {
9026
9028
  setSearchTreeNameSearch: w,
9027
9029
  setGraphIsLoading: Fe,
9028
9030
  graphIsLoading: ge,
9029
- previousView: ce,
9030
- setPreviousView: de,
9031
+ previousView: de,
9032
+ setPreviousView: ue,
9031
9033
  goToResourceId: T,
9032
9034
  searchValues: Ae,
9033
9035
  setSearchValues: we,
9034
- limit: Pe,
9035
- setLimit: ke,
9036
- setTitle: ue,
9036
+ limit: Ne,
9037
+ setLimit: Pe,
9038
+ setTitle: ce,
9037
9039
  isActive: D,
9038
- setTreeFirstVisibleRow: Te,
9040
+ setTreeFirstVisibleRow: Ie,
9039
9041
  treeFirstVisibleRow: Ye,
9040
9042
  treeFirstVisibleColumn: ae,
9041
9043
  setTreeFirstVisibleColumn: Ee,
9042
9044
  searchQuery: Ce,
9043
- setSearchQuery: je,
9044
- treeType: He,
9045
- setTreeType: Ie,
9045
+ setSearchQuery: Be,
9046
+ treeType: Ue,
9047
+ setTreeType: xe,
9046
9048
  order: le,
9047
9049
  setOrder: De,
9048
- currentPage: We,
9050
+ currentPage: Me,
9049
9051
  setCurrentPage: be
9050
9052
  },
9051
9053
  children: t
@@ -9391,7 +9393,7 @@ const xh = _t(Ch), Sr = "legacy", Th = (e) => {
9391
9393
  );
9392
9394
  }, { useToken: Eh } = Je, Dh = (e) => {
9393
9395
  const { ooui: t } = e, n = t.actionId !== void 0;
9394
- return /* @__PURE__ */ i(Ne, { ooui: t, children: n ? /* @__PURE__ */ i(fr, { children: /* @__PURE__ */ i(kh, { ooui: t }) }) : /* @__PURE__ */ i(Ph, { ooui: t }) });
9396
+ return /* @__PURE__ */ i(Ve, { ooui: t, children: n ? /* @__PURE__ */ i(fr, { children: /* @__PURE__ */ i(kh, { ooui: t }) }) : /* @__PURE__ */ i(Ph, { ooui: t }) });
9395
9397
  }, Ph = (e) => {
9396
9398
  var u;
9397
9399
  const { token: t } = Eh(), { ooui: n, value: r } = e, { locale: o } = me(), a = /* @__PURE__ */ k(te, { children: [
@@ -9496,7 +9498,7 @@ const xh = _t(Ch), Sr = "legacy", Th = (e) => {
9496
9498
  }
9497
9499
  `, Nh = (e) => {
9498
9500
  const { ooui: t } = e;
9499
- return /* @__PURE__ */ i(Ne, { type: "array", ...e, children: /* @__PURE__ */ i($h, { ooui: t }) });
9501
+ return /* @__PURE__ */ i(Ve, { type: "array", ...e, children: /* @__PURE__ */ i($h, { ooui: t }) });
9500
9502
  }, $h = (e) => {
9501
9503
  const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, a = o.filter((_) => _.operation !== "pendingRemove").map((_) => _.id), [s, l] = F([]), [c, u] = F(), [p, d] = F(!1), { relation: f, context: h, readOnly: m, field: g } = n, y = re(Ke), { getContext: v } = y || {};
9502
9504
  jt(() => {
@@ -9869,25 +9871,25 @@ function eg(e, t) {
9869
9871
  forcedValues: _ = {},
9870
9872
  parentWidth: w,
9871
9873
  onMustRefreshParent: T
9872
- } = e, { t: O } = me(), [D, I] = F(!1), [S, R] = F(), [P, V] = F(), [M] = Et.useForm(), [$, H] = F(), [L, ee] = F(), Q = re(il), [G, se] = F(), [he, oe] = F(!1), W = U(), j = U({}), X = U({}), J = U(!1), K = U(!1), B = U(!1), Fe = (w !== void 0 ? w : G) < Zh, ce = re(Ke), { activeId: de, getPlainValues: Ae } = ce || {}, we = U(!1), Ye = re(
9874
+ } = e, { t: O } = me(), [D, I] = F(!1), [S, R] = F(), [P, V] = F(), [M] = Et.useForm(), [$, H] = F(), [L, ee] = F(), Q = re(il), [G, se] = F(), [he, oe] = F(!1), W = U(), j = U({}), X = U({}), J = U(!1), K = U(!1), B = U(!1), Fe = (w !== void 0 ? w : G) < Zh, de = re(Ke), { activeId: ue, getPlainValues: Ae } = de || {}, we = U(!1), Ye = re(
9873
9875
  wt
9874
9876
  ), {
9875
- setFormIsSaving: Te = void 0,
9877
+ setFormIsSaving: Ie = void 0,
9876
9878
  setFormHasChanges: ae = void 0,
9877
9879
  setCurrentId: Ee = void 0,
9878
9880
  setFormIsLoading: Ce = void 0,
9879
- setAttachments: je = void 0,
9880
- title: He = void 0,
9881
- setTitle: Ie = void 0,
9881
+ setAttachments: Be = void 0,
9882
+ title: Ue = void 0,
9883
+ setTitle: xe = void 0,
9882
9884
  isActive: le = void 0
9883
9885
  } = (C ? Ye : {}) || {}, De = re(
9884
9886
  Dn
9885
- ), { processAction: Pe, globalValues: ke } = De || {};
9887
+ ), { processAction: Ne, globalValues: Pe } = De || {};
9886
9888
  Dt(t, () => ({
9887
9889
  submitForm: Z,
9888
9890
  getFields: ne,
9889
9891
  getValues: fe,
9890
- getPlainValues: Be,
9892
+ getPlainValues: He,
9891
9893
  getContext: $e,
9892
9894
  fetchValues: Tt,
9893
9895
  cancelUnsavedChanges: fn,
@@ -9908,11 +9910,11 @@ function eg(e, t) {
9908
9910
  }), oe(!1));
9909
9911
  }, [he]);
9910
9912
  const ve = (Y, q, pe, ye) => {
9911
- ae == null || ae(!1), Te == null || Te(!1), a == null || a(Y, q, pe, ye), Ee == null || Ee(Y), we.current && (T == null || T());
9912
- }, ue = () => {
9913
- we.current && (T == null || T()), Te == null || Te(!1), o == null || o();
9914
- }, We = (Y) => {
9915
- Te == null || Te(!1), u == null || u(Y);
9913
+ ae == null || ae(!1), Ie == null || Ie(!1), a == null || a(Y, q, pe, ye), Ee == null || Ee(Y), we.current && (T == null || T());
9914
+ }, ce = () => {
9915
+ we.current && (T == null || T()), Ie == null || Ie(!1), o == null || o();
9916
+ }, Me = (Y) => {
9917
+ Ie == null || Ie(!1), u == null || u(Y);
9916
9918
  }, be = E(() => r || W.current, [r]), [Qe, ze] = F(() => W.current);
9917
9919
  ie(() => {
9918
9920
  W.current !== Qe && ze(W.current);
@@ -9923,23 +9925,23 @@ function eg(e, t) {
9923
9925
  }
9924
9926
  function fe() {
9925
9927
  const Y = {
9926
- ...xe(L),
9928
+ ...Te(L),
9927
9929
  ...pt()
9928
9930
  };
9929
9931
  for (const q in Y)
9930
9932
  Y[q] === void 0 && delete Y[q];
9931
9933
  return Y;
9932
9934
  }
9933
- function Be() {
9935
+ function He() {
9934
9936
  const Y = fe(), q = ne(), pe = {};
9935
9937
  return Object.keys(Y).forEach((ye) => {
9936
- const Ve = Y[ye];
9937
- q[ye] && q[ye].type === "many2one" && Ve && Array.isArray(Ve) && Ve.length === 2 ? pe[ye] = Ve[0] : q[ye] && (q[ye].type === "one2many" || q[ye].type === "many2many") && Ve && Ve.items ? pe[ye] = Ve.items.filter((lt) => lt.operation !== "pendingRemove").map((lt) => lt.id) : pe[ye] = Ve;
9938
+ const ke = Y[ye];
9939
+ q[ye] && q[ye].type === "many2one" && ke && Array.isArray(ke) && ke.length === 2 ? pe[ye] = ke[0] : q[ye] && (q[ye].type === "one2many" || q[ye].type === "many2many") && ke && ke.items ? pe[ye] = ke.items.filter((lt) => lt.operation !== "pendingRemove").map((lt) => lt.id) : pe[ye] = ke;
9938
9940
  }), pe;
9939
9941
  }
9940
9942
  function _e() {
9941
9943
  const Y = {
9942
- ...xe(L)
9944
+ ...Te(L)
9943
9945
  };
9944
9946
  for (const q in Y)
9945
9947
  Y[q] === void 0 && delete Y[q];
@@ -9948,16 +9950,16 @@ function eg(e, t) {
9948
9950
  function $e() {
9949
9951
  return { ...v, ...P == null ? void 0 : P.context };
9950
9952
  }
9951
- function Ue() {
9953
+ function We() {
9952
9954
  return be() ? { active_id: be(), active_ids: [be()] } : {};
9953
9955
  }
9954
9956
  const pt = E(() => ({
9955
9957
  id: be(),
9956
9958
  active_id: be(),
9957
9959
  active_ids: [be()],
9958
- parent_id: de,
9959
- ...ke
9960
- }), [be, de, ke]), Pt = async (Y) => {
9960
+ parent_id: ue,
9961
+ ...Pe
9962
+ }), [be, ue, Pe]), Pt = async (Y) => {
9961
9963
  const q = be() ? P == null ? void 0 : P.context : {};
9962
9964
  return await N.getHandler().defaultGet({
9963
9965
  model: n,
@@ -9968,10 +9970,10 @@ function eg(e, t) {
9968
9970
  }, yt = () => Object.keys(
9969
9971
  Gr({
9970
9972
  source: j.current,
9971
- target: xe(L),
9973
+ target: Te(L),
9972
9974
  fields: L
9973
9975
  })
9974
- ).length !== 0, xe = E(
9976
+ ).length !== 0, Te = E(
9975
9977
  (Y) => {
9976
9978
  const q = M.getFieldsValue(!0);
9977
9979
  return gn(q, Y);
@@ -10008,26 +10010,26 @@ function eg(e, t) {
10008
10010
  R(q != null && q.message ? q.message + q.stack : q), Ce == null || Ce(!1);
10009
10011
  }
10010
10012
  }, Tt = async (Y) => {
10011
- let q, pe, ye, Ve;
10012
- Ce == null || Ce(!0), R(void 0), Y != null && Y.fields ? (pe = Y.fields, ye = Y.arch) : (pe = L, ye = $), h && (Y == null ? void 0 : Y.forceRefresh) !== !0 ? q = h : { values: q, defaultGetCalled: Ve } = await Se({
10013
+ let q, pe, ye, ke;
10014
+ Ce == null || Ce(!0), R(void 0), Y != null && Y.fields ? (pe = Y.fields, ye = Y.arch) : (pe = L, ye = $), h && (Y == null ? void 0 : Y.forceRefresh) !== !0 ? q = h : { values: q, defaultGetCalled: ke } = await Se({
10013
10015
  fields: pe,
10014
10016
  arch: ye
10015
10017
  }), b && (q = { ...Xd(b), ...q }), j.current = gn(q, pe), Vt({
10016
10018
  values: q,
10017
10019
  fields: pe,
10018
10020
  reset: !0,
10019
- isDefaultGet: Ve
10020
- }), Xe({ fields: pe, arch: ye, values: q }), Ce == null || Ce(!1), ae == null || ae(!1), Ve && oe(!0);
10021
+ isDefaultGet: ke
10022
+ }), Xe({ fields: pe, arch: ye, values: q }), Ce == null || Ce(!1), ae == null || ae(!1), ke && oe(!0);
10021
10023
  }, fn = async () => new Promise(async (Y) => {
10022
10024
  yt() ? En({
10023
10025
  t: O,
10024
10026
  onOk: () => {
10025
- ue == null || ue(), Y(!0);
10027
+ ce == null || ce(), Y(!0);
10026
10028
  },
10027
10029
  onCancel: () => {
10028
10030
  Y(!1);
10029
10031
  }
10030
- }) : (ue == null || ue(), Y(!0));
10032
+ }) : (ce == null || ce(), Y(!0));
10031
10033
  }), $n = async () => {
10032
10034
  if (l) {
10033
10035
  const Y = await N.getHandler().getActionStringForModel(n);
@@ -10062,7 +10064,7 @@ function eg(e, t) {
10062
10064
  }) => {
10063
10065
  let pe = {}, ye = !1;
10064
10066
  if (be()) {
10065
- const Ve = P || Oe({
10067
+ const ke = P || Oe({
10066
10068
  arch: q,
10067
10069
  fields: Y,
10068
10070
  values: {}
@@ -10070,7 +10072,7 @@ function eg(e, t) {
10070
10072
  if (pe = (await N.getHandler().readObjects({
10071
10073
  model: n,
10072
10074
  ids: [be()],
10073
- fields: Jh(Y, Ve == null ? void 0 : Ve.contextForFields),
10075
+ fields: Jh(Y, ke == null ? void 0 : ke.contextForFields),
10074
10076
  context: v
10075
10077
  }))[0], y)
10076
10078
  return { values: pe, defaultGetCalled: ye };
@@ -10083,16 +10085,16 @@ function eg(e, t) {
10083
10085
  context: $e(),
10084
10086
  model: "ir.attachment"
10085
10087
  });
10086
- je == null || je(lt);
10088
+ Be == null || Be(lt);
10087
10089
  } else
10088
- je == null || je([]), pe = await Pt(Y), ye = !0;
10090
+ Be == null || Be([]), pe = await Pt(Y), ye = !0;
10089
10091
  return { values: pe, defaultGetCalled: ye };
10090
10092
  }, Le = async (Y) => {
10091
10093
  const { callOnSubmitSucceed: q = !0 } = Y || {};
10092
10094
  if (be()) {
10093
10095
  const pe = Gr({
10094
10096
  source: j.current,
10095
- target: xe(L),
10097
+ target: Te(L),
10096
10098
  fields: L
10097
10099
  });
10098
10100
  await N.getHandler().update({
@@ -10104,9 +10106,9 @@ function eg(e, t) {
10104
10106
  ...v,
10105
10107
  ...P == null ? void 0 : P.context
10106
10108
  }
10107
- }), j.current = xe(L);
10109
+ }), j.current = Te(L);
10108
10110
  } else {
10109
- const pe = xe(L), ye = await N.getHandler().create({
10111
+ const pe = Te(L), ye = await N.getHandler().create({
10110
10112
  model: n,
10111
10113
  values: { ...pe, ..._ },
10112
10114
  fields: L,
@@ -10135,16 +10137,16 @@ function eg(e, t) {
10135
10137
  return d && (W.current = void 0, Vt({ values: {}, fields: L, reset: !0 })), { succeed: !0, id: ye };
10136
10138
  }
10137
10139
  if (!yt() && be() && pe)
10138
- return K.current = !1, ae == null || ae(!1), ue == null || ue(), { succeed: !0, id: be() };
10140
+ return K.current = !1, ae == null || ae(!1), ce == null || ce(), { succeed: !0, id: be() };
10139
10141
  if (await Yt())
10140
10142
  return K.current = !1, os(O), { succeed: !1, id: be() };
10141
- I(!0), Te == null || Te(!0);
10143
+ I(!0), Ie == null || Ie(!0);
10142
10144
  try {
10143
10145
  f === "api" ? await Le(Y) : await Ze(Y), d && (W.current = void 0, Vt({ values: {}, fields: L, reset: !0 })), await Tt({ forceRefresh: !0 }), q = !0, Ln.success(O("savedRegisters"));
10144
10146
  } catch (ye) {
10145
- K.current = !1, I(!1), Te == null || Te(!1), We == null || We(ye), Ln.error(O("errorWhileSavingForm")), R(ye != null && ye.message ? ye.message : ye);
10147
+ K.current = !1, I(!1), Ie == null || Ie(!1), Me == null || Me(ye), Ln.error(O("errorWhileSavingForm")), R(ye != null && ye.message ? ye.message : ye);
10146
10148
  } finally {
10147
- K.current = !1, Te == null || Te(!1), I(!1);
10149
+ K.current = !1, Ie == null || Ie(!1), I(!1);
10148
10150
  }
10149
10151
  return { succeed: q, id: be() };
10150
10152
  }, Oe = E(
@@ -10154,8 +10156,8 @@ function eg(e, t) {
10154
10156
  values: pe,
10155
10157
  operationInProgress: ye = !1
10156
10158
  }) => {
10157
- const Ve = new Ss(Y);
10158
- return Ve.parse(q, {
10159
+ const ke = new Ss(Y);
10160
+ return ke.parse(q, {
10159
10161
  readOnly: p || ye,
10160
10162
  values: Bd(
10161
10163
  {
@@ -10164,7 +10166,7 @@ function eg(e, t) {
10164
10166
  },
10165
10167
  Y
10166
10168
  )
10167
- }), Ve;
10169
+ }), ke;
10168
10170
  },
10169
10171
  [pt, p]
10170
10172
  ), Xe = E(
@@ -10175,15 +10177,15 @@ function eg(e, t) {
10175
10177
  operationInProgress: ye = !1
10176
10178
  }) => {
10177
10179
  var lt;
10178
- const Ve = Oe({
10180
+ const ke = Oe({
10179
10181
  arch: q,
10180
10182
  fields: Y,
10181
10183
  values: pe,
10182
10184
  operationInProgress: ye
10183
10185
  });
10184
- V(Ve), Ve.string && Ve.string !== He && (Ie == null || Ie(Ve.string)), Q && Ve.string && ((lt = Q.setTitle) == null || lt.call(Q, Ve.string));
10186
+ V(ke), ke.string && ke.string !== Ue && (xe == null || xe(ke.string)), Q && ke.string && ((lt = Q.setTitle) == null || lt.call(Q, ke.string));
10185
10187
  },
10186
- [Q, Oe, Ie, He]
10188
+ [Q, Oe, xe, Ue]
10187
10189
  ), it = async ({
10188
10190
  elementHasLostFocus: Y = !1
10189
10191
  }) => {
@@ -10191,7 +10193,7 @@ function eg(e, t) {
10191
10193
  return;
10192
10194
  const q = Gr({
10193
10195
  source: X.current,
10194
- target: xe(L),
10196
+ target: Te(L),
10195
10197
  fields: L
10196
10198
  }), pe = Object.keys(q);
10197
10199
  if (pe.length !== 0 && !(Jd({
@@ -10227,13 +10229,13 @@ function eg(e, t) {
10227
10229
  Xe({
10228
10230
  fields: L,
10229
10231
  arch: $,
10230
- values: xe(L)
10232
+ values: Te(L)
10231
10233
  });
10232
10234
  return;
10233
10235
  }
10234
10236
  const pe = Zd({
10235
10237
  values: {
10236
- ...xe(L),
10238
+ ...Te(L),
10237
10239
  context: {
10238
10240
  ...v,
10239
10241
  ...P == null ? void 0 : P.context
@@ -10249,11 +10251,11 @@ function eg(e, t) {
10249
10251
  fields: L
10250
10252
  });
10251
10253
  if (ye.value) {
10252
- const Ve = {
10253
- ...xe(L),
10254
+ const ke = {
10255
+ ...Te(L),
10254
10256
  ...ye.value
10255
10257
  }, lt = Hd({
10256
- values: Ve,
10258
+ values: ke,
10257
10259
  fields: L
10258
10260
  });
10259
10261
  Xe({
@@ -10267,21 +10269,21 @@ function eg(e, t) {
10267
10269
  });
10268
10270
  }
10269
10271
  if (ye.warning && ye.warning.title && ye.warning.message && !J.current) {
10270
- const { title: Ve, message: lt } = ye.warning;
10271
- J.current = !0, Kh(Ve, lt, () => {
10272
+ const { title: ke, message: lt } = ye.warning;
10273
+ J.current = !0, Kh(ke, lt, () => {
10272
10274
  J.current = !1;
10273
10275
  });
10274
10276
  }
10275
10277
  if (ye.domain && Object.keys(ye.domain).length > 0) {
10276
- const Ve = Qd({
10278
+ const ke = Qd({
10277
10279
  fieldsDomain: ye.domain,
10278
10280
  fields: L
10279
10281
  });
10280
10282
  Xe({
10281
- fields: Ve,
10283
+ fields: ke,
10282
10284
  arch: $,
10283
- values: xe(Ve)
10284
- }), ee(Ve);
10285
+ values: Te(ke)
10286
+ }), ee(ke);
10285
10287
  }
10286
10288
  };
10287
10289
  async function or({
@@ -10338,7 +10340,7 @@ function eg(e, t) {
10338
10340
  actionData: Y,
10339
10341
  context: q
10340
10342
  }) {
10341
- const { closeParent: pe } = await (Pe == null ? void 0 : Pe({
10343
+ const { closeParent: pe } = await (Ne == null ? void 0 : Ne({
10342
10344
  actionData: Y,
10343
10345
  fields: L,
10344
10346
  values: fe(),
@@ -10360,7 +10362,7 @@ function eg(e, t) {
10360
10362
  Xe({
10361
10363
  fields: L,
10362
10364
  arch: $,
10363
- values: xe(L),
10365
+ values: Te(L),
10364
10366
  operationInProgress: Y
10365
10367
  });
10366
10368
  }
@@ -10368,7 +10370,7 @@ function eg(e, t) {
10368
10370
  (Y) => {
10369
10371
  if (!$)
10370
10372
  return;
10371
- const q = { ...xe(L), ...Y };
10373
+ const q = { ...Te(L), ...Y };
10372
10374
  j.current = {
10373
10375
  ...j.current,
10374
10376
  ...Y
@@ -10378,7 +10380,7 @@ function eg(e, t) {
10378
10380
  reset: !1
10379
10381
  });
10380
10382
  },
10381
- [$, Vt, L, xe, Xe]
10383
+ [$, Vt, L, Te, Xe]
10382
10384
  );
10383
10385
  Xh({
10384
10386
  model: n,
@@ -10395,7 +10397,7 @@ function eg(e, t) {
10395
10397
  context: pe
10396
10398
  }) {
10397
10399
  if (Y === "cancel") {
10398
- ue == null || ue();
10400
+ ce == null || ce();
10399
10401
  return;
10400
10402
  }
10401
10403
  if (await Yt()) {
@@ -10405,17 +10407,17 @@ function eg(e, t) {
10405
10407
  let ye = !1;
10406
10408
  try {
10407
10409
  !p && (yt() || be() === void 0) && (ye = !0, mn(!0), f === "2many" ? (await Le({ callOnSubmitSucceed: !1 }), B.current = !0) : await Z({ callOnSubmitSucceed: !1 }));
10408
- const Ve = B.current ? Ue() : {}, lt = { ...pe, ...Ve };
10410
+ const ke = B.current ? We() : {}, lt = { ...pe, ...ke };
10409
10411
  Y === "object" ? await or({ action: q, context: lt }) : Y === "workflow" ? await ir({ action: q }) : Y === "action" && await sr({ action: q, context: lt }), ye && mn(!1);
10410
- } catch (Ve) {
10411
- ye && mn(!1), vt(Ve);
10412
+ } catch (ke) {
10413
+ ye && mn(!1), vt(ke);
10412
10414
  }
10413
10415
  }
10414
10416
  const xl = () => !P && !S ? /* @__PURE__ */ i(tt, {}) : !n && !m || !A ? null : /* @__PURE__ */ i(te, { children: /* @__PURE__ */ i(
10415
10417
  zc,
10416
10418
  {
10417
10419
  getValues: fe,
10418
- getPlainValues: Be,
10420
+ getPlainValues: He,
10419
10421
  getFields: ne,
10420
10422
  domain: b,
10421
10423
  activeId: r,
@@ -10696,7 +10698,7 @@ const kn = _t(eg), Vn = (e) => {
10696
10698
  ] });
10697
10699
  }, { defaultAlgorithm: tg, defaultSeed: ng } = Je, sl = tg(ng), rg = (e) => {
10698
10700
  const { ooui: t } = e, { required: n } = t;
10699
- return /* @__PURE__ */ i(Ne, { required: n, type: "array", validator: async (o, a) => {
10701
+ return /* @__PURE__ */ i(Ve, { required: n, type: "array", validator: async (o, a) => {
10700
10702
  if (!a)
10701
10703
  throw new Error();
10702
10704
  if (!Array.isArray(a))
@@ -11398,27 +11400,27 @@ const fg = (e) => {
11398
11400
  Fe();
11399
11401
  }, [a, s]);
11400
11402
  const Fe = E(() => {
11401
- (s === "form" && a.some((ne) => !ne.values) || s === "tree" && a.some((ne) => !ne.treeValues)) && de();
11403
+ (s === "form" && a.some((ne) => !ne.values) || s === "tree" && a.some((ne) => !ne.treeValues)) && ue();
11402
11404
  }, [a, s]);
11403
11405
  ie(() => {
11404
11406
  we();
11405
11407
  }, [g]);
11406
- const ce = (ne) => {
11407
- var fe, Be;
11408
+ const de = (ne) => {
11409
+ var fe, He;
11408
11410
  n == null || n({
11409
- fields: ((fe = o.get("form")) == null ? void 0 : fe.fields) || ((Be = o.get("tree")) == null ? void 0 : Be.fields),
11411
+ fields: ((fe = o.get("form")) == null ? void 0 : fe.fields) || ((He = o.get("tree")) == null ? void 0 : He.fields),
11410
11412
  items: ug(ne)
11411
11413
  });
11412
- }, de = async () => {
11414
+ }, ue = async () => {
11413
11415
  await Ae(), c > B.length - 1 && c !== 0 && u(0);
11414
11416
  }, Ae = async (ne) => {
11415
- var fe, Be, _e;
11417
+ var fe, He, _e;
11416
11418
  x(!0), A(!1), w(void 0);
11417
11419
  try {
11418
- const [$e, Ue] = await No({
11420
+ const [$e, We] = await No({
11419
11421
  treeView: {
11420
11422
  arch: (fe = o.get("tree")) == null ? void 0 : fe.arch,
11421
- fields: (Be = o.get("tree")) == null ? void 0 : Be.fields
11423
+ fields: (He = o.get("tree")) == null ? void 0 : He.fields
11422
11424
  },
11423
11425
  formView: {
11424
11426
  fields: ((_e = o.get("form")) == null ? void 0 : _e.fields) || {}
@@ -11428,7 +11430,7 @@ const fg = (e) => {
11428
11430
  context: { ...m == null ? void 0 : m(), ...j },
11429
11431
  currentView: ne || s
11430
11432
  });
11431
- return Q.current || (Q.current = $e.map((pt) => pt.id)), (s || ne) === "tree" && Ue && se(Ue), ce($e), $e;
11433
+ return Q.current || (Q.current = $e.map((pt) => pt.id)), (s || ne) === "tree" && We && se(We), de($e), $e;
11432
11434
  } catch ($e) {
11433
11435
  w($e);
11434
11436
  } finally {
@@ -11456,7 +11458,7 @@ const fg = (e) => {
11456
11458
  s === "form" ? Ce(() => {
11457
11459
  l(fe);
11458
11460
  }) : l(fe);
11459
- }, Te = () => {
11461
+ }, Ie = () => {
11460
11462
  c > 0 && (s === "form" ? Ce(() => {
11461
11463
  u(c - 1);
11462
11464
  }) : u(c - 1));
@@ -11471,7 +11473,7 @@ const fg = (e) => {
11471
11473
  ids: [ne],
11472
11474
  fields: o.get("form").fields,
11473
11475
  context: { ...m == null ? void 0 : m(), ...j }
11474
- }))[0], Be = (await N.getHandler().readObjects({
11476
+ }))[0], He = (await N.getHandler().readObjects({
11475
11477
  model: W,
11476
11478
  ids: [ne],
11477
11479
  fields: o.get("tree").fields,
@@ -11480,9 +11482,9 @@ const fg = (e) => {
11480
11482
  ...$e,
11481
11483
  operation: "original",
11482
11484
  values: fe,
11483
- treeValues: Be
11485
+ treeValues: He
11484
11486
  } : $e);
11485
- ce(_e);
11487
+ de(_e);
11486
11488
  }, Ce = (ne) => {
11487
11489
  b ? En({
11488
11490
  t: v,
@@ -11490,7 +11492,7 @@ const fg = (e) => {
11490
11492
  Ee(), ne(), A(!1);
11491
11493
  }
11492
11494
  }) : ne();
11493
- }, je = () => {
11495
+ }, Be = () => {
11494
11496
  if (J) {
11495
11497
  dl({
11496
11498
  t: v,
@@ -11506,13 +11508,13 @@ const fg = (e) => {
11506
11508
  s === "form" ? le() : De();
11507
11509
  }
11508
11510
  });
11509
- }, He = async () => {
11511
+ }, Ue = async () => {
11510
11512
  const { inv_field: ne } = r;
11511
11513
  let fe;
11512
11514
  ne && d && (fe = { [ne]: d }), s === "form" ? Ce(() => {
11513
11515
  $(!0), R({ defaultValues: fe }), O(!0);
11514
11516
  }) : ($(!0), R({ defaultValues: fe }), O(!0));
11515
- }, Ie = async () => {
11517
+ }, xe = async () => {
11516
11518
  s === "form" ? Ce(() => {
11517
11519
  I(!0);
11518
11520
  }) : I(!0);
@@ -11524,9 +11526,9 @@ const fg = (e) => {
11524
11526
  ...fe,
11525
11527
  operation: "pendingRemove"
11526
11528
  } : fe);
11527
- ce(ne);
11529
+ de(ne);
11528
11530
  } else
11529
- ce(
11531
+ de(
11530
11532
  a.filter((ne) => ne.id !== B[c].id)
11531
11533
  );
11532
11534
  } catch (ne) {
@@ -11537,57 +11539,57 @@ const fg = (e) => {
11537
11539
  const ne = B.filter((fe) => P.includes(fe.id));
11538
11540
  x(!0), A(!1), w(void 0);
11539
11541
  try {
11540
- const fe = ne.map((_e) => _e.id), Be = a.filter((_e) => !(fe.includes(_e.id) && _e.id < 0)).map((_e) => fe.includes(_e.id) ? {
11542
+ const fe = ne.map((_e) => _e.id), He = a.filter((_e) => !(fe.includes(_e.id) && _e.id < 0)).map((_e) => fe.includes(_e.id) ? {
11541
11543
  ..._e,
11542
11544
  operation: "pendingRemove"
11543
11545
  } : _e);
11544
- ce(Be);
11546
+ de(He);
11545
11547
  } catch (fe) {
11546
11548
  w(fe);
11547
11549
  }
11548
11550
  u(0), x(!1);
11549
- }, Pe = (ne, fe, Be, _e = !1) => {
11551
+ }, Ne = (ne, fe, He, _e = !1) => {
11550
11552
  let $e;
11551
11553
  if (_e)
11552
11554
  $e = a.concat({
11553
11555
  id: ne,
11554
11556
  operation: "pendingLink",
11555
- values: { ...Be, id: ne },
11556
- treeValues: { ...Be, id: ne }
11557
+ values: { ...He, id: ne },
11558
+ treeValues: { ...He, id: ne }
11557
11559
  });
11558
11560
  else if (ne)
11559
- $e = a.map((Ue) => Ue.id === ne ? {
11561
+ $e = a.map((We) => We.id === ne ? {
11560
11562
  id: ne,
11561
11563
  operation: ne > 0 ? "pendingUpdate" : "pendingCreate",
11562
- values: { ...Be, id: ne },
11563
- treeValues: { ...Be, id: ne }
11564
- } : Ue);
11564
+ values: { ...He, id: ne },
11565
+ treeValues: { ...He, id: ne }
11566
+ } : We);
11565
11567
  else {
11566
- const Ue = Qs(a);
11568
+ const We = Qs(a);
11567
11569
  $e = a.concat({
11568
- id: Ue,
11570
+ id: We,
11569
11571
  operation: "pendingCreate",
11570
- values: { ...Be, id: Ue },
11571
- treeValues: { ...Be, id: Ue }
11572
+ values: { ...He, id: We },
11573
+ treeValues: { ...He, id: We }
11572
11574
  });
11573
11575
  }
11574
- ce($e), M || O(!1);
11575
- }, ke = async (ne) => {
11576
+ de($e), M || O(!1);
11577
+ }, Pe = async (ne) => {
11576
11578
  const { id: fe } = ne;
11577
- let Be = a;
11579
+ let He = a;
11578
11580
  const _e = a.find(($e) => $e.id === fe);
11579
- (_e == null ? void 0 : _e.values) === void 0 && (Be = await Ae("form")), R(Be.find(($e) => $e.id === fe)), $(!1), O(!0);
11581
+ (_e == null ? void 0 : _e.values) === void 0 && (He = await Ae("form")), R(He.find(($e) => $e.id === fe)), $(!1), O(!0);
11580
11582
  }, ve = async (ne) => {
11581
11583
  x(!0);
11582
- const fe = a, Be = ne.filter((_e) => !a.find(($e) => $e.id === _e));
11584
+ const fe = a, He = ne.filter((_e) => !a.find(($e) => $e.id === _e));
11583
11585
  try {
11584
- for (const _e of Be) {
11586
+ for (const _e of He) {
11585
11587
  const $e = (await N.getHandler().readObjects({
11586
11588
  model: W,
11587
11589
  ids: [_e],
11588
11590
  fields: o.get("form").fields,
11589
11591
  context: { ...m == null ? void 0 : m(), ...j }
11590
- }))[0], Ue = (await N.getHandler().readObjects({
11592
+ }))[0], We = (await N.getHandler().readObjects({
11591
11593
  model: W,
11592
11594
  ids: [_e],
11593
11595
  fields: o.get("tree").fields,
@@ -11597,17 +11599,17 @@ const fg = (e) => {
11597
11599
  id: _e,
11598
11600
  operation: "pendingLink",
11599
11601
  values: $e,
11600
- treeValues: Ue
11602
+ treeValues: We
11601
11603
  });
11602
11604
  }
11603
- ce(fe);
11605
+ de(fe);
11604
11606
  } catch (_e) {
11605
11607
  w(_e);
11606
11608
  } finally {
11607
11609
  x(!1);
11608
11610
  }
11609
11611
  };
11610
- function ue() {
11612
+ function ce() {
11611
11613
  const ne = dg[s];
11612
11614
  if (s === "graph")
11613
11615
  return ws(o.get("graph").arch).string;
@@ -11616,10 +11618,10 @@ const fg = (e) => {
11616
11618
  return fe.parse(o.get(s).arch), fe.string;
11617
11619
  }
11618
11620
  }
11619
- const We = () => {
11620
- var fe, Be, _e, $e;
11621
+ const Me = () => {
11622
+ var fe, He, _e, $e;
11621
11623
  if (s === "form")
11622
- return B.length === 0 ? v("noCurrentEntries") : s !== ge.current && a.some((Ue) => !Ue.values) ? /* @__PURE__ */ i(tt, {}) : /* @__PURE__ */ i(
11624
+ return B.length === 0 ? v("noCurrentEntries") : s !== ge.current && a.some((We) => !We.values) ? /* @__PURE__ */ i(tt, {}) : /* @__PURE__ */ i(
11623
11625
  kn,
11624
11626
  {
11625
11627
  ref: he,
@@ -11627,30 +11629,30 @@ const fg = (e) => {
11627
11629
  values: (fe = B[c]) == null ? void 0 : fe.values,
11628
11630
  parentContext: { ...m == null ? void 0 : m(), ...j },
11629
11631
  model: W,
11630
- id: (Be = B[c]) == null ? void 0 : Be.id,
11632
+ id: (He = B[c]) == null ? void 0 : He.id,
11631
11633
  submitMode: "values",
11632
- onFieldsChange: (Ue) => {
11634
+ onFieldsChange: (We) => {
11633
11635
  var yt;
11634
- const pt = (yt = B[c]) == null ? void 0 : yt.id, Pt = a.map((xe) => xe.id === pt ? {
11635
- ...xe,
11636
- operation: xe.operation === "original" ? "pendingUpdate" : xe.operation,
11637
- values: { ...Ue, id: pt },
11638
- treeValues: { ...Ue, id: pt }
11639
- } : xe);
11640
- ce(Pt), A(!0);
11636
+ const pt = (yt = B[c]) == null ? void 0 : yt.id, Pt = a.map((Te) => Te.id === pt ? {
11637
+ ...Te,
11638
+ operation: Te.operation === "original" ? "pendingUpdate" : Te.operation,
11639
+ values: { ...We, id: pt },
11640
+ treeValues: { ...We, id: pt }
11641
+ } : Te);
11642
+ de(Pt), A(!0);
11641
11643
  },
11642
11644
  readOnly: oe
11643
11645
  }
11644
11646
  );
11645
11647
  let ne = [];
11646
- if (B.some((Ue) => Ue.treeValues) && (ne = L ? bn({
11647
- resultsToSort: B.map((Ue) => Ue.treeValues),
11648
+ if (B.some((We) => We.treeValues) && (ne = L ? bn({
11649
+ resultsToSort: B.map((We) => We.treeValues),
11648
11650
  sorter: L,
11649
11651
  fields: {
11650
11652
  ...o.get("tree").fields,
11651
11653
  ...((_e = o.get("form")) == null ? void 0 : _e.fields) || {}
11652
11654
  }
11653
- }) : B.map((Ue) => Ue.treeValues)), s === "tree")
11655
+ }) : B.map((We) => We.treeValues)), s === "tree")
11654
11656
  return /* @__PURE__ */ i(
11655
11657
  nr,
11656
11658
  {
@@ -11659,7 +11661,7 @@ const fg = (e) => {
11659
11661
  treeView: o.get("tree"),
11660
11662
  results: ne,
11661
11663
  loading: C,
11662
- onRowClicked: (($e = o.get("form")) == null ? void 0 : $e.fields) !== void 0 ? ke : void 0,
11664
+ onRowClicked: (($e = o.get("form")) == null ? void 0 : $e.fields) !== void 0 ? Pe : void 0,
11663
11665
  showPagination: !1,
11664
11666
  selectedRowKeys: P,
11665
11667
  onRowSelectionChange: V,
@@ -11672,14 +11674,14 @@ const fg = (e) => {
11672
11674
  }
11673
11675
  );
11674
11676
  if (s === "graph") {
11675
- const Ue = [[`${r.inv_field}`, "=", d]];
11677
+ const We = [[`${r.inv_field}`, "=", d]];
11676
11678
  return /* @__PURE__ */ i(
11677
11679
  Pn,
11678
11680
  {
11679
11681
  viewData: o.get("graph"),
11680
11682
  view_id: o.get("graph").view_id,
11681
11683
  model: r.relation,
11682
- domain: Ue,
11684
+ domain: We,
11683
11685
  context: { ...m == null ? void 0 : m(), ...j },
11684
11686
  limit: 0
11685
11687
  }
@@ -11696,18 +11698,18 @@ const fg = (e) => {
11696
11698
  mode: s,
11697
11699
  model: W,
11698
11700
  currentId: (Qe = B[c]) == null ? void 0 : Qe.id,
11699
- title: ue(),
11701
+ title: ce(),
11700
11702
  readOnly: oe || !1,
11701
11703
  isMany2Many: J,
11702
11704
  formHasChanges: b,
11703
11705
  totalItems: B.length,
11704
11706
  currentItemIndex: c,
11705
- onDelete: je,
11706
- onCreateItem: He,
11707
+ onDelete: Be,
11708
+ onCreateItem: Ue,
11707
11709
  onToggleViewMode: Ye,
11708
- onPreviousItem: Te,
11710
+ onPreviousItem: Ie,
11709
11711
  onNextItem: ae,
11710
- onSearchItem: Ie,
11712
+ onSearchItem: xe,
11711
11713
  selectedRowKeys: P,
11712
11714
  showCreateButton: ((ze = o.get("form")) == null ? void 0 : ze.fields) !== void 0,
11713
11715
  showToggleButton: o.size > 1,
@@ -11719,7 +11721,7 @@ const fg = (e) => {
11719
11721
  }
11720
11722
  }
11721
11723
  ),
11722
- We(),
11724
+ Me(),
11723
11725
  /* @__PURE__ */ i(
11724
11726
  Vn,
11725
11727
  {
@@ -11730,7 +11732,7 @@ const fg = (e) => {
11730
11732
  values: S == null ? void 0 : S.values,
11731
11733
  defaultValues: S == null ? void 0 : S.defaultValues,
11732
11734
  visible: T,
11733
- onSubmitSucceed: Pe,
11735
+ onSubmitSucceed: Ne,
11734
11736
  parentContext: { ...m == null ? void 0 : m(), ...j },
11735
11737
  onCancel: () => {
11736
11738
  $(!1), O(!1);
@@ -12269,7 +12271,7 @@ const bg = ({
12269
12271
  domain: a
12270
12272
  });
12271
12273
  }, Ig = ["form", "tree", "graph"], Fg = (e) => {
12272
- var Ce, je, He;
12274
+ var Ce, Be, Ue;
12273
12275
  const t = U(null), { value: n, onChange: r, ooui: o, views: a } = e, { items: s = [] } = n || {}, l = gg({ one2manyItems: s }), { currentView: c, setCurrentView: u, itemIndex: p, setItemIndex: d } = re(
12274
12276
  Nn
12275
12277
  ), {
@@ -12297,7 +12299,7 @@ const bg = ({
12297
12299
  treeView: a.get("tree"),
12298
12300
  relation: h,
12299
12301
  context: T,
12300
- allRowsIds: l.filter((Ie) => Ie.id !== void 0).map((Ie) => Ie.id),
12302
+ allRowsIds: l.filter((xe) => xe.id !== void 0).map((xe) => xe.id),
12301
12303
  gridRef: t
12302
12304
  }), [, $] = Tg({
12303
12305
  ooui: D,
@@ -12305,14 +12307,14 @@ const bg = ({
12305
12307
  items: l,
12306
12308
  selectedRowKeys: S
12307
12309
  }), H = z(() => {
12308
- const { title: Ie } = a.get(c) || {};
12309
- return Ie || o.label;
12310
+ const { title: xe } = a.get(c) || {};
12311
+ return xe || o.label;
12310
12312
  }, [c, o.label, a]), L = o.type === "many2many", ee = E(
12311
- (Ie) => {
12313
+ (xe) => {
12312
12314
  var le, De;
12313
12315
  r == null || r({
12314
12316
  fields: ((le = a.get("form")) == null ? void 0 : le.fields) || ((De = a.get("tree")) == null ? void 0 : De.fields),
12315
- items: Ie
12317
+ items: xe
12316
12318
  });
12317
12319
  },
12318
12320
  [r, a]
@@ -12351,8 +12353,8 @@ const bg = ({
12351
12353
  }), {
12352
12354
  showSearchModal: ge,
12353
12355
  onSelectSearchValues: Fe,
12354
- onCloseSearchModal: ce,
12355
- searchItem: de
12356
+ onCloseSearchModal: de,
12357
+ searchItem: ue
12356
12358
  } = wg({
12357
12359
  showFormChangesDialogIfNeeded: se,
12358
12360
  currentView: c,
@@ -12369,24 +12371,24 @@ const bg = ({
12369
12371
  selectedRowKeys: S,
12370
12372
  setSelectedRowKeys: R
12371
12373
  }), we = () => {
12372
- const Ie = Array.from(a.keys()), le = Ie[(Ie.indexOf(c) + 1) % Ie.length];
12374
+ const xe = Array.from(a.keys()), le = xe[(xe.indexOf(c) + 1) % xe.length];
12373
12375
  c === "form" ? se(() => {
12374
12376
  u(le);
12375
12377
  }) : u(le);
12376
12378
  }, Ye = At(
12377
- (Ie) => {
12379
+ (xe) => {
12378
12380
  var le;
12379
- (le = a.get("form")) != null && le.fields && B(Ie);
12381
+ (le = a.get("form")) != null && le.fields && B(xe);
12380
12382
  },
12381
12383
  // eslint-disable-next-line react-hooks/exhaustive-deps
12382
12384
  [l]
12383
- ), Te = E(() => {
12385
+ ), Ie = E(() => {
12384
12386
  p > 0 && (c === "form" ? se(() => {
12385
12387
  d(p - 1);
12386
12388
  }) : d(p - 1));
12387
12389
  }, [c, p, d, se]), ae = E(() => {
12388
- const Ie = l.length;
12389
- p < Ie - 1 && (c === "form" ? se(() => {
12390
+ const xe = l.length;
12391
+ p < xe - 1 && (c === "form" ? se(() => {
12390
12392
  d(p + 1);
12391
12393
  }) : d(p + 1));
12392
12394
  }, [
@@ -12396,8 +12398,8 @@ const bg = ({
12396
12398
  d,
12397
12399
  se
12398
12400
  ]), Ee = z(() => {
12399
- var Ie;
12400
- return ((Ie = a.get("form")) == null ? void 0 : Ie.fields) !== void 0;
12401
+ var xe;
12402
+ return ((xe = a.get("form")) == null ? void 0 : xe.fields) !== void 0;
12401
12403
  }, [a]);
12402
12404
  return /* @__PURE__ */ k(te, { children: [
12403
12405
  /* @__PURE__ */ i(
@@ -12405,7 +12407,7 @@ const bg = ({
12405
12407
  {
12406
12408
  mode: c,
12407
12409
  title: H,
12408
- currentId: (je = l[p]) == null ? void 0 : je.id,
12410
+ currentId: (Be = l[p]) == null ? void 0 : Be.id,
12409
12411
  model: h,
12410
12412
  readOnly: f || !1,
12411
12413
  isMany2Many: L,
@@ -12415,13 +12417,13 @@ const bg = ({
12415
12417
  onDelete: Ae,
12416
12418
  onCreateItem: K,
12417
12419
  onToggleViewMode: we,
12418
- onPreviousItem: Te,
12420
+ onPreviousItem: Ie,
12419
12421
  onNextItem: ae,
12420
- onSearchItem: de,
12422
+ onSearchItem: ue,
12421
12423
  selectedRowKeys: S,
12422
12424
  showCreateButton: w,
12423
12425
  showToggleButton: _,
12424
- toolbar: (He = a.get(c)) == null ? void 0 : He.toolbar,
12426
+ toolbar: (Ue = a.get(c)) == null ? void 0 : Ue.toolbar,
12425
12427
  context: { ...A == null ? void 0 : A(), ...T },
12426
12428
  formRef: x,
12427
12429
  onRefreshParentValues: () => {
@@ -12495,7 +12497,7 @@ const bg = ({
12495
12497
  context: T,
12496
12498
  visible: ge,
12497
12499
  onSelectValues: Fe,
12498
- onCloseModal: ce
12500
+ onCloseModal: de
12499
12501
  }
12500
12502
  ),
12501
12503
  c === "graph" && /* @__PURE__ */ i(
@@ -12562,7 +12564,7 @@ const bg = ({
12562
12564
  }
12563
12565
  };
12564
12566
  return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ i(tt, {}) : p ? /* @__PURE__ */ i(gt, { className: "mt-10", message: p, type: "error", banner: !0 }) : /* @__PURE__ */ i(ig, { initialView: l, children: /* @__PURE__ */ i(
12565
- Ne,
12567
+ Ve,
12566
12568
  {
12567
12569
  required: a,
12568
12570
  type: "array",
@@ -12593,7 +12595,7 @@ const bg = ({
12593
12595
  return t.infinite || n && Array.isArray(n.items) && n.items.length >= Ag ? /* @__PURE__ */ i(Fg, { ...e }) : /* @__PURE__ */ i(fg, { ...e });
12594
12596
  }, { useToken: Rg } = Je, Eg = (e) => {
12595
12597
  const { ooui: t } = e, { required: n } = t;
12596
- return /* @__PURE__ */ i(Ne, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(Dg, { ooui: t }) });
12598
+ return /* @__PURE__ */ i(Ve, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(Dg, { ooui: t }) });
12597
12599
  }, Dg = (e) => {
12598
12600
  const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: a, required: s } = t, { token: l } = Rg(), c = s && !a ? { backgroundColor: l.colorPrimaryBg } : void 0, u = U(), [p, d] = F(), f = re(Ke), { elementHasLostFocus: h } = f || {};
12599
12601
  ie(() => {
@@ -12717,7 +12719,7 @@ function Vg(e) {
12717
12719
  }
12718
12720
  const { useToken: Ng } = Je, { TextArea: vo } = ft, $g = (e) => {
12719
12721
  const { ooui: t } = e, { id: n, readOnly: r, required: o, height: a, translatable: s } = t, { token: l } = Ng(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, u = re(Ke), { elementHasLostFocus: p } = u || {};
12720
- return /* @__PURE__ */ i(Ne, { required: o, ...e, children: s ? /* @__PURE__ */ i(
12722
+ return /* @__PURE__ */ i(Ve, { required: o, ...e, children: s ? /* @__PURE__ */ i(
12721
12723
  Lg,
12722
12724
  {
12723
12725
  field: n,
@@ -13116,7 +13118,7 @@ const { useToken: Ng } = Je, { TextArea: vo } = ft, $g = (e) => {
13116
13118
  return /* @__PURE__ */ i(ya, { ooui: t, showTime: !0 });
13117
13119
  }, Qg = (e) => {
13118
13120
  const { ooui: t } = e;
13119
- return /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(Xg, { ooui: t }) });
13121
+ return /* @__PURE__ */ i(Ve, { ...e, children: /* @__PURE__ */ i(Xg, { ooui: t }) });
13120
13122
  }, Xg = (e) => /* @__PURE__ */ i(
13121
13123
  lo,
13122
13124
  {
@@ -13128,7 +13130,7 @@ const { useToken: Ng } = Je, { TextArea: vo } = ft, $g = (e) => {
13128
13130
  }
13129
13131
  ), Zg = (e) => {
13130
13132
  const { ooui: t } = e, { required: n } = t;
13131
- return /* @__PURE__ */ i(Ne, { required: n, ...e, children: /* @__PURE__ */ i(ey, { ooui: t }) });
13133
+ return /* @__PURE__ */ i(Ve, { required: n, ...e, children: /* @__PURE__ */ i(ey, { ooui: t }) });
13132
13134
  }, ey = (e) => {
13133
13135
  const { value: t, onChange: n, ooui: r } = e, { required: o, selectionValues: a, readOnly: s, domain: l } = r, c = t == null ? void 0 : t.split(","), [u, p] = F([]), [d, f] = F();
13134
13136
  return ie(() => {
@@ -13179,7 +13181,7 @@ const { useToken: Ng } = Je, { TextArea: vo } = ft, $g = (e) => {
13179
13181
  ] });
13180
13182
  }, { useToken: ty } = Je, ny = (e) => {
13181
13183
  const { ooui: t } = e, { required: n } = t;
13182
- return /* @__PURE__ */ i(Ne, { required: n, ...e, children: /* @__PURE__ */ i(ry, { ooui: t }) });
13184
+ return /* @__PURE__ */ i(Ve, { required: n, ...e, children: /* @__PURE__ */ i(ry, { ooui: t }) });
13183
13185
  }, ry = (e) => {
13184
13186
  const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: a, filenameField: s } = t, { token: l } = ty(), c = a && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = U(null), { setFieldValue: p, getFieldValue: d } = re(Ke) || {}, { t: f } = me(), h = n ? _d(n) : "", m = (A) => {
13185
13187
  r == null || r(A);
@@ -13880,7 +13882,7 @@ const ss = (e, t) => ({
13880
13882
  ] });
13881
13883
  }, dy = (e) => {
13882
13884
  const { ooui: t } = e, { required: n } = t;
13883
- return /* @__PURE__ */ i(Ne, { required: n, ...e, children: /* @__PURE__ */ i(
13885
+ return /* @__PURE__ */ i(Ve, { required: n, ...e, children: /* @__PURE__ */ i(
13884
13886
  Sl,
13885
13887
  {
13886
13888
  ooui: t,
@@ -13889,7 +13891,7 @@ const ss = (e, t) => ({
13889
13891
  ) });
13890
13892
  }, uy = (e) => {
13891
13893
  const { ooui: t } = e, { required: n } = t;
13892
- return /* @__PURE__ */ i(Ne, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(ff, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ i(
13894
+ return /* @__PURE__ */ i(Ve, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(ff, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ i(
13893
13895
  Sl,
13894
13896
  {
13895
13897
  ooui: t,
@@ -14317,7 +14319,7 @@ function wy({
14317
14319
  ...r && { res_id: r },
14318
14320
  ...o && { limit: o },
14319
14321
  ...a && a > 1 && { currentPage: a },
14320
- ...s && { order: s }
14322
+ order: s
14321
14323
  }, f = ua(d), { type: h } = u;
14322
14324
  let m = !!p;
14323
14325
  return h === "form" && (m = !!p && !!r), { shareUrl: f, canShare: m };
@@ -14359,8 +14361,8 @@ function Cy(e, t) {
14359
14361
  Ot
14360
14362
  ), {
14361
14363
  setCurrentView: Fe,
14362
- setCurrentId: ce,
14363
- tabs: de,
14364
+ setCurrentId: de,
14365
+ tabs: ue,
14364
14366
  activeKey: Ae,
14365
14367
  openAction: we,
14366
14368
  onRemoveTab: Ye
@@ -14368,13 +14370,13 @@ function Cy(e, t) {
14368
14370
  nn(
14369
14371
  "ctrl+g,command+g",
14370
14372
  () => {
14371
- je();
14373
+ Be();
14372
14374
  },
14373
14375
  { enableOnFormTags: !0, preventDefault: !0 },
14374
- [Ae, de, C, V, $]
14376
+ [Ae, ue, C, V, $]
14375
14377
  );
14376
- function Te(le) {
14377
- S(le), ce == null || ce(le);
14378
+ function Ie(le) {
14379
+ S(le), de == null || de(le);
14378
14380
  }
14379
14381
  const ae = E(
14380
14382
  (le) => {
@@ -14389,25 +14391,25 @@ function Cy(e, t) {
14389
14391
  O(!0);
14390
14392
  const le = [], De = [];
14391
14393
  for (const ve of a) {
14392
- const [ue, We] = ve;
14393
- We !== "dashboard" ? De.push({
14394
+ const [ce, Me] = ve;
14395
+ Me !== "dashboard" ? De.push({
14394
14396
  viewTuple: ve,
14395
14397
  promise: N.getHandler().getView({
14396
14398
  model: r,
14397
- type: We,
14398
- id: ue,
14399
+ type: Me,
14400
+ id: ce,
14399
14401
  context: o
14400
14402
  })
14401
14403
  }) : De.push({
14402
14404
  viewTuple: ve
14403
14405
  });
14404
14406
  }
14405
- const Pe = await by(De);
14406
- for (const ve of Pe) {
14407
+ const Ne = await by(De);
14408
+ for (const ve of Ne) {
14407
14409
  if (!ve)
14408
14410
  continue;
14409
- const [, ue] = ve.viewTuple, We = ve.info;
14410
- switch (ue) {
14411
+ const [, ce] = ve.viewTuple, Me = ve.info;
14412
+ switch (ce) {
14411
14413
  case "dashboard": {
14412
14414
  const be = a.find((ze) => {
14413
14415
  const [, St] = ze;
@@ -14434,37 +14436,37 @@ function Cy(e, t) {
14434
14436
  }
14435
14437
  case "form": {
14436
14438
  le.push({
14437
- ...We,
14438
- type: ue,
14439
+ ...Me,
14440
+ type: ce,
14439
14441
  extra: { action_id: h, action_type: m }
14440
14442
  });
14441
14443
  break;
14442
14444
  }
14443
14445
  case "tree": {
14444
14446
  le.push({
14445
- ...We,
14447
+ ...Me,
14446
14448
  isExpandable: g,
14447
- type: ue,
14449
+ type: ce,
14448
14450
  extra: { action_id: h, action_type: m }
14449
14451
  });
14450
14452
  break;
14451
14453
  }
14452
14454
  case "graph": {
14453
14455
  le.push({
14454
- ...We,
14455
- type: ue,
14456
+ ...Me,
14457
+ type: ce,
14456
14458
  extra: { action_id: h, action_type: m }
14457
14459
  });
14458
14460
  break;
14459
14461
  }
14460
14462
  }
14461
14463
  }
14462
- let ke;
14463
- !u && le.find((ve) => ve.type === "tree") ? ke = le.find(
14464
- (ue) => ue.type === "tree"
14465
- ) : u ? ke = le.find((ue) => u.id ? ue.type === u.type && ue.view_id === u.id : ue.type === u.type) : ke = le.find(
14466
- (ue) => ue.type === "form"
14467
- ), ke || (vt(
14464
+ let Pe;
14465
+ !u && le.find((ve) => ve.type === "tree") ? Pe = le.find(
14466
+ (ce) => ce.type === "tree"
14467
+ ) : u ? Pe = le.find((ce) => u.id ? ce.type === u.type && ce.view_id === u.id : ce.type === u.type) : Pe = le.find(
14468
+ (ce) => ce.type === "form"
14469
+ ), Pe || (vt(
14468
14470
  `Error determining the first view to show for model ${r}.
14469
14471
  Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`
14470
14472
  ), console.error(
@@ -14474,11 +14476,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14474
14476
  views: a,
14475
14477
  initialView: u,
14476
14478
  availableViews: le,
14477
- currentViewToAssign: ke,
14479
+ currentViewToAssign: Pe,
14478
14480
  action_id: h,
14479
14481
  action_type: m
14480
14482
  })
14481
- ), Ye == null || Ye(c)), ae(ke), w(le), O(!1);
14483
+ ), Ye == null || Ye(c)), ae(Pe), w(le), O(!1);
14482
14484
  }, [
14483
14485
  u,
14484
14486
  ae,
@@ -14493,34 +14495,34 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14493
14495
  c
14494
14496
  ]);
14495
14497
  l({ tabKey: c, canWeClose: Ce }), $t(() => {
14496
- const le = _.find((Pe) => Pe.type === "tree"), De = _.find((Pe) => u.id ? Pe.type === u.type && Pe.view_id === u.id : Pe.type === u.type);
14497
- ae(De || le), f ? ce == null || ce(D) : (Te(void 0), M(void 0)), Ee();
14498
+ const le = _.find((Ne) => Ne.type === "tree"), De = _.find((Ne) => u.id ? Ne.type === u.type && Ne.view_id === u.id : Ne.type === u.type);
14499
+ ae(De || le), f ? de == null || de(D) : (Ie(void 0), M(void 0)), Ee();
14498
14500
  }, [r, a, f]), $t(() => {
14499
14501
  if (Ae === c) {
14500
- ce == null || ce(I);
14502
+ de == null || de(I);
14501
14503
  const le = { action_id: h, action_type: m };
14502
14504
  Fe == null || Fe({ ...C, extra: le });
14503
14505
  }
14504
- }, [de, Ae]);
14506
+ }, [ue, Ae]);
14505
14507
  async function Ce() {
14506
14508
  return C && C.type === "form" ? await K.current.cancelUnsavedChanges() : !0;
14507
14509
  }
14508
- async function je() {
14510
+ async function Be() {
14509
14511
  Ae === c && (C.type === "form" && !await K.current.cancelUnsavedChanges() || he(!0));
14510
14512
  }
14511
- async function He(le, De) {
14513
+ async function Ue(le, De) {
14512
14514
  var ve;
14513
14515
  W(!0);
14514
- let Pe, ke;
14516
+ let Ne, Pe;
14515
14517
  if (le.length === 1) {
14516
- Pe = "form", ke = [];
14517
- const ue = le[0], We = $.findIndex((Qe) => Qe.id === ue);
14518
+ Ne = "form", Pe = [];
14519
+ const ce = le[0], Me = $.findIndex((Qe) => Qe.id === ce);
14518
14520
  let be;
14519
- if (We === -1) {
14521
+ if (Me === -1) {
14520
14522
  try {
14521
14523
  be = (ve = await N.getHandler().readObjects({
14522
14524
  model: r,
14523
- ids: [ue],
14525
+ ids: [ce],
14524
14526
  context: o
14525
14527
  })) == null ? void 0 : ve[0];
14526
14528
  } catch {
@@ -14530,36 +14532,36 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14530
14532
  return;
14531
14533
  }
14532
14534
  } else
14533
- be = $[We];
14535
+ be = $[Me];
14534
14536
  } else
14535
- Pe = "tree", ke = [["id", "in", le]];
14536
- if (W(!1), he(!1), De && Pe === "form") {
14537
- Te(le[0]);
14538
- const ue = _.find(
14539
- (We) => We.type === "form"
14537
+ Ne = "tree", Pe = [["id", "in", le]];
14538
+ if (W(!1), he(!1), De && Ne === "form") {
14539
+ Ie(le[0]);
14540
+ const ce = _.find(
14541
+ (Me) => Me.type === "form"
14540
14542
  );
14541
- ae(ue);
14543
+ ae(ce);
14542
14544
  } else {
14543
- const ue = a.find((We) => We[1] === Pe);
14545
+ const ce = a.find((Me) => Me[1] === Ne);
14544
14546
  we({
14545
- domain: ke,
14547
+ domain: Pe,
14546
14548
  context: o,
14547
14549
  model: r,
14548
14550
  views: a,
14549
14551
  title: s,
14550
14552
  target: "current",
14551
- initialView: { id: ue == null ? void 0 : ue[0], type: Pe },
14553
+ initialView: { id: ce == null ? void 0 : ce[0], type: Ne },
14552
14554
  action_id: h,
14553
14555
  action_type: m,
14554
14556
  res_id: le[0]
14555
14557
  });
14556
14558
  }
14557
14559
  }
14558
- function Ie() {
14560
+ function xe() {
14559
14561
  if (I === void 0 && C.type === "form")
14560
14562
  K.current.clearAndReload();
14561
14563
  else {
14562
- Te(void 0);
14564
+ Ie(void 0);
14563
14565
  const le = _.find(
14564
14566
  (De) => De.type === "form"
14565
14567
  );
@@ -14575,9 +14577,9 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14575
14577
  availableViews: _,
14576
14578
  formRef: K,
14577
14579
  searchTreeRef: B,
14578
- onNewClicked: Ie,
14580
+ onNewClicked: xe,
14579
14581
  currentId: I,
14580
- setCurrentId: Te,
14582
+ setCurrentId: Ie,
14581
14583
  setCurrentItemIndex: M,
14582
14584
  currentItemIndex: V,
14583
14585
  results: $,
@@ -14591,7 +14593,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14591
14593
  setSelectedRowItems: P,
14592
14594
  setSearchTreeNameSearch: X,
14593
14595
  searchTreeNameSearch: j,
14594
- goToResourceId: He,
14596
+ goToResourceId: Ue,
14595
14597
  limit: y,
14596
14598
  isActive: c === Ae,
14597
14599
  initialSearchParams: v,
@@ -14617,14 +14619,14 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14617
14619
  searchTreeRef: B,
14618
14620
  searchTreeNameSearch: j,
14619
14621
  setCurrentView: ae,
14620
- setCurrentId: Te
14622
+ setCurrentId: Ie
14621
14623
  }
14622
14624
  ),
14623
14625
  /* @__PURE__ */ i(
14624
14626
  fy,
14625
14627
  {
14626
14628
  visible: se,
14627
- onIdSubmitted: He,
14629
+ onIdSubmitted: Ue,
14628
14630
  isSearching: oe,
14629
14631
  onCancel: () => {
14630
14632
  he(!1);
@@ -14765,7 +14767,7 @@ function Fy(e) {
14765
14767
  } = e, [c, u] = F(!1), [p, d] = F(!1), [f, h] = F(), [m, g] = F(), [y, v] = F(), [b, A] = F(1), [C, x] = F(0), _ = U(Ct), w = U([]), [T, O] = F(0), [D, I] = F([]), [S, R] = F(void 0), [P, V] = F(), [M, $] = F(), [H, L] = F(), [ee, Q] = F(!1), G = U([]), se = (B) => {
14766
14768
  Q(!0), A(B), x((B - 1) * _.current);
14767
14769
  }, he = async () => {
14768
- const B = G.current.length > 0 ? G.current : a, ge = Jt(w.current, B), { colors: Fe } = Ut(m), { totalItems: ce, results: de, attrsEvaluated: Ae } = await N.getHandler().searchForTree({
14770
+ const B = G.current.length > 0 ? G.current : a, ge = Jt(w.current, B), { colors: Fe } = Ut(m), { totalItems: de, results: ue, attrsEvaluated: Ae } = await N.getHandler().searchForTree({
14769
14771
  params: ge,
14770
14772
  limit: _.current,
14771
14773
  offset: C,
@@ -14776,12 +14778,12 @@ function Fy(e) {
14776
14778
  });
14777
14779
  R(ln(Ae));
14778
14780
  const we = bn({
14779
- resultsToSort: de,
14781
+ resultsToSort: ue,
14780
14782
  sorter: P,
14781
14783
  fields: { ...m.fields, ...y.fields }
14782
14784
  });
14783
14785
  Q(!1), I(we);
14784
- const Ye = await ce();
14786
+ const Ye = await de();
14785
14787
  O(Ye);
14786
14788
  }, oe = async () => {
14787
14789
  try {
@@ -15034,9 +15036,9 @@ function Oy(e, t) {
15034
15036
  }
15035
15037
  let K = null;
15036
15038
  if ((j == null ? void 0 : j.type) === "graph") {
15037
- const de = V.server_action === !0 && C ? rl : Pn;
15039
+ const ue = V.server_action === !0 && C ? rl : Pn;
15038
15040
  K = /* @__PURE__ */ i(
15039
- de,
15041
+ ue,
15040
15042
  {
15041
15043
  view_id: se.filter(
15042
15044
  (Ae) => Ae[1] === "graph"
@@ -15057,24 +15059,24 @@ function Oy(e, t) {
15057
15059
  model: he,
15058
15060
  domain: W,
15059
15061
  view_id: se.filter(
15060
- (ce) => ce[1] === "tree"
15062
+ (de) => de[1] === "tree"
15061
15063
  )[0][0],
15062
- onRowClicked: (ce) => {
15063
- const de = se.find((Ae) => {
15064
+ onRowClicked: (de) => {
15065
+ const ue = se.find((Ae) => {
15064
15066
  const [, we] = Ae;
15065
15067
  return we === "form";
15066
15068
  });
15067
- if (de) {
15068
- const [Ae, we] = de, {
15069
+ if (ue) {
15070
+ const [Ae, we] = ue, {
15069
15071
  actionId: Ye,
15070
- actionType: Te,
15072
+ actionType: Ie,
15071
15073
  title: ae,
15072
15074
  model: Ee
15073
15075
  } = P, Ce = {
15074
15076
  action_id: Ye,
15075
- action_type: Te,
15077
+ action_type: Ie,
15076
15078
  name: ae,
15077
- res_id: ce.id,
15079
+ res_id: de.id,
15078
15080
  res_model: Ee,
15079
15081
  view_id: Ae,
15080
15082
  view_type: we
@@ -15086,7 +15088,7 @@ function Oy(e, t) {
15086
15088
  $
15087
15089
  );
15088
15090
  else if (j !== void 0) {
15089
- const ce = j && Array.isArray(j.id) ? { ...j, id: j.id[0] } : j;
15091
+ const de = j && Array.isArray(j.id) ? { ...j, id: j.id[0] } : j;
15090
15092
  K = /* @__PURE__ */ i(
15091
15093
  Cl,
15092
15094
  {
@@ -15100,32 +15102,32 @@ function Oy(e, t) {
15100
15102
  domain: W,
15101
15103
  setCanWeClose: () => {
15102
15104
  },
15103
- initialView: ce,
15105
+ initialView: de,
15104
15106
  limit: X
15105
15107
  },
15106
15108
  $
15107
15109
  );
15108
15110
  }
15109
15111
  let B;
15110
- const ge = se.find((ce) => {
15111
- const [, de] = ce;
15112
- return de === "tree";
15112
+ const ge = se.find((de) => {
15113
+ const [, ue] = de;
15114
+ return ue === "tree";
15113
15115
  });
15114
15116
  if (ge) {
15115
- const [ce, de] = ge, {
15117
+ const [de, ue] = ge, {
15116
15118
  actionId: Ae,
15117
15119
  actionType: we,
15118
15120
  title: Ye,
15119
- model: Te
15121
+ model: Ie
15120
15122
  } = P;
15121
15123
  B = {
15122
15124
  action_id: Ae,
15123
15125
  action_type: we,
15124
15126
  name: Ye,
15125
15127
  res_id: !1,
15126
- res_model: Te,
15127
- view_id: ce,
15128
- view_type: de,
15128
+ res_model: Ie,
15129
+ view_id: de,
15130
+ view_type: ue,
15129
15131
  overrideUnsettedLimit: !0
15130
15132
  };
15131
15133
  }
@@ -15149,7 +15151,7 @@ function Oy(e, t) {
15149
15151
  }
15150
15152
  const Ry = _t(Oy), Ey = (e) => {
15151
15153
  const { ooui: t } = e;
15152
- return /* @__PURE__ */ i(Ne, { type: "array", ...e, children: /* @__PURE__ */ i(Dy, { ooui: t }) });
15154
+ return /* @__PURE__ */ i(Ve, { type: "array", ...e, children: /* @__PURE__ */ i(Dy, { ooui: t }) });
15153
15155
  }, Dy = (e) => {
15154
15156
  const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, a = o.filter((T) => T.operation !== "pendingRemove").map((T) => T.id), [s, l] = F([]), [c, u] = F(), [p, d] = F(!1), { relation: f, context: h, readOnly: m, field: g, columns: y } = n, v = re(Ke), { getContext: b } = v || {};
15155
15157
  jt(() => {
@@ -15231,7 +15233,7 @@ const Ry = _t(Oy), Ey = (e) => {
15231
15233
  /* @__PURE__ */ i(Ge, { onClick: _, disabled: a.length === 0, children: "Uncheck all" })
15232
15234
  ] })
15233
15235
  ] }) });
15234
- }, Py = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(ky, { ...e }) }), ky = (e) => {
15236
+ }, Py = (e) => /* @__PURE__ */ i(Ve, { ...e, children: /* @__PURE__ */ i(ky, { ...e }) }), ky = (e) => {
15235
15237
  const { value: t, ooui: n } = e;
15236
15238
  return /* @__PURE__ */ i(
15237
15239
  "div",
@@ -15252,7 +15254,7 @@ const Ry = _t(Oy), Ey = (e) => {
15252
15254
  );
15253
15255
  }, Vy = (e) => {
15254
15256
  const { ooui: t } = e, { required: n } = t;
15255
- return /* @__PURE__ */ i(Ne, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Ny, { ...e }) });
15257
+ return /* @__PURE__ */ i(Ve, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Ny, { ...e }) });
15256
15258
  }, Ny = (e) => {
15257
15259
  const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: a, direction: s } = t, l = Array.from(o.entries()), c = l && l.length && l.map((u) => {
15258
15260
  const [p, d] = u;
@@ -15261,13 +15263,13 @@ const Ry = _t(Oy), Ey = (e) => {
15261
15263
  return /* @__PURE__ */ i(ii.Group, { disabled: a, onChange: n, value: r, children: /* @__PURE__ */ i(ot, { direction: s, children: c }) });
15262
15264
  }, $y = (e) => {
15263
15265
  const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
15264
- return /* @__PURE__ */ i(Ne, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(Ly, { id: n, readOnly: r, required: o }) });
15266
+ return /* @__PURE__ */ i(Ve, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(Ly, { id: n, readOnly: r, required: o }) });
15265
15267
  }, Ly = (e) => {
15266
15268
  const { required: t, readOnly: n, ...r } = e;
15267
15269
  return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i($l, { disabled: n, ...r }) });
15268
15270
  }, My = (e) => {
15269
15271
  const { ooui: t } = e, { required: n } = t;
15270
- return /* @__PURE__ */ i(Ne, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(jy, { ...e }) });
15272
+ return /* @__PURE__ */ i(Ve, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(jy, { ...e }) });
15271
15273
  }, jy = (e) => {
15272
15274
  const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: a } = t, s = re(Ke);
15273
15275
  let l = [], c;
@@ -15343,7 +15345,7 @@ const Ry = _t(Oy), Ey = (e) => {
15343
15345
  /* @__PURE__ */ i("div", { style: p }),
15344
15346
  /* @__PURE__ */ i("div", { style: d(h.active) })
15345
15347
  ] }, m)) });
15346
- }, Hy = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(By, {}) }), Uy = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(Wy, { ...e }) }), Wy = (e) => {
15348
+ }, Hy = (e) => /* @__PURE__ */ i(Ve, { ...e, children: /* @__PURE__ */ i(By, {}) }), Uy = (e) => /* @__PURE__ */ i(Ve, { ...e, children: /* @__PURE__ */ i(Wy, { ...e }) }), Wy = (e) => {
15347
15349
  const { ooui: t, value: n, onChange: r } = e, { lang: o, height: a, readOnly: s } = t, l = re(Ke), { elementHasLostFocus: c } = l || {}, u = E(
15348
15350
  (d) => {
15349
15351
  c && d.onDidBlurEditorWidget(() => c());
@@ -15435,7 +15437,7 @@ const zy = (e) => {
15435
15437
  }
15436
15438
  }
15437
15439
  );
15438
- }, Qy = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(Jy, { ooui: e.ooui }) }), Xy = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(Sc, {}) }), Zy = (e) => {
15440
+ }, Qy = (e) => /* @__PURE__ */ i(Ve, { ...e, children: /* @__PURE__ */ i(Jy, { ooui: e.ooui }) }), Xy = (e) => /* @__PURE__ */ i(Ve, { ...e, children: /* @__PURE__ */ i(Sc, {}) }), Zy = (e) => {
15439
15441
  const { ooui: t } = e, n = re(Ke);
15440
15442
  let { title: r, text: o, alertType: a, icon: s, buttons: l } = t;
15441
15443
  if (t.fieldType && t.id) {
@@ -15488,7 +15490,7 @@ const zy = (e) => {
15488
15490
  .slick-dots-bottom {
15489
15491
  bottom: -15px;
15490
15492
  }
15491
- `, ov = (e) => /* @__PURE__ */ i(Ne, { ...e, children: /* @__PURE__ */ i(iv, { ...e }) }), iv = (e) => {
15493
+ `, ov = (e) => /* @__PURE__ */ i(Ve, { ...e, children: /* @__PURE__ */ i(iv, { ...e }) }), iv = (e) => {
15492
15494
  const { ooui: t, value: n, onChange: r } = e;
15493
15495
  return /* @__PURE__ */ i(
15494
15496
  fs,
@@ -15796,13 +15798,13 @@ function cv(e, t) {
15796
15798
  else if (Fe === "dashboard")
15797
15799
  j.push([void 0, "dashboard"]);
15798
15800
  else {
15799
- const { view_id: ce } = await N.getHandler().getView({
15801
+ const { view_id: de } = await N.getHandler().getView({
15800
15802
  model: ee,
15801
15803
  type: Fe,
15802
15804
  id: ge,
15803
15805
  context: { ...l, ...$ }
15804
15806
  });
15805
- j.push([ce, Fe]);
15807
+ j.push([de, Fe]);
15806
15808
  }
15807
15809
  }
15808
15810
  let X, J;