@isettingkit/business-rules 3.2.1 → 3.2.3

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.
package/dist/index.es.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { jsx as i, jsxs as b, Fragment as j } from "react/jsx-runtime";
2
2
  import { MdOutlineDelete as qt, MdOutlinePercent as wr, MdOutlineChevronRight as na, MdOutlineError as ra, MdClear as wt, MdOutlineFilterAltOff as Sr, MdOutlineLockClock as nt, MdAdd as St, MdOutlineCreate as aa, MdExpandLess as oa, MdExpandMore as un, MdInfo as ia, MdCached as la, MdOutlineInfo as sa, MdClose as da, MdOutlineFilterAlt as xr, MdChevronRight as Mn, MdArrowRight as ca, MdOutlineArrowCircleLeft as ua, MdOutlineArrowCircleRight as pa, MdKeyboardArrowUp as ha, MdKeyboardArrowDown as ga, MdOutlineArrowBack as fa } from "react-icons/md";
3
- import { inube as k, Stack as v, Divider as K, Icon as B, Textfield as mt, Moneyfield as Cr, Date as Re, Numberfield as xn, Text as D, Tag as we, Checkpicker as Cn, Grid as Fe, Select as Ae, Label as ma, OptionItem as Dr, Box as Nr, useMediaQuery as Se, Blanket as xt, Button as Z, SkeletonLine as fe, Toggle as rt, Checkbox as Er, Tabs as Ar, SkeletonIcon as ba, Fieldset as Qe, OptionList as ya } from "@inubekit/inubekit";
3
+ import { inube as k, Stack as v, Divider as K, Icon as B, Textfield as mt, Moneyfield as Cr, Date as Oe, Numberfield as xn, Text as D, Tag as we, Checkpicker as Cn, Grid as Fe, Select as Ae, Label as ma, OptionItem as Dr, Box as Nr, useMediaQuery as Se, Blanket as xt, Button as Z, SkeletonLine as fe, Toggle as rt, Checkbox as Er, Tabs as Ar, SkeletonIcon as ba, Fieldset as Qe, OptionList as ya } from "@inubekit/inubekit";
4
4
  import $, { ThemeContext as Dn, keyframes as Nn } from "styled-components";
5
- import U, { useState as q, forwardRef as va, useContext as En, useMemo as Yt, useRef as Ke, useEffect as Be, useCallback as Ta } from "react";
5
+ import U, { useState as Y, forwardRef as va, useContext as En, useMemo as Yt, useRef as Ke, useEffect as Be, useCallback as Ta } from "react";
6
6
  import { createPortal as Ct } from "react-dom";
7
7
  import { useFormik as An } from "formik";
8
- import { string as Oe, mixed as Pe, object as ne, number as $e, lazy as bt, date as yt } from "yup";
8
+ import { string as Re, mixed as Pe, object as ne, number as $e, lazy as bt, date as yt } from "yup";
9
9
  import { Link as $r, useNavigate as wa, useLocation as Sa } from "react-router-dom";
10
10
  import xa from "axios";
11
11
  import { franc as Ca } from "franc-min";
@@ -153,7 +153,7 @@ const Dt = (e) => {
153
153
  statusValidate: o,
154
154
  onBlur: s
155
155
  }) => /* @__PURE__ */ i(
156
- Re,
156
+ Oe,
157
157
  {
158
158
  id: e,
159
159
  label: t,
@@ -216,14 +216,14 @@ const Dt = (e) => {
216
216
  )
217
217
  };
218
218
  var We = /* @__PURE__ */ ((e) => (e.ALPHABETICAL = "alphabetical", e.CURRENCY = "currency", e.DATE = "date", e.MONETARY = "monetary", e.NUMBER = "number", e.PERCENTAGE = "percentage", e))(We || {});
219
- const Ra = {
219
+ const Oa = {
220
220
  [We.ALPHABETICAL]: Na,
221
221
  [We.CURRENCY]: Pn,
222
222
  [We.DATE]: $a,
223
223
  [We.MONETARY]: Pn,
224
224
  [We.NUMBER]: ka,
225
225
  [We.PERCENTAGE]: Ia
226
- }, Oa = (e) => Ra[e] || null, kr = ({
226
+ }, Ra = (e) => Oa[e] || null, kr = ({
227
227
  type: e,
228
228
  name: t,
229
229
  label: n,
@@ -234,7 +234,7 @@ const Ra = {
234
234
  onBlur: c,
235
235
  placeholder: l
236
236
  }) => {
237
- const d = Oa(e);
237
+ const d = Ra(e);
238
238
  return d ? /* @__PURE__ */ i(j, { children: d.render({
239
239
  name: t,
240
240
  label: n,
@@ -370,7 +370,7 @@ const Ra = {
370
370
  onBlur: () => t.setFieldTouched("value", !0, !0)
371
371
  }
372
372
  ) });
373
- }, Rr = (e) => {
373
+ }, Or = (e) => {
374
374
  const {
375
375
  handleInputChangeFrom: t,
376
376
  handleInputChangeTo: n,
@@ -385,7 +385,7 @@ const Ra = {
385
385
  statusFrom: u,
386
386
  statusTo: h,
387
387
  onBlur: g
388
- } = e, [f, y] = q(c), [m, T] = q(l), S = (N) => {
388
+ } = e, [f, y] = Y(c), [m, T] = Y(l), S = (N) => {
389
389
  let A;
390
390
  a === "currency" ? A = zt(N.target.value) : a === "date" ? A = new Date(N.target.value) : A = Number(N.target.value), y(A), t(A);
391
391
  }, E = (N) => {
@@ -398,7 +398,7 @@ const Ra = {
398
398
  /* @__PURE__ */ b(v, { alignItems: "baseline", gap: "8px", children: [
399
399
  /* @__PURE__ */ i(D, { type: "body", size: "large", appearance: "dark", children: "De" }),
400
400
  a === "date" ? /* @__PURE__ */ i(
401
- Re,
401
+ Oe,
402
402
  {
403
403
  id: `${r}DateFrom`,
404
404
  value: C(f, a),
@@ -428,7 +428,7 @@ const Ra = {
428
428
  /* @__PURE__ */ b(v, { alignItems: "baseline", gap: "8px", children: [
429
429
  /* @__PURE__ */ i(D, { type: "body", size: "large", appearance: "dark", children: "a" }),
430
430
  a === "date" ? /* @__PURE__ */ i(
431
- Re,
431
+ Oe,
432
432
  {
433
433
  id: `${r}DateTo`,
434
434
  value: C(m, a),
@@ -463,7 +463,7 @@ const Ra = {
463
463
  }) => {
464
464
  var n, r, a, o, s, c, l, d;
465
465
  return /* @__PURE__ */ i($n, { children: /* @__PURE__ */ i(
466
- Rr,
466
+ Or,
467
467
  {
468
468
  id: e.ruleName,
469
469
  label: e.labelName,
@@ -538,7 +538,7 @@ const Ra = {
538
538
  }) => {
539
539
  var n, r, a, o, s, c, l, d, p, u, h, g, f, y;
540
540
  return /* @__PURE__ */ i(
541
- Rr,
541
+ Or,
542
542
  {
543
543
  id: `range-${e.conditionName}`,
544
544
  label: e.conditionName,
@@ -827,7 +827,7 @@ const Ra = {
827
827
  onBlur: l
828
828
  }
829
829
  ) : /* @__PURE__ */ i(
830
- Re,
830
+ Oe,
831
831
  {
832
832
  id: t,
833
833
  value: r,
@@ -980,13 +980,13 @@ const Ra = {
980
980
  );
981
981
  }
982
982
  };
983
- var W = /* @__PURE__ */ ((e) => (e.ALPHABETICAL = "alphabetical", e.CURRENCY = "currency", e.DATE = "date", e.NUMBER = "number", e.PERCENTAGE = "percentage", e))(W || {});
983
+ var q = /* @__PURE__ */ ((e) => (e.ALPHABETICAL = "alphabetical", e.MONETARY = "monetary", e.DATE = "date", e.NUMBER = "number", e.PERCENTAGE = "percentage", e))(q || {});
984
984
  const Ja = {
985
- [W.ALPHABETICAL]: qa,
986
- [W.CURRENCY]: Ya,
987
- [W.DATE]: Wa,
988
- [W.NUMBER]: Qa,
989
- [W.PERCENTAGE]: Xa
985
+ [q.ALPHABETICAL]: qa,
986
+ [q.MONETARY]: Ya,
987
+ [q.DATE]: Wa,
988
+ [q.NUMBER]: Qa,
989
+ [q.PERCENTAGE]: Xa
990
990
  }, Za = (e) => Ja[e] || null, Gt = (e) => {
991
991
  const {
992
992
  condition: t,
@@ -1307,7 +1307,7 @@ const lo = (e) => {
1307
1307
  editable: C = !1,
1308
1308
  clearable: N,
1309
1309
  onKeyUp: A,
1310
- onBlur: R,
1310
+ onBlur: O,
1311
1311
  onChange: F,
1312
1312
  onClick: G,
1313
1313
  onFocus: te,
@@ -1317,9 +1317,9 @@ const lo = (e) => {
1317
1317
  } = e, V = En(Dn), M = ((Ue = (_e = V == null ? void 0 : V.input) == null ? void 0 : _e.required) == null ? void 0 : Ue.appearance) || Ie.required.appearance, Ce = f && !r, De = T || m === "" ? "" : zn(h, m), Ve = Yt(
1318
1318
  () => h.filter((Q) => E.includes(Q.id)),
1319
1319
  [h, E]
1320
- ), Ye = (Q, Y) => {
1320
+ ), Ye = (Q, W) => {
1321
1321
  Q.stopPropagation(), ce({
1322
- target: { checked: !1, value: Y }
1322
+ target: { checked: !1, value: W }
1323
1323
  });
1324
1324
  };
1325
1325
  return /* @__PURE__ */ b(to, { $fullwidth: o, $disabled: r, ref: t, children: [
@@ -1372,7 +1372,7 @@ const lo = (e) => {
1372
1372
  $focused: a,
1373
1373
  readOnly: !C,
1374
1374
  onFocus: te,
1375
- onBlur: R,
1375
+ onBlur: O,
1376
1376
  onChange: (Q) => F(u, Q.target.value),
1377
1377
  onClick: C ? G : void 0,
1378
1378
  onKeyUp: A
@@ -1393,7 +1393,7 @@ const lo = (e) => {
1393
1393
  label: Q.label,
1394
1394
  removable: !0,
1395
1395
  displayIcon: !1,
1396
- onClose: (Y) => Ye(Y, Q.id)
1396
+ onClose: (W) => Ye(W, Q.id)
1397
1397
  },
1398
1398
  Q.id
1399
1399
  )) : (m ?? "") !== "" && /* @__PURE__ */ i(
@@ -1468,55 +1468,55 @@ const lo = (e) => {
1468
1468
  picker: C = !1,
1469
1469
  showChevron: N = !0,
1470
1470
  editable: A = !1,
1471
- clearable: R = !0
1472
- } = e, [F, G] = q(!1), [te, ie] = q(!1), [ce, re] = q([]), V = Ke(null);
1471
+ clearable: O = !0
1472
+ } = e, [F, G] = Y(!1), [te, ie] = Y(!1), [ce, re] = Y([]), V = Ke(null);
1473
1473
  Be(() => {
1474
1474
  if (C) {
1475
- const Y = S ? S.split(",").map((ee) => ee.trim()) : [];
1476
- re(Y);
1475
+ const W = S ? S.split(",").map((ee) => ee.trim()) : [];
1476
+ re(W);
1477
1477
  }
1478
1478
  }, [S, C]);
1479
1479
  function M() {
1480
1480
  p(l, ""), re([]), G(!1);
1481
1481
  }
1482
- function Ce(Y) {
1482
+ function Ce(W) {
1483
1483
  if (!t) {
1484
1484
  G(!F);
1485
1485
  try {
1486
- u && u(Y);
1486
+ u && u(W);
1487
1487
  } catch (ee) {
1488
1488
  console.error(`Error when clicking over select. ${ee}`);
1489
1489
  }
1490
1490
  }
1491
1491
  }
1492
- const De = Ta((Y) => {
1493
- V.current && Y.target && !V.current.contains(Y.target) && G(!1);
1492
+ const De = Ta((W) => {
1493
+ V.current && W.target && !V.current.contains(W.target) && G(!1);
1494
1494
  }, []);
1495
- function Ve(Y) {
1495
+ function Ve(W) {
1496
1496
  try {
1497
- Y.type === "focus" && (ie(!0), h && h(Y)), Y.type === "blur" && (ie(!1), d && d(Y));
1497
+ W.type === "focus" && (ie(!0), h && h(W)), W.type === "blur" && (ie(!1), d && d(W));
1498
1498
  } catch (ee) {
1499
1499
  console.error(`Error executing focus/blur callback. ${ee}`);
1500
1500
  }
1501
1501
  }
1502
- function Ye(Y) {
1502
+ function Ye(W) {
1503
1503
  G(!1);
1504
1504
  try {
1505
- p && p(l, Y);
1505
+ p && p(l, W);
1506
1506
  } catch (ee) {
1507
1507
  console.error(`Error when changing value using callback. ${ee}`);
1508
1508
  }
1509
1509
  }
1510
- function _e(Y) {
1511
- Y.key === "Escape" && G(!1), G(!F);
1510
+ function _e(W) {
1511
+ W.key === "Escape" && G(!1), G(!F);
1512
1512
  try {
1513
- g && g(Y);
1513
+ g && g(W);
1514
1514
  } catch (ee) {
1515
1515
  console.error(`Error when clicking over select. ${ee}`);
1516
1516
  }
1517
1517
  }
1518
- function Ue(Y) {
1519
- const { value: ee, checked: Et } = Y.target;
1518
+ function Ue(W) {
1519
+ const { value: ee, checked: Et } = W.target;
1520
1520
  re((it) => {
1521
1521
  const lt = Et ? [...it, ee] : it.filter((st) => st !== ee);
1522
1522
  return p(l, lt.join(",")), lt;
@@ -1525,7 +1525,7 @@ const lo = (e) => {
1525
1525
  Be(() => (document.addEventListener("click", De), () => {
1526
1526
  document.removeEventListener("click", De);
1527
1527
  }), [De]);
1528
- const Q = Yt(() => R || C ? f : [{ id: "empty-option", label: "", value: "" }, ...f], [f, R, C]);
1528
+ const Q = Yt(() => O || C ? f : [{ id: "empty-option", label: "", value: "" }, ...f], [f, O, C]);
1529
1529
  return /* @__PURE__ */ i(
1530
1530
  so,
1531
1531
  {
@@ -1549,7 +1549,7 @@ const lo = (e) => {
1549
1549
  showChevron: N,
1550
1550
  checkedItems: ce,
1551
1551
  editable: A,
1552
- clearable: R,
1552
+ clearable: O,
1553
1553
  handleClear: M,
1554
1554
  onBlur: Ve,
1555
1555
  onChange: p,
@@ -1560,7 +1560,7 @@ const lo = (e) => {
1560
1560
  onCheckboxChange: Ue
1561
1561
  }
1562
1562
  );
1563
- }, Or = (e) => {
1563
+ }, Rr = (e) => {
1564
1564
  const {
1565
1565
  disabled: t = !1,
1566
1566
  fullwidth: n = !1,
@@ -1615,7 +1615,7 @@ const lo = (e) => {
1615
1615
  }
1616
1616
  ),
1617
1617
  /* @__PURE__ */ i(
1618
- Or,
1618
+ Rr,
1619
1619
  {
1620
1620
  name: e.conditionName,
1621
1621
  placeholder: r,
@@ -1649,9 +1649,9 @@ const lo = (e) => {
1649
1649
  listOfPossibleValues: T,
1650
1650
  placeholderFrom: S,
1651
1651
  placeholderTo: E
1652
- } = e, [C, N] = q(l), [A, R] = q(d), F = (V) => {
1652
+ } = e, [C, N] = Y(l), [A, O] = Y(d), F = (V) => {
1653
1653
  let M;
1654
- if (o === "currency")
1654
+ if (o === q.MONETARY)
1655
1655
  M = zt(String(V));
1656
1656
  else if (o === "date")
1657
1657
  M = V instanceof Date ? V : new Date(String(V));
@@ -1663,18 +1663,18 @@ const lo = (e) => {
1663
1663
  N(M), n(M);
1664
1664
  }, G = (V) => {
1665
1665
  let M;
1666
- if (o === "currency")
1666
+ if (o === q.MONETARY)
1667
1667
  M = zt(String(V));
1668
1668
  else if (o === "date")
1669
1669
  M = V instanceof Date ? V : new Date(String(V));
1670
1670
  else if (o === "percentage") {
1671
1671
  const Ce = Ut(String(V));
1672
- R(String(V)), r(Ce);
1672
+ O(String(V)), r(Ce);
1673
1673
  return;
1674
1674
  } else o === "number" ? M = Number(V) : M = String(V);
1675
- R(M), r(M);
1675
+ O(M), r(M);
1676
1676
  }, te = (V, M) => {
1677
- V === `${a}SelectFrom` && (N(M), n(M)), V === `${a}SelectTo` && (R(M), r(M));
1677
+ V === `${a}SelectFrom` && (N(M), n(M)), V === `${a}SelectTo` && (O(M), r(M));
1678
1678
  }, ie = (V, M) => M === "date" && V instanceof Date ? V.toISOString().split("T")[0] : typeof V == "number" ? V : V ?? "", ce = y ?? f, re = m ?? f;
1679
1679
  return /* @__PURE__ */ b(
1680
1680
  v,
@@ -1859,9 +1859,9 @@ const lo = (e) => {
1859
1859
  let d = "";
1860
1860
  l != null ? typeof l == "object" && !Array.isArray(l) && "value" in l ? d = l.value ?? "" : d = l : e.value !== void 0 && (d = e.value);
1861
1861
  const p = s[r], u = c[r], h = typeof p == "string" ? p : p && typeof p == "object" && typeof p.value == "string" ? p.value : "", g = u && typeof u == "object" ? !!u.value : !!u, f = g && h ? "invalid" : g ? "valid" : void 0, y = (N, A) => {
1862
- const R = o[r];
1863
- R && typeof R == "object" && !Array.isArray(R) ? t.setFieldValue(`${a}.value`, A) : t.setFieldValue(a, {
1864
- ...R && typeof R == "object" ? R : {},
1862
+ const O = o[r];
1863
+ O && typeof O == "object" && !Array.isArray(O) ? t.setFieldValue(`${a}.value`, A) : t.setFieldValue(a, {
1864
+ ...O && typeof O == "object" ? O : {},
1865
1865
  value: A
1866
1866
  });
1867
1867
  };
@@ -1895,13 +1895,13 @@ const lo = (e) => {
1895
1895
  label: e.labelName,
1896
1896
  valueFrom: a == null ? void 0 : a.from,
1897
1897
  valueTo: a == null ? void 0 : a.to,
1898
- handleInputChangeFrom: (R) => t.setFieldValue(
1898
+ handleInputChangeFrom: (O) => t.setFieldValue(
1899
1899
  `conditionsThatEstablishesTheDecision.${n}.${e.conditionName}.value.from`,
1900
- R
1900
+ O
1901
1901
  ),
1902
- handleInputChangeTo: (R) => t.setFieldValue(
1902
+ handleInputChangeTo: (O) => t.setFieldValue(
1903
1903
  `conditionsThatEstablishesTheDecision.${n}.${e.conditionName}.value.to`,
1904
- R
1904
+ O
1905
1905
  ),
1906
1906
  messageFrom: c,
1907
1907
  messageTo: l,
@@ -1923,7 +1923,7 @@ const lo = (e) => {
1923
1923
  return /* @__PURE__ */ b(v, { alignItems: "center", gap: "16px", width: "100%", children: [
1924
1924
  /* @__PURE__ */ i(D, { type: "body", weight: "normal", size: "medium", appearance: "dark", children: e.labelName }),
1925
1925
  /* @__PURE__ */ i(
1926
- Or,
1926
+ Rr,
1927
1927
  {
1928
1928
  name: e.conditionName,
1929
1929
  placeholder: e.placeholder ?? "Seleccione una opción",
@@ -2079,11 +2079,11 @@ const lo = (e) => {
2079
2079
  ] })
2080
2080
  ] });
2081
2081
  }, yc = {
2082
- [W.ALPHABETICAL]: (e) => /^[a-zA-Z]+$/.test(e),
2083
- [W.NUMBER]: (e) => /^[0-9]*$/.test(e),
2084
- [W.CURRENCY]: (e) => /^[0-9]*$/.test(e),
2085
- [W.PERCENTAGE]: (e) => /^\d{1,2}(\.\d+)?%?$/.test(e),
2086
- [W.DATE]: (e) => !isNaN(Date.parse(e))
2082
+ [q.ALPHABETICAL]: (e) => /^[a-zA-Z]+$/.test(e),
2083
+ [q.NUMBER]: (e) => /^[0-9]*$/.test(e),
2084
+ [q.MONETARY]: (e) => /^[0-9]*$/.test(e),
2085
+ [q.PERCENTAGE]: (e) => /^\d{1,2}(\.\d+)?%?$/.test(e),
2086
+ [q.DATE]: (e) => !isNaN(Date.parse(e))
2087
2087
  }, To = (e) => {
2088
2088
  const t = /* @__PURE__ */ new Date(), n = new Date(e), r = new Date(
2089
2089
  t.getFullYear(),
@@ -2096,7 +2096,7 @@ const lo = (e) => {
2096
2096
  );
2097
2097
  return r <= a;
2098
2098
  }, In = (e) => {
2099
- const [t, n] = q(!1), r = To(e);
2099
+ const [t, n] = Y(!1), r = To(e);
2100
2100
  return { showModal: t, handleOnClick: () => {
2101
2101
  n(!t);
2102
2102
  }, stillValid: r };
@@ -2217,7 +2217,7 @@ const Ao = {
2217
2217
  label: a
2218
2218
  })) : [];
2219
2219
  return /* @__PURE__ */ i(ko, { id: e, label: t, options: r });
2220
- }, Ro = (e) => {
2220
+ }, Oo = (e) => {
2221
2221
  const {
2222
2222
  labelFrom: t = "",
2223
2223
  labelType: n = "condition",
@@ -2281,7 +2281,7 @@ const Ao = {
2281
2281
  ]
2282
2282
  }
2283
2283
  );
2284
- }, Oo = ({
2284
+ }, Ro = ({
2285
2285
  nameLabel: e,
2286
2286
  type: t,
2287
2287
  valueData: n,
@@ -2289,7 +2289,7 @@ const Ao = {
2289
2289
  }) => {
2290
2290
  const a = (n == null ? void 0 : n.from) || "0", o = (n == null ? void 0 : n.to) || "0";
2291
2291
  return /* @__PURE__ */ i(
2292
- Ro,
2292
+ Oo,
2293
2293
  {
2294
2294
  labelFrom: e,
2295
2295
  labelType: t,
@@ -2300,7 +2300,7 @@ const Ao = {
2300
2300
  );
2301
2301
  }, Lo = {
2302
2302
  LIST_OF_VALUES_MULTI: Io,
2303
- RANGE: Oo,
2303
+ RANGE: Ro,
2304
2304
  GREATER_THAN: kt,
2305
2305
  LESS_THAN: kt,
2306
2306
  EQUAL: kt,
@@ -2355,7 +2355,7 @@ const Ao = {
2355
2355
  padding: 24px;
2356
2356
  gap: 24px;
2357
2357
  box-sizing: border-box;
2358
- `, Mo = $.div``, Rn = (e) => {
2358
+ `, Mo = $.div``, On = (e) => {
2359
2359
  const {
2360
2360
  actionButtonLabel: t,
2361
2361
  cancelButtonLabel: n = "",
@@ -2484,7 +2484,7 @@ const Ao = {
2484
2484
  }
2485
2485
  ),
2486
2486
  c && /* @__PURE__ */ i(
2487
- Rn,
2487
+ On,
2488
2488
  {
2489
2489
  actionButtonLabel: "Aceptar",
2490
2490
  onClick: s,
@@ -2562,7 +2562,7 @@ const Ao = {
2562
2562
  }
2563
2563
  ),
2564
2564
  s && /* @__PURE__ */ i(
2565
- Rn,
2565
+ On,
2566
2566
  {
2567
2567
  actionButtonLabel: "Aceptar",
2568
2568
  onClick: o,
@@ -2670,7 +2670,7 @@ const Ao = {
2670
2670
  }
2671
2671
  ),
2672
2672
  l && /* @__PURE__ */ i(
2673
- Rn,
2673
+ On,
2674
2674
  {
2675
2675
  actionButtonLabel: "Aceptar",
2676
2676
  onClick: c,
@@ -2728,7 +2728,7 @@ const Ao = {
2728
2728
  ListOfValues: "LIST_OF_VALUES",
2729
2729
  ListOfValuesMulti: "LIST_OF_VALUES_MULTI",
2730
2730
  Range: "RANGE"
2731
- })[e] || null, Rt = (e) => {
2731
+ })[e] || null, Ot = (e) => {
2732
2732
  const { element: t, valueData: n, type: r } = e, a = qo(
2733
2733
  t.howToSetTheDecision || t.howToSetTheCondition
2734
2734
  );
@@ -2855,7 +2855,7 @@ const Ao = {
2855
2855
  }
2856
2856
  ) })
2857
2857
  ] });
2858
- }, On = (e) => {
2858
+ }, Rn = (e) => {
2859
2859
  var h;
2860
2860
  const { decision: t, loading: n = !1, textValues: r } = e, a = !!(t != null && t.effectiveFrom), o = !!(t != null && t.validUntil), s = a && o ? {
2861
2861
  element: {
@@ -3049,7 +3049,7 @@ const Fr = $.div`
3049
3049
  },
3050
3050
  handleView: () => n ? n() : null,
3051
3051
  controls: !1,
3052
- children: /* @__PURE__ */ i(On, { loading: !0 })
3052
+ children: /* @__PURE__ */ i(Rn, { loading: !0 })
3053
3053
  },
3054
3054
  `loading-card-${t}`
3055
3055
  );
@@ -3064,7 +3064,7 @@ const Fr = $.div`
3064
3064
  handleDelete: () => a ? a(t.decisionId) : null,
3065
3065
  handleView: () => r ? r(t) : null,
3066
3066
  controls: n,
3067
- children: /* @__PURE__ */ i(On, { decision: t, textValues: o })
3067
+ children: /* @__PURE__ */ i(Rn, { decision: t, textValues: o })
3068
3068
  }
3069
3069
  )
3070
3070
  ] }) }, t.decisionId) : null;
@@ -3395,7 +3395,7 @@ const di = $.div`
3395
3395
  },
3396
3396
  handleView: () => n ? n() : null,
3397
3397
  controls: !1,
3398
- children: /* @__PURE__ */ i(On, { loading: !0 })
3398
+ children: /* @__PURE__ */ i(Rn, { loading: !0 })
3399
3399
  },
3400
3400
  `loading-card-${t}`
3401
3401
  );
@@ -3716,7 +3716,7 @@ const Ni = (e) => {
3716
3716
  const { type: t } = e, n = $i[t];
3717
3717
  return n ? n(e) : null;
3718
3718
  }, ki = (e) => ({
3719
- schema: Oe().required("Requerido").test(
3719
+ schema: Re().required("Requerido").test(
3720
3720
  "non-empty",
3721
3721
  "El valor no puede estar vacío",
3722
3722
  (t) => t != null && t.trim() !== ""
@@ -3731,7 +3731,7 @@ const Ni = (e) => {
3731
3731
  ) : typeof t == "string"
3732
3732
  ),
3733
3733
  value: e
3734
- }), Ri = (e) => ({
3734
+ }), Oi = (e) => ({
3735
3735
  schema: Pe().test(
3736
3736
  "isArrayOrString",
3737
3737
  "Debe ser un array de strings/numbers o un solo string ",
@@ -3740,7 +3740,7 @@ const Ni = (e) => {
3740
3740
  ) : typeof t == "string"
3741
3741
  ),
3742
3742
  value: e
3743
- }), Oi = (e) => {
3743
+ }), Ri = (e) => {
3744
3744
  const t = (e == null ? void 0 : e.from) ?? 0, n = (e == null ? void 0 : e.to) ?? 0;
3745
3745
  return {
3746
3746
  schema: ne({
@@ -3760,12 +3760,12 @@ const Ni = (e) => {
3760
3760
  schema: $e().required("El campo tipo porcentaje es requerido").min(0, "El campo tipo porcentaje no puede ser menor que 0").max(100, "El campo tipo porcentaje no puede ser mayor que 100"),
3761
3761
  value: e
3762
3762
  } : {
3763
- schema: Oe().required("Requerido"),
3763
+ schema: Re().required("Requerido"),
3764
3764
  value: e
3765
3765
  }, Li = {
3766
3766
  [L.LIST_OF_VALUES]: Ii,
3767
- [L.LIST_OF_VALUES_MULTI]: Ri,
3768
- [L.RANGE]: Oi,
3767
+ [L.LIST_OF_VALUES_MULTI]: Oi,
3768
+ [L.RANGE]: Ri,
3769
3769
  [L.GREATER_THAN]: rn,
3770
3770
  [L.LESS_THAN]: rn,
3771
3771
  [L.EQUAL]: rn
@@ -3817,7 +3817,7 @@ function Vi({
3817
3817
  };
3818
3818
  let c;
3819
3819
  const l = {
3820
- ruleName: Oe().required("El nombre de la regla es requerido"),
3820
+ ruleName: Re().required("El nombre de la regla es requerido"),
3821
3821
  value: bt(() => Fi(
3822
3822
  c.values.howToSetTheDecision
3823
3823
  )(
@@ -3925,7 +3925,7 @@ const _i = $.div`
3925
3925
  labelToggle: o,
3926
3926
  name: s,
3927
3927
  valueToggle: c = ""
3928
- } = e, [l, d] = q(t);
3928
+ } = e, [l, d] = Y(t);
3929
3929
  return Be(() => {
3930
3930
  d(t);
3931
3931
  }, [t]), /* @__PURE__ */ b(j, { children: [
@@ -3960,13 +3960,13 @@ const _i = $.div`
3960
3960
  messageEnd: u = "",
3961
3961
  statusStart: h = "pending",
3962
3962
  statusEnd: g = "pending"
3963
- } = e, [f, y] = q(s), [m, T] = q(l), [S, E] = q(d), C = ({ target: F }) => {
3963
+ } = e, [f, y] = Y(s), [m, T] = Y(l), [S, E] = Y(d), C = ({ target: F }) => {
3964
3964
  y(F.checked), r && r(F.checked);
3965
3965
  }, N = (F) => {
3966
3966
  T(F.target.value), t(F);
3967
3967
  }, A = (F) => {
3968
3968
  E(F.target.value), n(F);
3969
- }, R = Se("(max-width: 400px)");
3969
+ }, O = Se("(max-width: 400px)");
3970
3970
  return /* @__PURE__ */ b(j, { children: [
3971
3971
  /* @__PURE__ */ b(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
3972
3972
  /* @__PURE__ */ i(
@@ -4002,12 +4002,12 @@ const _i = $.div`
4002
4002
  /* @__PURE__ */ b(
4003
4003
  v,
4004
4004
  {
4005
- direction: R ? "column" : "row",
4005
+ direction: O ? "column" : "row",
4006
4006
  justifyContent: "space-between",
4007
4007
  gap: "24px",
4008
4008
  children: [
4009
4009
  /* @__PURE__ */ i(
4010
- Re,
4010
+ Oe,
4011
4011
  {
4012
4012
  id: "dateStart",
4013
4013
  label: a,
@@ -4020,7 +4020,7 @@ const _i = $.div`
4020
4020
  }
4021
4021
  ),
4022
4022
  f && /* @__PURE__ */ i(
4023
- Re,
4023
+ Oe,
4024
4024
  {
4025
4025
  id: "dateEnd",
4026
4026
  label: o,
@@ -4520,7 +4520,7 @@ const nl = (e) => {
4520
4520
  }
4521
4521
  ) }),
4522
4522
  /* @__PURE__ */ i(tl, { children: /* @__PURE__ */ i(
4523
- Rt,
4523
+ Ot,
4524
4524
  {
4525
4525
  element: a,
4526
4526
  valueData: Ze(
@@ -4608,7 +4608,7 @@ const nl = (e) => {
4608
4608
  borderRadius: "8px",
4609
4609
  background: !0,
4610
4610
  children: /* @__PURE__ */ i(
4611
- Rt,
4611
+ Ot,
4612
4612
  {
4613
4613
  element: {
4614
4614
  ...A,
@@ -4632,7 +4632,7 @@ const nl = (e) => {
4632
4632
  borderRadius: "8px",
4633
4633
  background: !0,
4634
4634
  children: /* @__PURE__ */ i(
4635
- Rt,
4635
+ Ot,
4636
4636
  {
4637
4637
  element: u.element,
4638
4638
  valueData: u.valueData,
@@ -4650,7 +4650,7 @@ const nl = (e) => {
4650
4650
  borderRadius: "8px",
4651
4651
  background: !0,
4652
4652
  children: /* @__PURE__ */ i(
4653
- Rt,
4653
+ Ot,
4654
4654
  {
4655
4655
  element: h.element,
4656
4656
  valueData: h.valueData,
@@ -4727,7 +4727,7 @@ const nl = (e) => {
4727
4727
  default:
4728
4728
  return String(n);
4729
4729
  }
4730
- }, Ot = (e) => {
4730
+ }, Rt = (e) => {
4731
4731
  if (e == null || e === "") return "";
4732
4732
  const t = [
4733
4733
  "Ene",
@@ -4787,10 +4787,10 @@ const nl = (e) => {
4787
4787
  withEditOption: u = !0
4788
4788
  } = e, g = U.useMemo(() => {
4789
4789
  if (!n) return null;
4790
- const { howToSetTheDecision: I, decisionDataType: _, value: O } = n;
4791
- if (!(I === z.RANGE && _ === W.PERCENTAGE && O && typeof O == "object" && !Array.isArray(O) && "from" in O && "to" in O))
4790
+ const { howToSetTheDecision: I, decisionDataType: _, value: R } = n;
4791
+ if (!(I === z.RANGE && _ === q.PERCENTAGE && R && typeof R == "object" && !Array.isArray(R) && "from" in R && "to" in R))
4792
4792
  return n;
4793
- const { from: H, to: P } = O, X = String(H).trim(), be = String(P).trim();
4793
+ const { from: H, to: P } = R, X = String(H).trim(), be = String(P).trim();
4794
4794
  return {
4795
4795
  ...n,
4796
4796
  i18nValue: `De ${X}% a ${be}%`
@@ -4798,26 +4798,26 @@ const nl = (e) => {
4798
4798
  }, [n]) ?? n, f = !!(g != null && g.effectiveFrom), y = !!(g != null && g.validUntil), m = f ? {
4799
4799
  element: {
4800
4800
  labelName: "Vigencia desde:",
4801
- value: Ot(g.effectiveFrom),
4801
+ value: Rt(g.effectiveFrom),
4802
4802
  howToSetTheDecision: z.EQUAL,
4803
- decisionDataType: W.DATE
4803
+ decisionDataType: q.DATE
4804
4804
  },
4805
4805
  valueData: Ze({
4806
- value: Ot(g.effectiveFrom),
4806
+ value: Rt(g.effectiveFrom),
4807
4807
  howToSetTheDecision: z.EQUAL,
4808
- decisionDataType: W.DATE
4808
+ decisionDataType: q.DATE
4809
4809
  })
4810
4810
  } : null, T = y ? {
4811
4811
  element: {
4812
4812
  labelName: "Vigencia hasta:",
4813
- value: Ot(g.validUntil),
4813
+ value: Rt(g.validUntil),
4814
4814
  howToSetTheDecision: z.EQUAL,
4815
- decisionDataType: W.DATE
4815
+ decisionDataType: q.DATE
4816
4816
  },
4817
4817
  valueData: Ze({
4818
- value: Ot(g.validUntil),
4818
+ value: Rt(g.validUntil),
4819
4819
  howToSetTheDecision: z.EQUAL,
4820
- decisionDataType: W.DATE
4820
+ decisionDataType: q.DATE
4821
4821
  })
4822
4822
  } : null, S = (g == null ? void 0 : g.howToSetTheDecision) || z.EQUAL, E = S === z.RANGE && g && g.value && typeof g.value == "object" && "from" in g.value && "to" in g.value && g.value.from === g.value.to, C = S === z.LIST_OF_VALUES || S === z.LIST_OF_VALUES_MULTI, N = g && (C ? ol(g).list : (() => {
4823
4823
  const I = g.i18nValue;
@@ -4826,40 +4826,40 @@ const nl = (e) => {
4826
4826
  ...g,
4827
4827
  howToSetTheDecision: z.EQUAL,
4828
4828
  value: w
4829
- }), P = g.decisionDataType === W.PERCENTAGE ? "%" : "";
4829
+ }), P = g.decisionDataType === q.PERCENTAGE ? "%" : "";
4830
4830
  return `Del ${H}${P}`.trim();
4831
4831
  }
4832
4832
  const _ = Ze(
4833
4833
  g
4834
4834
  );
4835
- let O = I ?? _;
4836
- return (g == null ? void 0 : g.decisionDataType) === W.PERCENTAGE && typeof O == "string" && !O.includes("%") && (O = `${O}%`), (g == null ? void 0 : g.decisionDataType) === W.PERCENTAGE && typeof O == "number" && (O = `${O}%`), O;
4835
+ let R = I ?? _;
4836
+ return (g == null ? void 0 : g.decisionDataType) === q.PERCENTAGE && typeof R == "string" && !R.includes("%") && (R = `${R}%`), (g == null ? void 0 : g.decisionDataType) === q.PERCENTAGE && typeof R == "number" && (R = `${R}%`), R;
4837
4837
  })()), A = g ? {
4838
4838
  labelName: t && g.labelName || "",
4839
- decisionDataType: g.decisionDataType || W.ALPHABETICAL,
4839
+ decisionDataType: g.decisionDataType || q.ALPHABETICAL,
4840
4840
  value: N,
4841
4841
  howToSetTheDecision: g.i18nValue || E ? z.EQUAL : S,
4842
4842
  validUntil: g.validUntil
4843
- } : null, R = U.useMemo(
4843
+ } : null, O = U.useMemo(
4844
4844
  () => g ? Me(g) : {},
4845
4845
  [g]
4846
- ), F = ((dt = (st = g == null ? void 0 : g.conditionGroups) == null ? void 0 : st.map((I) => I == null ? void 0 : I.ConditionGroupId)) == null ? void 0 : dt.filter(Boolean)) || Object.keys(R), G = F[0] || "group-primary", te = U.useMemo(() => {
4847
- const I = {}, _ = R[G] || [], O = R["group-primary"] || [];
4848
- I["group-primary"] = G === "group-primary" ? O : [..._, ...O];
4846
+ ), F = ((dt = (st = g == null ? void 0 : g.conditionGroups) == null ? void 0 : st.map((I) => I == null ? void 0 : I.ConditionGroupId)) == null ? void 0 : dt.filter(Boolean)) || Object.keys(O), G = F[0] || "group-primary", te = U.useMemo(() => {
4847
+ const I = {}, _ = O[G] || [], R = O["group-primary"] || [];
4848
+ I["group-primary"] = G === "group-primary" ? R : [..._, ...R];
4849
4849
  for (const w of F)
4850
- !w || w === G || w !== "group-primary" && R[w] && (I[w] = R[w]);
4851
- for (const w of Object.keys(R))
4852
- w === "group-primary" || w === G || w in I || (I[w] = R[w]);
4850
+ !w || w === G || w !== "group-primary" && O[w] && (I[w] = O[w]);
4851
+ for (const w of Object.keys(O))
4852
+ w === "group-primary" || w === G || w in I || (I[w] = O[w]);
4853
4853
  return I;
4854
- }, [R, G, F]), ie = U.useMemo(() => {
4854
+ }, [O, G, F]), ie = U.useMemo(() => {
4855
4855
  const I = {};
4856
4856
  return Object.keys(te).forEach((_) => {
4857
- const O = te[_];
4858
- O && Array.isArray(O) ? I[_] = O.map((w) => {
4857
+ const R = te[_];
4858
+ R && Array.isArray(R) ? I[_] = R.map((w) => {
4859
4859
  let H = w.labelName;
4860
4860
  w.timeUnit && w.labelName && (H = gn(w.labelName, w.timeUnit));
4861
4861
  let P = w.value;
4862
- if ((w == null ? void 0 : w.howToSetTheCondition) === z.RANGE && (w == null ? void 0 : w.conditionDataType) === W.PERCENTAGE && (w == null ? void 0 : w.value) && typeof w.value == "object" && !Array.isArray(w.value) && "from" in w.value && "to" in w.value) {
4862
+ if ((w == null ? void 0 : w.howToSetTheCondition) === z.RANGE && (w == null ? void 0 : w.conditionDataType) === q.PERCENTAGE && (w == null ? void 0 : w.value) && typeof w.value == "object" && !Array.isArray(w.value) && "from" in w.value && "to" in w.value) {
4863
4863
  const { from: ae, to: ve } = w.value, Ne = String(ae).trim(), J = String(ve).trim();
4864
4864
  return P = `De ${Ne}% a ${J}%`, {
4865
4865
  ...w,
@@ -4868,7 +4868,7 @@ const nl = (e) => {
4868
4868
  howToSetTheCondition: z.EQUAL
4869
4869
  };
4870
4870
  }
4871
- if ((w == null ? void 0 : w.howToSetTheCondition) === z.GREATER_THAN && (w == null ? void 0 : w.conditionDataType) === W.PERCENTAGE && (w == null ? void 0 : w.value) !== void 0 && (w == null ? void 0 : w.value) !== null && (w == null ? void 0 : w.value) !== "") {
4871
+ if ((w == null ? void 0 : w.howToSetTheCondition) === z.GREATER_THAN && (w == null ? void 0 : w.conditionDataType) === q.PERCENTAGE && (w == null ? void 0 : w.value) !== void 0 && (w == null ? void 0 : w.value) !== null && (w == null ? void 0 : w.value) !== "") {
4872
4872
  const ae = w.value;
4873
4873
  return P = `Mayor a ${String(ae).trim()}%`, {
4874
4874
  ...w,
@@ -4877,7 +4877,7 @@ const nl = (e) => {
4877
4877
  howToSetTheCondition: z.EQUAL
4878
4878
  };
4879
4879
  }
4880
- if ((w == null ? void 0 : w.howToSetTheCondition) === z.LESS_THAN && (w == null ? void 0 : w.conditionDataType) === W.PERCENTAGE && (w == null ? void 0 : w.value) !== void 0 && (w == null ? void 0 : w.value) !== null && (w == null ? void 0 : w.value) !== "") {
4880
+ if ((w == null ? void 0 : w.howToSetTheCondition) === z.LESS_THAN && (w == null ? void 0 : w.conditionDataType) === q.PERCENTAGE && (w == null ? void 0 : w.value) !== void 0 && (w == null ? void 0 : w.value) !== null && (w == null ? void 0 : w.value) !== "") {
4881
4881
  const ae = w.value;
4882
4882
  return P = `Menor a ${String(ae).trim()}%`, {
4883
4883
  ...w,
@@ -4892,23 +4892,23 @@ const nl = (e) => {
4892
4892
  ) : P = Wn(
4893
4893
  w.value,
4894
4894
  w.howToSetTheCondition
4895
- )), (w == null ? void 0 : w.conditionDataType) === W.PERCENTAGE && typeof P == "string" && !P.includes("%") && (P = `${P}%`), {
4895
+ )), (w == null ? void 0 : w.conditionDataType) === q.PERCENTAGE && typeof P == "string" && !P.includes("%") && (P = `${P}%`), {
4896
4896
  ...w,
4897
4897
  labelName: H,
4898
4898
  value: P,
4899
4899
  howToSetTheCondition: w.i18nValue ? z.EQUAL : w.howToSetTheCondition
4900
4900
  };
4901
- }) : I[_] = O;
4901
+ }) : I[_] = R;
4902
4902
  }), I;
4903
4903
  }, [te]), ce = Mr(
4904
4904
  ie,
4905
4905
  (I) => !I.hidden
4906
4906
  ), re = U.useMemo(() => {
4907
4907
  const I = Object.entries(ce).map(
4908
- ([O, w]) => [O, w.filter(al)]
4908
+ ([R, w]) => [R, w.filter(al)]
4909
4909
  ), _ = {};
4910
- for (const [O, w] of I)
4911
- w.length > 0 && (_[O] = w);
4910
+ for (const [R, w] of I)
4911
+ w.length > 0 && (_[R] = w);
4912
4912
  return _;
4913
4913
  }, [ce]), V = U.useMemo(() => {
4914
4914
  const I = Object.keys(re);
@@ -4924,7 +4924,7 @@ const nl = (e) => {
4924
4924
  };
4925
4925
  }), [Ve, Ye] = U.useState(
4926
4926
  ((ct = De[0]) == null ? void 0 : ct.id) ?? "mainCondition"
4927
- ), _e = (I) => Ye(I), Ue = M[Ve] ?? V[0] ?? "group-primary", Q = re[Ue] ?? [], Y = V.length > 1, ee = Array.from({ length: 5 }), Et = !!(!r && g && A), it = Q.length < 2 ? "start" : "space-between", lt = `N° ${String((a ?? 0) + 1).padStart(2, "0")}`;
4927
+ ), _e = (I) => Ye(I), Ue = M[Ve] ?? V[0] ?? "group-primary", Q = re[Ue] ?? [], W = V.length > 1, ee = Array.from({ length: 5 }), Et = !!(!r && g && A), it = Q.length < 2 ? "start" : "space-between", lt = `N° ${String((a ?? 0) + 1).padStart(2, "0")}`;
4928
4928
  return /* @__PURE__ */ i(
4929
4929
  nl,
4930
4930
  {
@@ -4947,7 +4947,7 @@ const nl = (e) => {
4947
4947
  selectedTab: Ve,
4948
4948
  onTabChange: _e,
4949
4949
  currentConditions: Q,
4950
- hasMultipleGroups: Y,
4950
+ hasMultipleGroups: W,
4951
4951
  editionMode: p,
4952
4952
  withEditOption: u
4953
4953
  }
@@ -5198,7 +5198,7 @@ const ll = $.div`
5198
5198
  c
5199
5199
  );
5200
5200
  }, gl = (e) => ({
5201
- schema: Oe().required("Requerido").test(
5201
+ schema: Re().required("Requerido").test(
5202
5202
  "non-empty",
5203
5203
  "El valor no puede estar vacío",
5204
5204
  (t) => t != null && t.trim() !== ""
@@ -5272,8 +5272,8 @@ const ll = $.div`
5272
5272
  value: n
5273
5273
  } : {
5274
5274
  schema: ne({
5275
- from: Oe().required("Requerido"),
5276
- to: Oe().required("Requerido")
5275
+ from: Re().required("Requerido"),
5276
+ to: Re().required("Requerido")
5277
5277
  }),
5278
5278
  value: n
5279
5279
  };
@@ -5368,7 +5368,7 @@ function Sl({
5368
5368
  }
5369
5369
  ), c = {
5370
5370
  ruleName: e.ruleName || "",
5371
- decisionDataType: e.decisionDataType || W.ALPHABETICAL,
5371
+ decisionDataType: e.decisionDataType || q.ALPHABETICAL,
5372
5372
  howToSetTheDecision: e.howToSetTheDecision || "",
5373
5373
  value: e.value || "",
5374
5374
  effectiveFrom: e.effectiveFrom || "",
@@ -5380,7 +5380,7 @@ function Sl({
5380
5380
  };
5381
5381
  let l;
5382
5382
  const d = {
5383
- ruleName: Oe().required("El nombre de la decision es requerido"),
5383
+ ruleName: Re().required("El nombre de la decision es requerido"),
5384
5384
  value: bt(() => {
5385
5385
  const h = l.values.howToSetTheDecision;
5386
5386
  return h === ge.RANGE && or(e) ? Tl : or(e) ? bn : rr(h)(
@@ -5402,16 +5402,16 @@ function Sl({
5402
5402
  const S = {};
5403
5403
  for (const [E, C] of Object.entries(f)) {
5404
5404
  const N = y == null ? void 0 : y[E], A = {};
5405
- C.forEach((R) => {
5406
- const F = N == null ? void 0 : N[R.conditionName];
5405
+ C.forEach((O) => {
5406
+ const F = N == null ? void 0 : N[O.conditionName];
5407
5407
  if (!on(F)) return;
5408
5408
  const G = yn(F), ie = rr(
5409
- R.howToSetTheCondition
5409
+ O.howToSetTheCondition
5410
5410
  )(
5411
5411
  G,
5412
- R.conditionDataType
5412
+ O.conditionDataType
5413
5413
  ).schema;
5414
- A[R.conditionName] = wl(ie);
5414
+ A[O.conditionName] = wl(ie);
5415
5415
  }), S[E] = ne(A);
5416
5416
  }
5417
5417
  return ne(S);
@@ -5430,10 +5430,10 @@ function Sl({
5430
5430
  Object.entries(r).map(([y, m]) => {
5431
5431
  var E;
5432
5432
  const T = ((E = h.conditionsThatEstablishesTheDecision) == null ? void 0 : E[y]) || {}, S = m.map((C) => {
5433
- const N = C.conditionName, A = T[N], R = yn(A);
5433
+ const N = C.conditionName, A = T[N], O = yn(A);
5434
5434
  return {
5435
5435
  ...C,
5436
- value: R
5436
+ value: O
5437
5437
  };
5438
5438
  }).filter((C) => on(C.value));
5439
5439
  return [y, S];
@@ -5519,7 +5519,7 @@ const xl = $.div`
5519
5519
  messageEnd: l = "",
5520
5520
  statusStart: d = "pending",
5521
5521
  statusEnd: p = "pending"
5522
- } = e, [u, h] = q(o), [g, f] = q(s), y = (S) => {
5522
+ } = e, [u, h] = Y(o), [g, f] = Y(s), y = (S) => {
5523
5523
  h(S.target.value), t(S);
5524
5524
  }, m = (S) => {
5525
5525
  f(S.target.value), n(S);
@@ -5532,7 +5532,7 @@ const xl = $.div`
5532
5532
  gap: "24px",
5533
5533
  children: [
5534
5534
  /* @__PURE__ */ i(
5535
- Re,
5535
+ Oe,
5536
5536
  {
5537
5537
  id: "dateStart",
5538
5538
  label: r,
@@ -5547,7 +5547,7 @@ const xl = $.div`
5547
5547
  }
5548
5548
  ),
5549
5549
  /* @__PURE__ */ i(
5550
- Re,
5550
+ Oe,
5551
5551
  {
5552
5552
  id: "dateEnd",
5553
5553
  label: a,
@@ -5720,7 +5720,7 @@ function $l(e) {
5720
5720
  return e.replace(/\s+/g, " ").trim();
5721
5721
  }
5722
5722
  function kl(e) {
5723
- const t = Il(e).toLowerCase(), n = /\b(s|es)\b/.test(Rl(e).toLowerCase()) && !t.endsWith("és");
5723
+ const t = Il(e).toLowerCase(), n = /\b(s|es)\b/.test(Ol(e).toLowerCase()) && !t.endsWith("és");
5724
5724
  return ({
5725
5725
  mano: "f",
5726
5726
  día: "m",
@@ -5732,18 +5732,18 @@ function kl(e) {
5732
5732
  antigüedad: "f",
5733
5733
  antiguedad: "f",
5734
5734
  puntaje: "m"
5735
- }[t] ?? Ol(t)) === "f" ? n ? "las" : "la" : n ? "los" : "el";
5735
+ }[t] ?? Rl(t)) === "f" ? n ? "las" : "la" : n ? "los" : "el";
5736
5736
  }
5737
5737
  function Il(e) {
5738
5738
  return (e.toLowerCase().split(
5739
5739
  /\bdel\b|\bde la\b|\bde los\b|\bde las\b|\bde\b/
5740
5740
  )[0].trim().split(/\s+/)[0] ?? "").normalize("NFD").replace(/^[^a-záéíóúüñ]+/i, "");
5741
5741
  }
5742
- function Rl(e) {
5742
+ function Ol(e) {
5743
5743
  const t = e.trim().split(/\s+/);
5744
5744
  return t[t.length - 1] || "";
5745
5745
  }
5746
- function Ol(e) {
5746
+ function Rl(e) {
5747
5747
  return /(?:dad|tad|tud|umbre|ción|sión|ie|sis|itis)$/.test(e) || e.endsWith("ez") || e.endsWith("eza") ? "f" : /(?:aje|or|án|ambre)$/.test(e) ? "m" : e.endsWith("a") ? "f" : "m";
5748
5748
  }
5749
5749
  function Ll(e) {
@@ -5824,15 +5824,15 @@ const ut = (e) => {
5824
5824
  ] : [], S = {};
5825
5825
  let E = 1;
5826
5826
  const C = T.map((I) => {
5827
- const _ = I === m, O = _ ? "mainCondition" : `alternateCondition-${E++}`;
5828
- return S[O] = I, {
5829
- id: O,
5830
- label: _ ? "Condición principal" : mn(I, Number(O.split("-").at(-1))),
5827
+ const _ = I === m, R = _ ? "mainCondition" : `alternateCondition-${E++}`;
5828
+ return S[R] = I, {
5829
+ id: R,
5830
+ label: _ ? "Condición principal" : mn(I, Number(R.split("-").at(-1))),
5831
5831
  isDisabled: !1
5832
5832
  };
5833
5833
  }), [N, A] = U.useState(
5834
5834
  ((dt = C[0]) == null ? void 0 : dt.id) ?? "mainCondition"
5835
- ), R = (I) => A(I), F = S[N] ?? m ?? "group-primary";
5835
+ ), O = (I) => A(I), F = S[N] ?? m ?? "group-primary";
5836
5836
  U.useEffect(() => {
5837
5837
  var H;
5838
5838
  const I = (H = d.values) == null ? void 0 : H.conditionsThatEstablishesTheDecision;
@@ -5840,11 +5840,11 @@ const ut = (e) => {
5840
5840
  if (I && typeof I == "object" && (_ = Object.values(I).some(
5841
5841
  (P) => P && typeof P == "object" && Object.keys(P).length > 0
5842
5842
  )), _) return;
5843
- const O = Me(t);
5844
- if (!O || Object.keys(O).length === 0)
5843
+ const R = Me(t);
5844
+ if (!R || Object.keys(R).length === 0)
5845
5845
  return;
5846
5846
  const w = Object.fromEntries(
5847
- Object.entries(O).map(([P, X]) => {
5847
+ Object.entries(R).map(([P, X]) => {
5848
5848
  const be = Object.fromEntries(
5849
5849
  X.map((ye) => {
5850
5850
  const ae = ut(ye.howToSetTheCondition), ve = ye.value ?? pt(ae);
@@ -5863,7 +5863,7 @@ const ut = (e) => {
5863
5863
  var X;
5864
5864
  const I = (X = d.values) == null ? void 0 : X.conditionsThatEstablishesTheDecision;
5865
5865
  if (!I || typeof I != "object") return;
5866
- const _ = Me(u), O = Object.entries(I).map(
5866
+ const _ = Me(u), R = Object.entries(I).map(
5867
5867
  ([be, ye]) => {
5868
5868
  const ae = _[be] || [], ve = Object.keys(ye).map((Ne) => {
5869
5869
  const J = ye[Ne], ue = ae.find((ta) => ta.conditionName === Ne) || {}, Zt = ut(
@@ -5881,11 +5881,11 @@ const ut = (e) => {
5881
5881
  conditionsThatEstablishesTheDecision: ve
5882
5882
  };
5883
5883
  }
5884
- ), w = d.values.conditionGroups, H = JSON.stringify(O), P = JSON.stringify(w ?? []);
5885
- H !== P && d.setFieldValue("conditionGroups", O, !1);
5884
+ ), w = d.values.conditionGroups, H = JSON.stringify(R), P = JSON.stringify(w ?? []);
5885
+ H !== P && d.setFieldValue("conditionGroups", R, !1);
5886
5886
  }, [(ct = d.values) == null ? void 0 : ct.conditionsThatEstablishesTheDecision, u]);
5887
5887
  const G = U.useMemo(() => {
5888
- const I = Object.keys(f), O = (m != null ? [
5888
+ const I = Object.keys(f), R = (m != null ? [
5889
5889
  ...I.filter((w) => w === m),
5890
5890
  ...I.filter((w) => w !== m)
5891
5891
  ] : I).map((w) => {
@@ -5918,7 +5918,7 @@ const ut = (e) => {
5918
5918
  });
5919
5919
  return [w, P];
5920
5920
  });
5921
- return Object.fromEntries(O);
5921
+ return Object.fromEntries(R);
5922
5922
  }, [f, d.values, m]), te = G[F] ?? [], ie = G[m ?? "group-primary"] ?? [], ce = {
5923
5923
  decisionDataType: t.decisionDataType,
5924
5924
  howToSetTheCondition: t.howToSetTheDecision,
@@ -5931,16 +5931,16 @@ const ut = (e) => {
5931
5931
  const I = d.errors.conditionsThatEstablishesTheDecision;
5932
5932
  if (!I) return;
5933
5933
  if (typeof I == "string") return I;
5934
- const _ = (O) => {
5935
- if (O) {
5936
- if (typeof O == "string") return O;
5937
- if (Array.isArray(O))
5938
- for (const w of O) {
5934
+ const _ = (R) => {
5935
+ if (R) {
5936
+ if (typeof R == "string") return R;
5937
+ if (Array.isArray(R))
5938
+ for (const w of R) {
5939
5939
  const H = _(w);
5940
5940
  if (H) return H;
5941
5941
  }
5942
- else if (typeof O == "object")
5943
- for (const w of Object.values(O)) {
5942
+ else if (typeof R == "object")
5943
+ for (const w of Object.values(R)) {
5944
5944
  const H = _(w);
5945
5945
  if (H) return H;
5946
5946
  }
@@ -5950,10 +5950,10 @@ const ut = (e) => {
5950
5950
  }, [d.errors.conditionsThatEstablishesTheDecision]), Ve = d.submitCount > 0 && !!De, Ye = (I) => {
5951
5951
  const _ = (I == null ? void 0 : I.__howToSet) ?? ut(I == null ? void 0 : I.howToSetTheCondition);
5952
5952
  return pt(_);
5953
- }, _e = (I, _, O) => {
5953
+ }, _e = (I, _, R) => {
5954
5954
  var X, be, ye, ae, ve;
5955
5955
  const w = `conditionsThatEstablishesTheDecision.${I}.${_}`, H = (ye = (be = (X = d.values) == null ? void 0 : X.conditionsThatEstablishesTheDecision) == null ? void 0 : be[I]) == null ? void 0 : ye[_];
5956
- H && typeof H == "object" && !Array.isArray(H) ? d.setFieldValue(`${w}.value`, O, !1) : d.setFieldValue(w, O, !1);
5956
+ H && typeof H == "object" && !Array.isArray(H) ? d.setFieldValue(`${w}.value`, R, !1) : d.setFieldValue(w, R, !1);
5957
5957
  const P = (ae = d.values) == null ? void 0 : ae.conditionGroups;
5958
5958
  if (Array.isArray(P)) {
5959
5959
  const Ne = P.findIndex((J) => (J == null ? void 0 : J.ConditionGroupId) === I);
@@ -5963,12 +5963,12 @@ const ut = (e) => {
5963
5963
  );
5964
5964
  if (J >= 0) {
5965
5965
  const ue = JSON.parse(JSON.stringify(P));
5966
- ue[Ne].conditionsThatEstablishesTheDecision[J].value = O, d.setFieldValue("conditionGroups", ue, !1);
5966
+ ue[Ne].conditionsThatEstablishesTheDecision[J].value = R, d.setFieldValue("conditionGroups", ue, !1);
5967
5967
  }
5968
5968
  }
5969
5969
  }
5970
5970
  }, Ue = (I) => {
5971
- const [_, ...O] = I.split("."), w = O.join("."), H = Object.values(h).flat().find((X) => X.conditionName === w), P = Ye(H || {});
5971
+ const [_, ...R] = I.split("."), w = R.join("."), H = Object.values(h).flat().find((X) => X.conditionName === w), P = Ye(H || {});
5972
5972
  _e(_, w, P), d.setFieldTouched(
5973
5973
  `conditionsThatEstablishesTheDecision.${_}.${w}`,
5974
5974
  !1,
@@ -5976,10 +5976,10 @@ const ut = (e) => {
5976
5976
  );
5977
5977
  }, Q = () => {
5978
5978
  (h[F] ?? []).forEach((_) => {
5979
- const O = ut(_ == null ? void 0 : _.howToSetTheCondition), w = pt(O);
5979
+ const R = ut(_ == null ? void 0 : _.howToSetTheCondition), w = pt(R);
5980
5980
  _e(F, _.conditionName, w);
5981
5981
  });
5982
- }, [Y, ee] = U.useState(!1);
5982
+ }, [W, ee] = U.useState(!1);
5983
5983
  return /* @__PURE__ */ i(
5984
5984
  Dl,
5985
5985
  {
@@ -5991,7 +5991,7 @@ const ut = (e) => {
5991
5991
  normalizedDecision: ce,
5992
5992
  onCancel: r,
5993
5993
  onRedefineCurrentTab: Q,
5994
- onTabChange: R,
5994
+ onTabChange: O,
5995
5995
  onClearCondition: (I) => {
5996
5996
  Ue(I), a == null || a(I);
5997
5997
  },
@@ -6003,7 +6003,7 @@ const ut = (e) => {
6003
6003
  visibleConditionsByGroup: G,
6004
6004
  handleToggleNoneChange: p,
6005
6005
  portalId: "redefine-confirm-portal",
6006
- showRedefineConfirm: Y,
6006
+ showRedefineConfirm: W,
6007
6007
  onOpenRedefineConfirm: () => ee(!0),
6008
6008
  onCloseRedefineConfirm: () => ee(!1),
6009
6009
  onConfirmRedefine: () => {
@@ -6042,7 +6042,7 @@ const ut = (e) => {
6042
6042
  min-height: auto;
6043
6043
  }
6044
6044
  `, Ul = (e) => {
6045
- const { options: t } = e, [n, r] = q([]), a = (d) => {
6045
+ const { options: t } = e, [n, r] = Y([]), a = (d) => {
6046
6046
  r((p) => {
6047
6047
  if (p.some((g) => g.id === d))
6048
6048
  return p.filter((g) => g.id !== d);
@@ -6162,10 +6162,10 @@ const ut = (e) => {
6162
6162
  withEditOption: C,
6163
6163
  withTerm: N,
6164
6164
  configurateDecisionOptions: A = [],
6165
- configureDecisionModal: R,
6165
+ configureDecisionModal: O,
6166
6166
  handleCloseRulesModal: F = () => {
6167
6167
  }
6168
- } = e, [G, te] = q(null), { renderedCards: ie } = pl({
6168
+ } = e, [G, te] = Y(null), { renderedCards: ie } = pl({
6169
6169
  cardTitle: t,
6170
6170
  controls: n,
6171
6171
  customTitleContentAddCard: r,
@@ -6239,7 +6239,7 @@ const ut = (e) => {
6239
6239
  children: ie
6240
6240
  }
6241
6241
  ) })) }) }) }),
6242
- R && /* @__PURE__ */ i(
6242
+ O && /* @__PURE__ */ i(
6243
6243
  jl,
6244
6244
  {
6245
6245
  options: A,
@@ -6312,7 +6312,7 @@ function Hl(e) {
6312
6312
  );
6313
6313
  }
6314
6314
  const ql = (e, t) => {
6315
- const [n, r] = q([]), [a, o] = q([]), [s, c] = q(!1), l = Ke(null);
6315
+ const [n, r] = Y([]), [a, o] = Y([]), [s, c] = Y(!1), l = Ke(null);
6316
6316
  return Be(() => {
6317
6317
  if (!e.current || !l.current) return;
6318
6318
  const d = e.current, p = l.current, u = () => {
@@ -6408,7 +6408,7 @@ const Yl = $.div`
6408
6408
  }
6409
6409
  `, Jl = (e) => {
6410
6410
  var h, g, f, y, m, T;
6411
- const { id: t, label: n, leadingIcon: r, onClose: a } = e, [o, s] = q(!1), c = () => s(!0), l = () => s(!1), d = En(Dn), p = ((f = (g = (h = d == null ? void 0 : d.input) == null ? void 0 : h.option) == null ? void 0 : g.appearance) == null ? void 0 : f.hover) ?? vn.option.appearance.hover, u = ((T = (m = (y = d == null ? void 0 : d.input) == null ? void 0 : y.option) == null ? void 0 : m.appearance) == null ? void 0 : T.regular) ?? vn.option.appearance.regular;
6411
+ const { id: t, label: n, leadingIcon: r, onClose: a } = e, [o, s] = Y(!1), c = () => s(!0), l = () => s(!1), d = En(Dn), p = ((f = (g = (h = d == null ? void 0 : d.input) == null ? void 0 : h.option) == null ? void 0 : g.appearance) == null ? void 0 : f.hover) ?? vn.option.appearance.hover, u = ((T = (m = (y = d == null ? void 0 : d.input) == null ? void 0 : y.option) == null ? void 0 : m.appearance) == null ? void 0 : T.regular) ?? vn.option.appearance.regular;
6412
6412
  return /* @__PURE__ */ i(
6413
6413
  Xl,
6414
6414
  {
@@ -6473,14 +6473,14 @@ const Yl = $.div`
6473
6473
  hidden: u,
6474
6474
  showOverflowIndicator: h,
6475
6475
  measurementRef: g
6476
- } = ql(c, t), [f, y] = q(!1), m = (N) => {
6476
+ } = ql(c, t), [f, y] = Y(!1), m = (N) => {
6477
6477
  N.stopPropagation(), y((A) => !A);
6478
6478
  };
6479
6479
  Be(() => {
6480
6480
  const N = (A) => {
6481
6481
  var G, te;
6482
- const R = A.target;
6483
- !((G = l.current) != null && G.contains(R)) && !((te = d.current) != null && te.contains(R)) && y(!1);
6482
+ const O = A.target;
6483
+ !((G = l.current) != null && G.contains(O)) && !((te = d.current) != null && te.contains(O)) && y(!1);
6484
6484
  };
6485
6485
  return f && window.addEventListener("mousedown", N), () => window.removeEventListener("mousedown", N);
6486
6486
  }, [f]);
@@ -6490,8 +6490,8 @@ const Yl = $.div`
6490
6490
  label: N.label,
6491
6491
  icon: N.icon
6492
6492
  })), C = (N) => {
6493
- var A, R;
6494
- (R = (A = u.find((F) => F.label === N)) == null ? void 0 : A.onClose) == null || R.call(A), y(!1);
6493
+ var A, O;
6494
+ (O = (A = u.find((F) => F.label === N)) == null ? void 0 : A.onClose) == null || O.call(A), y(!1);
6495
6495
  };
6496
6496
  return /* @__PURE__ */ b(Hl, { borderRadius: "8px", width: "100%", children: [
6497
6497
  /* @__PURE__ */ i(Wl, { ref: g, children: t.map((N) => /* @__PURE__ */ i("div", { "data-filter-tag": "true", children: /* @__PURE__ */ i(
@@ -6719,7 +6719,7 @@ const Yl = $.div`
6719
6719
  } : n;
6720
6720
  });
6721
6721
  }, Kl = (e) => ({
6722
- schema: Oe().required("Requerido").test(
6722
+ schema: Re().required("Requerido").test(
6723
6723
  "non-empty",
6724
6724
  "El valor no puede estar vacío",
6725
6725
  (t) => t != null && t.trim() !== ""
@@ -6763,7 +6763,7 @@ const Yl = $.div`
6763
6763
  schema: $e().required("El campo tipo porcentaje es requerido").min(0, "El campo tipo porcentaje no puede ser menor que 0").max(100, "El campo tipo porcentaje no puede ser mayor que 100"),
6764
6764
  value: e
6765
6765
  } : {
6766
- schema: Oe().required("Requerido"),
6766
+ schema: Re().required("Requerido"),
6767
6767
  value: e
6768
6768
  }, rs = {
6769
6769
  [L.LIST_OF_VALUES]: es,
@@ -6792,7 +6792,7 @@ function as({
6792
6792
  };
6793
6793
  let a;
6794
6794
  const o = {
6795
- ruleName: Oe().required("El nombre de la regla es requerido"),
6795
+ ruleName: Re().required("El nombre de la regla es requerido"),
6796
6796
  value: bt(() => lr(
6797
6797
  a.values.howToSetTheDecision
6798
6798
  )(
@@ -6948,7 +6948,7 @@ const os = $.div`
6948
6948
  labelToggle: o,
6949
6949
  name: s,
6950
6950
  valueToggle: c = ""
6951
- } = e, [l, d] = q(t), p = (u) => {
6951
+ } = e, [l, d] = Y(t), p = (u) => {
6952
6952
  d(u.target.checked), r(u);
6953
6953
  };
6954
6954
  return Be(() => {
@@ -6983,13 +6983,13 @@ const os = $.div`
6983
6983
  messageEnd: u = "",
6984
6984
  statusStart: h = "pending",
6985
6985
  statusEnd: g = "pending"
6986
- } = e, [f, y] = q(s), [m, T] = q(l), [S, E] = q(d), C = ({ target: F }) => {
6986
+ } = e, [f, y] = Y(s), [m, T] = Y(l), [S, E] = Y(d), C = ({ target: F }) => {
6987
6987
  y(F.checked), r && r(F.checked);
6988
6988
  }, N = (F) => {
6989
6989
  T(F.target.value), t(F);
6990
6990
  }, A = (F) => {
6991
6991
  E(F.target.value), n(F);
6992
- }, R = Se("(max-width: 400px)");
6992
+ }, O = Se("(max-width: 400px)");
6993
6993
  return /* @__PURE__ */ b(j, { children: [
6994
6994
  /* @__PURE__ */ b(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
6995
6995
  /* @__PURE__ */ i(
@@ -7025,12 +7025,12 @@ const os = $.div`
7025
7025
  /* @__PURE__ */ b(
7026
7026
  v,
7027
7027
  {
7028
- direction: R ? "column" : "row",
7028
+ direction: O ? "column" : "row",
7029
7029
  justifyContent: "space-between",
7030
7030
  gap: "24px",
7031
7031
  children: [
7032
7032
  /* @__PURE__ */ i(
7033
- Re,
7033
+ Oe,
7034
7034
  {
7035
7035
  id: "dateStart",
7036
7036
  label: a,
@@ -7043,7 +7043,7 @@ const os = $.div`
7043
7043
  }
7044
7044
  ),
7045
7045
  f && /* @__PURE__ */ i(
7046
- Re,
7046
+ Oe,
7047
7047
  {
7048
7048
  id: "dateEnd",
7049
7049
  label: o,
@@ -7735,11 +7735,11 @@ function $s({
7735
7735
  handleNodePointerdown: Hs,
7736
7736
  handleNodeDragenter: dd,
7737
7737
  handleNodeDragleave: cd,
7738
- handleParentDrop: Os,
7738
+ handleParentDrop: Rs,
7739
7739
  multiDrag: r.multiDrag ?? !1,
7740
7740
  nativeDrag: r.nativeDrag ?? !0,
7741
7741
  performSort: ks,
7742
- performTransfer: Rs,
7742
+ performTransfer: Os,
7743
7743
  root: r.root ?? document,
7744
7744
  setupNode: Fs,
7745
7745
  setupNodeRemap: Jr,
@@ -7867,7 +7867,7 @@ function Is(e, t) {
7867
7867
  const n = e.targetData.parent.data.enabledNodes[0];
7868
7868
  n && (t.selectedState && t.selectedState.parent.el !== e.targetData.parent.el ? Je(e.targetData.parent, n, t) : t.selectedState || Je(e.targetData.parent, n, t));
7869
7869
  }
7870
- function Rs({
7870
+ function Os({
7871
7871
  currentParent: e,
7872
7872
  targetParent: t,
7873
7873
  initialParent: n,
@@ -7907,7 +7907,7 @@ function at(e, t) {
7907
7907
  function Tn(e, t, n) {
7908
7908
  t.setValues(n, e);
7909
7909
  }
7910
- function Os(e, t) {
7910
+ function Rs(e, t) {
7911
7911
  qe(e.e), He = !0;
7912
7912
  const n = t.initialParent.data.config.handleEnd;
7913
7913
  n(t);
@@ -8886,7 +8886,7 @@ function hr(e) {
8886
8886
  }));
8887
8887
  }
8888
8888
  function Td(e, t = {}) {
8889
- const n = Ke(null), [r, a] = q(e);
8889
+ const n = Ke(null), [r, a] = Y(e);
8890
8890
  function o(s = {}) {
8891
8891
  hr({ parent: n, state: [r, a], ...s });
8892
8892
  }
@@ -8958,8 +8958,8 @@ const gr = {
8958
8958
  ), T = (C) => {
8959
8959
  var F;
8960
8960
  if (l) return;
8961
- const N = C.target, A = (F = N == null ? void 0 : N.closest) == null ? void 0 : F.call(N, "li.dnd-item"), R = (A == null ? void 0 : A.getAttribute("data-label")) || null;
8962
- R && (f(R), m(R));
8961
+ const N = C.target, A = (F = N == null ? void 0 : N.closest) == null ? void 0 : F.call(N, "li.dnd-item"), O = (A == null ? void 0 : A.getAttribute("data-label")) || null;
8962
+ O && (f(O), m(O));
8963
8963
  }, S = U.useCallback(() => {
8964
8964
  l || (f(null), m(null));
8965
8965
  }, [m, l]);
@@ -8973,10 +8973,10 @@ const gr = {
8973
8973
  if (l) return;
8974
8974
  const C = y.current;
8975
8975
  if (h.length !== C.length && h.length === C.length + 1) {
8976
- const N = new Set(C), A = h.find((R) => !N.has(R)) || null;
8976
+ const N = new Set(C), A = h.find((O) => !N.has(O)) || null;
8977
8977
  if (A) {
8978
- const R = n === "left" ? "right" : "left";
8979
- c == null || c({ item: A, from: R, to: n });
8978
+ const O = n === "left" ? "right" : "left";
8979
+ c == null || c({ item: A, from: O, to: n });
8980
8980
  }
8981
8981
  }
8982
8982
  y.current = h;
@@ -9097,7 +9097,7 @@ const gr = {
9097
9097
  }
9098
9098
  }
9099
9099
  }
9100
- `, Rc = (e) => /* @__PURE__ */ i(xd, { children: /* @__PURE__ */ i(Z, { ...e }) }), Cd = $.div`
9100
+ `, Oc = (e) => /* @__PURE__ */ i(xd, { children: /* @__PURE__ */ i(Z, { ...e }) }), Cd = $.div`
9101
9101
  display: flex;
9102
9102
  justify-content: space-between;
9103
9103
  align-items: center;
@@ -9126,7 +9126,7 @@ const gr = {
9126
9126
  }
9127
9127
  }
9128
9128
  }
9129
- `, Oc = (e) => {
9129
+ `, Rc = (e) => {
9130
9130
  const { handleBack: t, handleNext: n, disabledBack: r, disabledNext: a, textValues: o } = e;
9131
9131
  return /* @__PURE__ */ b(Cd, { children: [
9132
9132
  /* @__PURE__ */ i(
@@ -9213,10 +9213,10 @@ const gr = {
9213
9213
  } catch (c) {
9214
9214
  return console.warn(`[Translation] Failed for: "${e}"`, c), e;
9215
9215
  }
9216
- }, Rd = (e) => typeof e == "string" && e.trim().length > 0, br = async (e, t, n) => {
9216
+ }, Od = (e) => typeof e == "string" && e.trim().length > 0, br = async (e, t, n) => {
9217
9217
  const r = await Promise.all(
9218
9218
  Object.entries(e).map(async ([a, o]) => {
9219
- if (Rd(o)) {
9219
+ if (Od(o)) {
9220
9220
  const s = await Id(o, t, n);
9221
9221
  return [a, s];
9222
9222
  } else if (Array.isArray(o)) {
@@ -9235,11 +9235,11 @@ const gr = {
9235
9235
  );
9236
9236
  return Object.fromEntries(r);
9237
9237
  };
9238
- function Od(e) {
9238
+ function Rd(e) {
9239
9239
  return typeof e == "function";
9240
9240
  }
9241
9241
  function Fn(e, t) {
9242
- return Od(e) ? e(t) : e.split(".").reduce((n, r) => n ? n[r] : void 0, t);
9242
+ return Rd(e) ? e(t) : e.split(".").reduce((n, r) => n ? n[r] : void 0, t);
9243
9243
  }
9244
9244
  const Ld = {
9245
9245
  1: "1fr",
@@ -9780,7 +9780,7 @@ const tc = $.div`
9780
9780
  width: 100%;
9781
9781
  cursor: pointer;
9782
9782
  `, rc = (e) => {
9783
- const { title: t, defaultOpen: n = !0, children: r } = e, [a, o] = q(n);
9783
+ const { title: t, defaultOpen: n = !0, children: r } = e, [a, o] = Y(n);
9784
9784
  return /* @__PURE__ */ b(tc, { children: [
9785
9785
  /* @__PURE__ */ b(nc, { onClick: () => {
9786
9786
  o(!a);
@@ -10111,19 +10111,19 @@ function _c(e) {
10111
10111
  ) }, `${p.id}-box`)) });
10112
10112
  }
10113
10113
  export {
10114
- Oc as BackAndNextButton,
10114
+ Rc as BackAndNextButton,
10115
10115
  Dt as BusinessRuleCard,
10116
10116
  _r as BusinessRuleCardNew,
10117
- On as BusinessRuleView,
10117
+ Rn as BusinessRuleView,
10118
10118
  Pr as BusinessRuleViewNew,
10119
10119
  vc as BusinessRules,
10120
10120
  wc as BusinessRulesNew,
10121
10121
  Tc as BusinessRulesWithGroup,
10122
- Or as Checkpicker,
10122
+ Rr as Checkpicker,
10123
10123
  jt as DecisionConditionRender,
10124
10124
  Un as DecisionConditionRenderNew,
10125
10125
  et as DecisionViewConditionRenderer,
10126
- Rt as DecisionViewConditionRendererNew,
10126
+ Ot as DecisionViewConditionRendererNew,
10127
10127
  Ic as DragAndDropBoxes,
10128
10128
  fr as DraggableList,
10129
10129
  bs as DropdownMenu,
@@ -10133,24 +10133,24 @@ export {
10133
10133
  $o as DynamicViewField,
10134
10134
  Po as DynamicViewFieldNew,
10135
10135
  We as EFieldType,
10136
- W as EFieldTypeNew,
10136
+ q as EFieldTypeNew,
10137
10137
  ge as EValueHowToSetUp,
10138
10138
  Sc as Filter,
10139
- Rn as FilterModal,
10139
+ On as FilterModal,
10140
10140
  xc as FormFilter,
10141
- Rr as InputRange,
10141
+ Or as InputRange,
10142
10142
  Lr as InputRangeNew,
10143
10143
  Xo as ModalRules,
10144
10144
  Ir as MultipleChoices,
10145
10145
  bc as MultipleChoicesNew,
10146
10146
  cs as RulesForm,
10147
- Rc as SendButton,
10147
+ Oc as SendButton,
10148
10148
  le as ValueDataType,
10149
10149
  z as ValueHowToSetUp,
10150
10150
  _c as Verification,
10151
10151
  ko as ViewMultipleChoices,
10152
10152
  zo as ViewMultipleChoicesNew,
10153
- Ro as ViewRangeField,
10153
+ Oo as ViewRangeField,
10154
10154
  jo as ViewRangeFieldNew,
10155
10155
  Nl as buildEsConditionSentence,
10156
10156
  Zl as convertRangeToString,