@isettingkit/business-rules 3.2.4 → 3.2.5

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.
Files changed (2) hide show
  1. package/dist/index.es.js +401 -402
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import { jsx as i, jsxs as b, Fragment as j } from "react/jsx-runtime";
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";
1
+ import { jsx as i, jsxs as y, Fragment as j } from "react/jsx-runtime";
2
+ import { MdOutlineDelete as Yt, 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
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 Y, forwardRef as va, useContext as En, useMemo as Yt, useRef as Ke, useEffect as Pe, useCallback as Ta } from "react";
6
- import { createPortal as Ct } from "react-dom";
5
+ import U, { useState as Y, forwardRef as va, useContext as En, useMemo as Ct, useRef as Ke, useEffect as Pe, useCallback as Ta } from "react";
6
+ import { createPortal as Dt } from "react-dom";
7
7
  import { useFormik as An } from "formik";
8
8
  import { string as Re, mixed as ze, 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";
@@ -44,11 +44,11 @@ $.div`
44
44
  border-radius: 8px;
45
45
  }
46
46
  `;
47
- const Dt = (e) => {
47
+ const Nt = (e) => {
48
48
  const { children: t, controls: n = !0, handleDelete: r, id: a } = e;
49
- return /* @__PURE__ */ i(Da, { children: /* @__PURE__ */ b(v, { direction: "column", gap: "16px", padding: "12px 16px", children: [
49
+ return /* @__PURE__ */ i(Da, { children: /* @__PURE__ */ y(v, { direction: "column", gap: "16px", padding: "12px 16px", children: [
50
50
  t,
51
- n && /* @__PURE__ */ b(j, { children: [
51
+ n && /* @__PURE__ */ y(j, { children: [
52
52
  /* @__PURE__ */ i(K, {}),
53
53
  /* @__PURE__ */ i(v, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ i(
54
54
  B,
@@ -56,7 +56,7 @@ const Dt = (e) => {
56
56
  cursorHover: !0,
57
57
  appearance: "danger",
58
58
  size: "24px",
59
- icon: /* @__PURE__ */ i(qt, {}),
59
+ icon: /* @__PURE__ */ i(Yt, {}),
60
60
  onClick: () => {
61
61
  r(a);
62
62
  }
@@ -99,7 +99,7 @@ const Dt = (e) => {
99
99
  style: "currency",
100
100
  currency: "COP",
101
101
  minimumFractionDigits: 0
102
- }).format(e), zt = (e) => e === "$ 0" ? NaN : parseInt(e.replace(/\$|\./g, "")), Ut = (e) => {
102
+ }).format(e), Ut = (e) => e === "$ 0" ? NaN : parseInt(e.replace(/\$|\./g, "")), jt = (e) => {
103
103
  const t = e.trim();
104
104
  return t ? /^-?\d*(?:[.,]\d+)?$/.test(t) ? parseFloat(t.replace(",", ".")) : NaN : NaN;
105
105
  }, Ea = (e) => {
@@ -110,7 +110,7 @@ const Dt = (e) => {
110
110
  const t = e.trim();
111
111
  if (!/^-?\d*(?:[.,]\d+)?$/.test(t))
112
112
  return t;
113
- const r = Ut(t);
113
+ const r = jt(t);
114
114
  return Number.isNaN(r) ? t : `${String(e)}%`;
115
115
  }, Aa = {
116
116
  currency: (e) => vt(e),
@@ -294,15 +294,15 @@ const Oa = {
294
294
  onChange: d,
295
295
  size: p = "wide"
296
296
  } = e, u = typeof l == "string" ? l.split(",").filter(Boolean) : [], h = a.filter(
297
- (y) => u.includes(y.id)
298
- ), g = (y, m) => {
299
- d(y, m);
300
- }, f = (y) => {
301
- const m = u.filter((T) => T !== y).join(",");
297
+ (b) => u.includes(b.id)
298
+ ), g = (b, m) => {
299
+ d(b, m);
300
+ }, f = (b) => {
301
+ const m = u.filter((T) => T !== b).join(",");
302
302
  d(t, m);
303
303
  };
304
- return /* @__PURE__ */ b(Fa, { children: [
305
- h.length > 0 && /* @__PURE__ */ b(j, { children: [
304
+ return /* @__PURE__ */ y(Fa, { children: [
305
+ h.length > 0 && /* @__PURE__ */ y(j, { children: [
306
306
  /* @__PURE__ */ i(
307
307
  D,
308
308
  {
@@ -314,16 +314,16 @@ const Oa = {
314
314
  children: r
315
315
  }
316
316
  ),
317
- /* @__PURE__ */ i(Va, { children: h.map((y) => /* @__PURE__ */ i(
317
+ /* @__PURE__ */ i(Va, { children: h.map((b) => /* @__PURE__ */ i(
318
318
  we,
319
319
  {
320
320
  appearance: "gray",
321
- label: y.label,
321
+ label: b.label,
322
322
  removable: !0,
323
- onClose: () => f(y.value),
323
+ onClose: () => f(b.value),
324
324
  displayIcon: !1
325
325
  },
326
- y.id
326
+ b.id
327
327
  )) })
328
328
  ] }),
329
329
  /* @__PURE__ */ i(
@@ -385,17 +385,17 @@ const Oa = {
385
385
  statusFrom: u,
386
386
  statusTo: h,
387
387
  onBlur: g
388
- } = e, [f, y] = Y(c), [m, T] = Y(l), S = (N) => {
388
+ } = e, [f, b] = Y(c), [m, T] = Y(l), S = (N) => {
389
389
  let A;
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);
390
+ a === "currency" ? A = Ut(N.target.value) : a === "date" ? A = new Date(N.target.value) : A = Number(N.target.value), b(A), t(A);
391
391
  }, E = (N) => {
392
392
  let A;
393
- a === "currency" ? A = zt(N.target.value) : a === "date" ? A = new Date(N.target.value) : A = Number(N.target.value), T(A), n(A);
393
+ a === "currency" ? A = Ut(N.target.value) : a === "date" ? A = new Date(N.target.value) : A = Number(N.target.value), T(A), n(A);
394
394
  }, C = (N, A) => A === "currency" ? vt(N) : A === "date" && N instanceof Date ? N.toISOString().split("T")[0] : Number(N);
395
- return /* @__PURE__ */ b(v, { direction: "column", children: [
395
+ return /* @__PURE__ */ y(v, { direction: "column", children: [
396
396
  /* @__PURE__ */ i(D, { type: "label", weight: "bold", size: "large", appearance: "dark", children: o }),
397
- /* @__PURE__ */ b(Fe, { templateColumns: "repeat(2, 1fr)", margin: "10px 0", gap: "12px", children: [
398
- /* @__PURE__ */ b(v, { alignItems: "baseline", gap: "8px", children: [
397
+ /* @__PURE__ */ y(Fe, { templateColumns: "repeat(2, 1fr)", margin: "10px 0", gap: "12px", children: [
398
+ /* @__PURE__ */ y(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
401
  Oe,
@@ -425,7 +425,7 @@ const Oa = {
425
425
  }
426
426
  )
427
427
  ] }),
428
- /* @__PURE__ */ b(v, { alignItems: "baseline", gap: "8px", children: [
428
+ /* @__PURE__ */ y(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
431
  Oe,
@@ -536,7 +536,7 @@ const Oa = {
536
536
  condition: e,
537
537
  formik: t
538
538
  }) => {
539
- var n, r, a, o, s, c, l, d, p, u, h, g, f, y;
539
+ var n, r, a, o, s, c, l, d, p, u, h, g, f, b;
540
540
  return /* @__PURE__ */ i(
541
541
  Or,
542
542
  {
@@ -555,7 +555,7 @@ const Oa = {
555
555
  messageFrom: (o = (a = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : a[e.conditionName]) == null ? void 0 : o.from,
556
556
  messageTo: (c = (s = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : s[e.conditionName]) == null ? void 0 : c.to,
557
557
  statusFrom: (d = (l = t.touched.conditionsThatEstablishesTheDecision) == null ? void 0 : l[e.conditionName]) != null && d.from ? (u = (p = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : p[e.conditionName]) != null && u.from ? "invalid" : "valid" : "pending",
558
- statusTo: (g = (h = t.touched.conditionsThatEstablishesTheDecision) == null ? void 0 : h[e.conditionName]) != null && g.to ? (y = (f = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : f[e.conditionName]) != null && y.to ? "invalid" : "valid" : "pending",
558
+ statusTo: (g = (h = t.touched.conditionsThatEstablishesTheDecision) == null ? void 0 : h[e.conditionName]) != null && g.to ? (b = (f = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : f[e.conditionName]) != null && b.to ? "invalid" : "valid" : "pending",
559
559
  onBlur: t.handleBlur,
560
560
  typeInput: e.conditionDataType.toLowerCase(),
561
561
  placeholderFrom: e.placeholderFrom,
@@ -646,7 +646,7 @@ const Oa = {
646
646
  ListOfValues: "LIST_OF_VALUES",
647
647
  ListOfValuesMulti: "LIST_OF_VALUES_MULTI",
648
648
  Range: "RANGE"
649
- })[e] || null, jt = ({
649
+ })[e] || null, Gt = ({
650
650
  condition: e,
651
651
  formik: t,
652
652
  isDecision: n = !1
@@ -668,7 +668,7 @@ const Oa = {
668
668
  onBlur: l,
669
669
  condition: d,
670
670
  listOfPossibleValues: p
671
- }) => /* @__PURE__ */ b(
671
+ }) => /* @__PURE__ */ y(
672
672
  v,
673
673
  {
674
674
  alignItems: c === "invalid" ? "baseline" : "center",
@@ -730,7 +730,7 @@ const Oa = {
730
730
  onBlur: l,
731
731
  placeholder: d,
732
732
  listOfPossibleValues: p
733
- }) => /* @__PURE__ */ b(
733
+ }) => /* @__PURE__ */ y(
734
734
  v,
735
735
  {
736
736
  alignItems: c === "invalid" ? "baseline" : "center",
@@ -795,7 +795,7 @@ const Oa = {
795
795
  onBlur: l,
796
796
  listOfPossibleValues: d,
797
797
  placeholder: p
798
- }) => /* @__PURE__ */ b(
798
+ }) => /* @__PURE__ */ y(
799
799
  v,
800
800
  {
801
801
  alignItems: c === "invalid" ? "baseline" : "center",
@@ -855,7 +855,7 @@ const Oa = {
855
855
  onBlur: l,
856
856
  listOfPossibleValues: d,
857
857
  placeholder: p
858
- }) => /* @__PURE__ */ b(
858
+ }) => /* @__PURE__ */ y(
859
859
  v,
860
860
  {
861
861
  alignItems: c === "invalid" ? "baseline" : "center",
@@ -918,7 +918,7 @@ const Oa = {
918
918
  placeholder: p
919
919
  }) => {
920
920
  const u = r == null ? "" : String(r);
921
- return /* @__PURE__ */ b(
921
+ return /* @__PURE__ */ y(
922
922
  v,
923
923
  {
924
924
  alignItems: c === "invalid" ? "baseline" : "center",
@@ -962,7 +962,7 @@ const Oa = {
962
962
  }
963
963
  if (!/^-?\d*(?:[.,]\d*)?$/.test(f))
964
964
  return;
965
- const m = Ut(f);
965
+ const m = jt(f);
966
966
  Number.isNaN(m) ? a(t, f) : a(t, m);
967
967
  },
968
968
  fullwidth: !0,
@@ -987,7 +987,7 @@ const Ja = {
987
987
  [q.DATE]: Wa,
988
988
  [q.NUMBER]: Qa,
989
989
  [q.PERCENTAGE]: Xa
990
- }, Za = (e) => Ja[e] || null, Gt = (e) => {
990
+ }, Za = (e) => Ja[e] || null, Bt = (e) => {
991
991
  const {
992
992
  condition: t,
993
993
  type: n,
@@ -1029,7 +1029,7 @@ const tn = ({
1029
1029
  }) => {
1030
1030
  var n, r;
1031
1031
  return /* @__PURE__ */ i(kn, { children: /* @__PURE__ */ i(
1032
- Gt,
1032
+ Bt,
1033
1033
  {
1034
1034
  type: e.decisionDataType.toLowerCase(),
1035
1035
  name: e.ruleName,
@@ -1263,7 +1263,7 @@ function zn(e, t) {
1263
1263
  const lo = (e) => {
1264
1264
  var a, o;
1265
1265
  const { message: t } = e, n = En(Dn), r = ((o = (a = n == null ? void 0 : n.input) == null ? void 0 : a.message) == null ? void 0 : o.appearance) || Ie.message.appearance;
1266
- return /* @__PURE__ */ b(v, { alignItems: "center", gap: "4px", margin: "4px 0 0 16px", children: [
1266
+ return /* @__PURE__ */ y(v, { alignItems: "center", gap: "4px", margin: "4px 0 0 16px", children: [
1267
1267
  /* @__PURE__ */ i(
1268
1268
  B,
1269
1269
  {
@@ -1299,7 +1299,7 @@ const lo = (e) => {
1299
1299
  options: h,
1300
1300
  placeholder: g,
1301
1301
  required: f,
1302
- size: y,
1302
+ size: b,
1303
1303
  value: m,
1304
1304
  picker: T,
1305
1305
  showChevron: S,
@@ -1314,7 +1314,7 @@ const lo = (e) => {
1314
1314
  onOptionClick: ie,
1315
1315
  onCheckboxChange: ce,
1316
1316
  handleClear: re
1317
- } = e, L = En(Dn), M = ((je = (_e = L == null ? void 0 : L.input) == null ? void 0 : _e.required) == null ? void 0 : je.appearance) || Ie.required.appearance, Ce = f && !r, De = T || m === "" ? "" : zn(h, m), Ve = Yt(
1317
+ } = e, L = En(Dn), M = ((je = (_e = L == null ? void 0 : L.input) == null ? void 0 : _e.required) == null ? void 0 : je.appearance) || Ie.required.appearance, Ce = f && !r, De = T || m === "" ? "" : zn(h, m), Ve = Ct(
1318
1318
  () => h.filter((Q) => E.includes(Q.id)),
1319
1319
  [h, E]
1320
1320
  ), Ye = (Q, W) => {
@@ -1322,8 +1322,8 @@ const lo = (e) => {
1322
1322
  target: { checked: !1, value: W }
1323
1323
  });
1324
1324
  };
1325
- return /* @__PURE__ */ b(to, { $fullwidth: o, $disabled: r, ref: t, children: [
1326
- l && /* @__PURE__ */ b(
1325
+ return /* @__PURE__ */ y(to, { $fullwidth: o, $disabled: r, ref: t, children: [
1326
+ l && /* @__PURE__ */ y(
1327
1327
  no,
1328
1328
  {
1329
1329
  $alignItems: "center",
@@ -1337,7 +1337,7 @@ const lo = (e) => {
1337
1337
  focused: a,
1338
1338
  invalid: c,
1339
1339
  margin: "0px 0px 0px 16px",
1340
- size: io(y),
1340
+ size: io(b),
1341
1341
  disabled: r,
1342
1342
  children: l
1343
1343
  }
@@ -1346,7 +1346,7 @@ const lo = (e) => {
1346
1346
  ]
1347
1347
  }
1348
1348
  ),
1349
- /* @__PURE__ */ b(
1349
+ /* @__PURE__ */ y(
1350
1350
  ro,
1351
1351
  {
1352
1352
  $disabled: r,
@@ -1354,7 +1354,7 @@ const lo = (e) => {
1354
1354
  $invalid: c,
1355
1355
  onClick: C ? void 0 : G,
1356
1356
  $value: m,
1357
- $size: y,
1357
+ $size: b,
1358
1358
  children: [
1359
1359
  /* @__PURE__ */ i(
1360
1360
  ao,
@@ -1367,7 +1367,7 @@ const lo = (e) => {
1367
1367
  placeholder: g,
1368
1368
  $disabled: r,
1369
1369
  required: f,
1370
- $size: y,
1370
+ $size: b,
1371
1371
  $fullwidth: o,
1372
1372
  $focused: a,
1373
1373
  readOnly: !C,
@@ -1378,7 +1378,7 @@ const lo = (e) => {
1378
1378
  onKeyUp: A
1379
1379
  }
1380
1380
  ),
1381
- /* @__PURE__ */ b(
1381
+ /* @__PURE__ */ y(
1382
1382
  v,
1383
1383
  {
1384
1384
  direction: "row",
@@ -1460,7 +1460,7 @@ const lo = (e) => {
1460
1460
  onFocus: h,
1461
1461
  onKeyUp: g,
1462
1462
  options: f,
1463
- placeholder: y,
1463
+ placeholder: b,
1464
1464
  required: m = !1,
1465
1465
  size: T = "wide",
1466
1466
  value: S,
@@ -1516,16 +1516,16 @@ const lo = (e) => {
1516
1516
  }
1517
1517
  }
1518
1518
  function je(W) {
1519
- const { value: ee, checked: Et } = W.target;
1519
+ const { value: ee, checked: At } = W.target;
1520
1520
  re((it) => {
1521
- const lt = Et ? [...it, ee] : it.filter((st) => st !== ee);
1521
+ const lt = At ? [...it, ee] : it.filter((st) => st !== ee);
1522
1522
  return p(l, lt.join(",")), lt;
1523
1523
  });
1524
1524
  }
1525
1525
  Pe(() => (document.addEventListener("click", De), () => {
1526
1526
  document.removeEventListener("click", De);
1527
1527
  }), [De]);
1528
- const Q = Yt(() => O || C ? f : [{ id: "empty-option", label: "", value: "" }, ...f], [f, O, C]);
1528
+ const Q = Ct(() => O || C ? f : [{ id: "empty-option", label: "", value: "" }, ...f], [f, O, C]);
1529
1529
  return /* @__PURE__ */ i(
1530
1530
  so,
1531
1531
  {
@@ -1541,7 +1541,7 @@ const lo = (e) => {
1541
1541
  message: c,
1542
1542
  name: l,
1543
1543
  options: Q,
1544
- placeholder: y,
1544
+ placeholder: b,
1545
1545
  required: m,
1546
1546
  size: T,
1547
1547
  value: S,
@@ -1603,7 +1603,7 @@ const lo = (e) => {
1603
1603
  }) => {
1604
1604
  var a;
1605
1605
  const n = Array.isArray(t.values.value) && t.values.value.length > 0 ? t.values.value.join(",") : "", r = e.placeholder ?? "Seleccione una opción";
1606
- return /* @__PURE__ */ b(v, { alignItems: "center", gap: "16px", width: "100%", children: [
1606
+ return /* @__PURE__ */ y(v, { alignItems: "center", gap: "16px", width: "100%", children: [
1607
1607
  /* @__PURE__ */ i(
1608
1608
  D,
1609
1609
  {
@@ -1644,7 +1644,7 @@ const lo = (e) => {
1644
1644
  statusFrom: h,
1645
1645
  statusTo: g,
1646
1646
  onBlur: f,
1647
- onBlurFrom: y,
1647
+ onBlurFrom: b,
1648
1648
  onBlurTo: m,
1649
1649
  listOfPossibleValues: T,
1650
1650
  placeholderFrom: S,
@@ -1652,11 +1652,11 @@ const lo = (e) => {
1652
1652
  } = e, [C, N] = Y(l), [A, O] = Y(d), V = (L) => {
1653
1653
  let M;
1654
1654
  if (o === q.MONETARY)
1655
- M = zt(String(L));
1655
+ M = Ut(String(L));
1656
1656
  else if (o === "date")
1657
1657
  M = L instanceof Date ? L : new Date(String(L));
1658
1658
  else if (o === "percentage") {
1659
- const Ce = Ut(String(L));
1659
+ const Ce = jt(String(L));
1660
1660
  N(String(L)), n(Ce);
1661
1661
  return;
1662
1662
  } else o === "number" ? M = Number(L) : M = String(L);
@@ -1664,19 +1664,19 @@ const lo = (e) => {
1664
1664
  }, G = (L) => {
1665
1665
  let M;
1666
1666
  if (o === q.MONETARY)
1667
- M = zt(String(L));
1667
+ M = Ut(String(L));
1668
1668
  else if (o === "date")
1669
1669
  M = L instanceof Date ? L : new Date(String(L));
1670
1670
  else if (o === "percentage") {
1671
- const Ce = Ut(String(L));
1671
+ const Ce = jt(String(L));
1672
1672
  O(String(L)), r(Ce);
1673
1673
  return;
1674
1674
  } else o === "number" ? M = Number(L) : M = String(L);
1675
1675
  O(M), r(M);
1676
1676
  }, te = (L, M) => {
1677
1677
  L === `${a}SelectFrom` && (N(M), n(M)), L === `${a}SelectTo` && (O(M), r(M));
1678
- }, ie = (L, M) => M === "date" && L instanceof Date ? L.toISOString().split("T")[0] : typeof L == "number" ? L : L ?? "", ce = y ?? f, re = m ?? f;
1679
- return /* @__PURE__ */ b(
1678
+ }, ie = (L, M) => M === "date" && L instanceof Date ? L.toISOString().split("T")[0] : typeof L == "number" ? L : L ?? "", ce = b ?? f, re = m ?? f;
1679
+ return /* @__PURE__ */ y(
1680
1680
  v,
1681
1681
  {
1682
1682
  alignItems: p ? "baseline" : "center",
@@ -1693,8 +1693,8 @@ const lo = (e) => {
1693
1693
  children: s
1694
1694
  }
1695
1695
  ),
1696
- /* @__PURE__ */ b(v, { gap: "16px", alignItems: p ? "baseline" : "center", children: [
1697
- /* @__PURE__ */ b(
1696
+ /* @__PURE__ */ y(v, { gap: "16px", alignItems: p ? "baseline" : "center", children: [
1697
+ /* @__PURE__ */ y(
1698
1698
  v,
1699
1699
  {
1700
1700
  alignItems: p || u ? "baseline" : "center",
@@ -1726,7 +1726,7 @@ const lo = (e) => {
1726
1726
  onBlur: ce
1727
1727
  }
1728
1728
  ) : /* @__PURE__ */ i(
1729
- Gt,
1729
+ Bt,
1730
1730
  {
1731
1731
  type: o,
1732
1732
  name: `${a}DynamicFieldFrom`,
@@ -1776,7 +1776,7 @@ const lo = (e) => {
1776
1776
  onBlur: re
1777
1777
  }
1778
1778
  ) : /* @__PURE__ */ i(
1779
- Gt,
1779
+ Bt,
1780
1780
  {
1781
1781
  type: o,
1782
1782
  name: `${a}DynamicFieldTo`,
@@ -1802,8 +1802,8 @@ const lo = (e) => {
1802
1802
  condition: e,
1803
1803
  formik: t
1804
1804
  }) => {
1805
- var p, u, h, g, f, y, m, T, S, E, C, N;
1806
- const n = "value.from", r = "value.to", a = !!((p = t.touched.value) != null && p.from || (u = t.touched) != null && u.from), o = !!((h = t.touched.value) != null && h.to || (g = t.touched) != null && g.to), s = t.submitCount > 0 || a, c = t.submitCount > 0 || o, l = ((f = t.errors.value) == null ? void 0 : f.from) || ((y = t.errors) == null ? void 0 : y.from), d = ((m = t.errors.value) == null ? void 0 : m.to) || ((T = t.errors) == null ? void 0 : T.to);
1805
+ var p, u, h, g, f, b, m, T, S, E, C, N;
1806
+ const n = "value.from", r = "value.to", a = !!((p = t.touched.value) != null && p.from || (u = t.touched) != null && u.from), o = !!((h = t.touched.value) != null && h.to || (g = t.touched) != null && g.to), s = t.submitCount > 0 || a, c = t.submitCount > 0 || o, l = ((f = t.errors.value) == null ? void 0 : f.from) || ((b = t.errors) == null ? void 0 : b.from), d = ((m = t.errors.value) == null ? void 0 : m.to) || ((T = t.errors) == null ? void 0 : T.to);
1807
1807
  return /* @__PURE__ */ i(kn, { children: /* @__PURE__ */ i(
1808
1808
  Lr,
1809
1809
  {
@@ -1833,7 +1833,7 @@ const lo = (e) => {
1833
1833
  const n = (o, s) => {
1834
1834
  t.setFieldValue("value", s);
1835
1835
  }, r = e.placeholder ?? `Seleccione una opción para ${e.labelName}`;
1836
- return /* @__PURE__ */ i(kn, { children: /* @__PURE__ */ b(v, { gap: "16px", alignItems: "center", children: [
1836
+ return /* @__PURE__ */ i(kn, { children: /* @__PURE__ */ y(v, { gap: "16px", alignItems: "center", children: [
1837
1837
  /* @__PURE__ */ i(D, { type: "title", weight: "bold", size: "medium", appearance: "primary", children: e == null ? void 0 : e.labelName }),
1838
1838
  /* @__PURE__ */ i(
1839
1839
  Ae,
@@ -1858,7 +1858,7 @@ const lo = (e) => {
1858
1858
  const n = e.groupKey || "group-primary", r = e.conditionName, a = `conditionsThatEstablishesTheDecision.${n}.${r}`, o = ((m = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : m[n]) || {}, s = ((T = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : T[n]) || {}, c = ((S = t.touched.conditionsThatEstablishesTheDecision) == null ? void 0 : S[n]) || {}, l = o[r];
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
- 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) => {
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, b = (N, A) => {
1862
1862
  const O = o[r];
1863
1863
  O && typeof O == "object" && !Array.isArray(O) ? t.setFieldValue(`${a}.value`, A) : t.setFieldValue(a, {
1864
1864
  ...O && typeof O == "object" ? O : {},
@@ -1866,7 +1866,7 @@ const lo = (e) => {
1866
1866
  });
1867
1867
  };
1868
1868
  return /* @__PURE__ */ i(
1869
- Gt,
1869
+ Bt,
1870
1870
  {
1871
1871
  condition: !0,
1872
1872
  type: e.conditionDataType.toLowerCase(),
@@ -1874,7 +1874,7 @@ const lo = (e) => {
1874
1874
  label: e.labelName,
1875
1875
  placeholder: e.placeholder,
1876
1876
  value: d,
1877
- onChange: y,
1877
+ onChange: b,
1878
1878
  messageValidate: h,
1879
1879
  statusValidate: f,
1880
1880
  onBlur: t.handleBlur,
@@ -1885,8 +1885,8 @@ const lo = (e) => {
1885
1885
  condition: e,
1886
1886
  formik: t
1887
1887
  }) => {
1888
- var u, h, g, f, y, m, T, S, E, C, N, A;
1889
- const n = e.groupKey || "group-primary", r = (h = (u = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : u[n]) == null ? void 0 : h[e.conditionName], a = (r == null ? void 0 : r.value) ?? r ?? {}, o = ((f = (g = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : g[n]) == null ? void 0 : f[e.conditionName]) || {}, s = ((m = (y = t.touched.conditionsThatEstablishesTheDecision) == null ? void 0 : y[n]) == null ? void 0 : m[e.conditionName]) || {}, c = ((T = o == null ? void 0 : o.value) == null ? void 0 : T.from) || (o == null ? void 0 : o.from), l = ((S = o == null ? void 0 : o.value) == null ? void 0 : S.to) || (o == null ? void 0 : o.to), d = (E = s == null ? void 0 : s.value) != null && E.from || s != null && s.from ? c ? "invalid" : "valid" : "pending", p = (C = s == null ? void 0 : s.value) != null && C.to || s != null && s.to ? l ? "invalid" : "valid" : "pending";
1888
+ var u, h, g, f, b, m, T, S, E, C, N, A;
1889
+ const n = e.groupKey || "group-primary", r = (h = (u = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : u[n]) == null ? void 0 : h[e.conditionName], a = (r == null ? void 0 : r.value) ?? r ?? {}, o = ((f = (g = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : g[n]) == null ? void 0 : f[e.conditionName]) || {}, s = ((m = (b = t.touched.conditionsThatEstablishesTheDecision) == null ? void 0 : b[n]) == null ? void 0 : m[e.conditionName]) || {}, c = ((T = o == null ? void 0 : o.value) == null ? void 0 : T.from) || (o == null ? void 0 : o.from), l = ((S = o == null ? void 0 : o.value) == null ? void 0 : S.to) || (o == null ? void 0 : o.to), d = (E = s == null ? void 0 : s.value) != null && E.from || s != null && s.from ? c ? "invalid" : "valid" : "pending", p = (C = s == null ? void 0 : s.value) != null && C.to || s != null && s.to ? l ? "invalid" : "valid" : "pending";
1890
1890
  return /* @__PURE__ */ i(
1891
1891
  Lr,
1892
1892
  {
@@ -1920,7 +1920,7 @@ const lo = (e) => {
1920
1920
  }) => {
1921
1921
  var c, l, d;
1922
1922
  const n = e.groupKey || "group-primary", r = (l = (c = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : c[n]) == null ? void 0 : l[e.conditionName], a = (r == null ? void 0 : r.value) ?? r, o = Array.isArray(a) ? a : [], s = o.length > 0 ? o.join(",") : "";
1923
- return /* @__PURE__ */ b(v, { alignItems: "center", gap: "16px", width: "100%", children: [
1923
+ return /* @__PURE__ */ y(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
1926
  Rr,
@@ -1944,8 +1944,8 @@ const lo = (e) => {
1944
1944
  condition: e,
1945
1945
  formik: t
1946
1946
  }) => {
1947
- var u, h, g, f, y, m, T;
1948
- const n = e.groupKey || "group-primary", r = (h = (u = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : u[n]) == null ? void 0 : h[e.conditionName], a = (r == null ? void 0 : r.value) ?? "", o = (f = (g = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : g[n]) == null ? void 0 : f[e.conditionName], s = (m = (y = t.touched.conditionsThatEstablishesTheDecision) == null ? void 0 : y[n]) == null ? void 0 : m[e.conditionName], l = ((S) => {
1947
+ var u, h, g, f, b, m, T;
1948
+ const n = e.groupKey || "group-primary", r = (h = (u = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : u[n]) == null ? void 0 : h[e.conditionName], a = (r == null ? void 0 : r.value) ?? "", o = (f = (g = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : g[n]) == null ? void 0 : f[e.conditionName], s = (m = (b = t.touched.conditionsThatEstablishesTheDecision) == null ? void 0 : b[n]) == null ? void 0 : m[e.conditionName], l = ((S) => {
1949
1949
  if (S) {
1950
1950
  if (typeof S == "string") return S;
1951
1951
  if (typeof S == "object" && typeof S.value == "string")
@@ -1957,7 +1957,7 @@ const lo = (e) => {
1957
1957
  E
1958
1958
  );
1959
1959
  };
1960
- return /* @__PURE__ */ b(v, { gap: "16px", alignItems: "center", children: [
1960
+ return /* @__PURE__ */ y(v, { gap: "16px", alignItems: "center", children: [
1961
1961
  /* @__PURE__ */ i(D, { type: "body", weight: "normal", size: "medium", appearance: "dark", children: e == null ? void 0 : e.labelName }),
1962
1962
  /* @__PURE__ */ i(
1963
1963
  Ae,
@@ -2022,12 +2022,12 @@ const lo = (e) => {
2022
2022
  (m) => h.includes(m.id)
2023
2023
  ), f = (m, T) => {
2024
2024
  p(m, T);
2025
- }, y = (m) => {
2025
+ }, b = (m) => {
2026
2026
  const T = h.filter((S) => S !== m).join(",");
2027
2027
  p(n, T);
2028
2028
  };
2029
- return /* @__PURE__ */ b(v, { direction: "column", padding: "0", gap: "16px", children: [
2030
- g.length > 0 && /* @__PURE__ */ b(v, { gap: "16px", alignItems: "center", children: [
2029
+ return /* @__PURE__ */ y(v, { direction: "column", padding: "0", gap: "16px", children: [
2030
+ g.length > 0 && /* @__PURE__ */ y(v, { gap: "16px", alignItems: "center", children: [
2031
2031
  /* @__PURE__ */ i(
2032
2032
  D,
2033
2033
  {
@@ -2044,13 +2044,13 @@ const lo = (e) => {
2044
2044
  appearance: "gray",
2045
2045
  label: m.label,
2046
2046
  removable: !0,
2047
- onClose: () => y(m.value),
2047
+ onClose: () => b(m.value),
2048
2048
  displayIcon: !1
2049
2049
  },
2050
2050
  m.id
2051
2051
  )) }) })
2052
2052
  ] }),
2053
- /* @__PURE__ */ b(v, { gap: "16px", alignItems: "center", children: [
2053
+ /* @__PURE__ */ y(v, { gap: "16px", alignItems: "center", children: [
2054
2054
  /* @__PURE__ */ i(
2055
2055
  D,
2056
2056
  {
@@ -2158,7 +2158,7 @@ const Ao = {
2158
2158
  }
2159
2159
  `, $o = (e) => {
2160
2160
  const { label: t, labelType: n = "condition", type: r, valueInput: a } = e;
2161
- return /* @__PURE__ */ b(
2161
+ return /* @__PURE__ */ y(
2162
2162
  v,
2163
2163
  {
2164
2164
  direction: "column",
@@ -2179,7 +2179,7 @@ const Ao = {
2179
2179
  ]
2180
2180
  }
2181
2181
  );
2182
- }, kt = ({
2182
+ }, It = ({
2183
2183
  nameLabel: e,
2184
2184
  type: t,
2185
2185
  valueData: n,
@@ -2194,7 +2194,7 @@ const Ao = {
2194
2194
  }
2195
2195
  ), ko = (e) => {
2196
2196
  const { id: t, label: n, options: r } = e;
2197
- return /* @__PURE__ */ b(v, { direction: "column", gap: "2px", children: [
2197
+ return /* @__PURE__ */ y(v, { direction: "column", gap: "2px", children: [
2198
2198
  /* @__PURE__ */ i(D, { type: "label", weight: "bold", size: "medium", appearance: "dark", children: n }),
2199
2199
  /* @__PURE__ */ i(v, { wrap: "wrap", gap: "8px", children: r.map((a) => /* @__PURE__ */ i(v, { width: "fit-content", children: /* @__PURE__ */ i(
2200
2200
  we,
@@ -2225,7 +2225,7 @@ const Ao = {
2225
2225
  valueFrom: a = 0,
2226
2226
  valueTo: o = 0
2227
2227
  } = e;
2228
- return /* @__PURE__ */ b(
2228
+ return /* @__PURE__ */ y(
2229
2229
  v,
2230
2230
  {
2231
2231
  direction: "column",
@@ -2250,7 +2250,7 @@ const Ao = {
2250
2250
  weight: n === "condition" ? "normal" : "bold",
2251
2251
  size: n === "condition" ? "medium" : "large",
2252
2252
  appearance: "gray",
2253
- children: /* @__PURE__ */ b(v, { gap: "4px", children: [
2253
+ children: /* @__PURE__ */ y(v, { gap: "4px", children: [
2254
2254
  "De",
2255
2255
  /* @__PURE__ */ i(
2256
2256
  D,
@@ -2301,10 +2301,10 @@ const Ao = {
2301
2301
  }, Lo = {
2302
2302
  LIST_OF_VALUES_MULTI: Io,
2303
2303
  RANGE: Ro,
2304
- GREATER_THAN: kt,
2305
- LESS_THAN: kt,
2306
- EQUAL: kt,
2307
- LIST_OF_VALUES: kt
2304
+ GREATER_THAN: It,
2305
+ LESS_THAN: It,
2306
+ EQUAL: It,
2307
+ LIST_OF_VALUES: It
2308
2308
  }, Fo = (e) => Lo[e], Vo = (e) => ({
2309
2309
  EqualTo: "EQUAL",
2310
2310
  GreaterThan: "GREATER_THAN",
@@ -2371,24 +2371,24 @@ const Ao = {
2371
2371
  buttonAppearance: h = "primary",
2372
2372
  withIconTitle: g = !1,
2373
2373
  icon: f
2374
- } = e, y = Se("(max-width: 768px)"), m = document.getElementById(c);
2374
+ } = e, b = Se("(max-width: 768px)"), m = document.getElementById(c);
2375
2375
  if (!m)
2376
2376
  throw new Error(
2377
2377
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
2378
2378
  );
2379
- return Ct(
2379
+ return Dt(
2380
2380
  /* @__PURE__ */ i(
2381
2381
  Mo,
2382
2382
  {
2383
2383
  onClick: (T) => T.stopPropagation(),
2384
- children: /* @__PURE__ */ i(xt, { children: /* @__PURE__ */ b(_o, { $smallScreen: y, children: [
2385
- /* @__PURE__ */ b(v, { direction: "column", gap: "16px", children: [
2386
- /* @__PURE__ */ b(v, { alignContent: "center", justifyContent: "space-between", children: [
2387
- /* @__PURE__ */ b(v, { gap: "8px", children: [
2384
+ children: /* @__PURE__ */ i(xt, { children: /* @__PURE__ */ y(_o, { $smallScreen: b, children: [
2385
+ /* @__PURE__ */ y(v, { direction: "column", gap: "16px", children: [
2386
+ /* @__PURE__ */ y(v, { alignContent: "center", justifyContent: "space-between", children: [
2387
+ /* @__PURE__ */ y(v, { gap: "8px", children: [
2388
2388
  g && /* @__PURE__ */ i(B, { appearance: h, icon: f }),
2389
2389
  /* @__PURE__ */ i(D, { appearance: "dark", size: "small", type: "headline", children: l })
2390
2390
  ] }),
2391
- /* @__PURE__ */ b(v, { alignItems: "center", children: [
2391
+ /* @__PURE__ */ y(v, { alignItems: "center", children: [
2392
2392
  d && /* @__PURE__ */ i(D, { children: "Cerrar" }),
2393
2393
  /* @__PURE__ */ i(
2394
2394
  B,
@@ -2406,7 +2406,7 @@ const Ao = {
2406
2406
  p && /* @__PURE__ */ i(K, {})
2407
2407
  ] }),
2408
2408
  r,
2409
- /* @__PURE__ */ b(v, { gap: "20px", justifyContent: "flex-end", children: [
2409
+ /* @__PURE__ */ y(v, { gap: "20px", justifyContent: "flex-end", children: [
2410
2410
  u && /* @__PURE__ */ i(
2411
2411
  Z,
2412
2412
  {
@@ -2448,7 +2448,7 @@ const Ao = {
2448
2448
  showModal: c,
2449
2449
  validDate: l
2450
2450
  } = e;
2451
- return /* @__PURE__ */ b(v, { justifyContent: "space-between", alignItems: "center", width: "100%", children: [
2451
+ return /* @__PURE__ */ y(v, { justifyContent: "space-between", alignItems: "center", width: "100%", children: [
2452
2452
  /* @__PURE__ */ i(
2453
2453
  D,
2454
2454
  {
@@ -2494,7 +2494,7 @@ const Ao = {
2494
2494
  buttonAppearance: "help",
2495
2495
  withIconTitle: !0,
2496
2496
  icon: /* @__PURE__ */ i(nt, {}),
2497
- children: /* @__PURE__ */ b(v, { direction: "row", gap: "4px", wrap: "wrap", children: [
2497
+ children: /* @__PURE__ */ y(v, { direction: "row", gap: "4px", wrap: "wrap", children: [
2498
2498
  /* @__PURE__ */ i(D, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: t }),
2499
2499
  /* @__PURE__ */ i(D, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: Ue(a, r) }),
2500
2500
  /* @__PURE__ */ i(D, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: "estará vigente hasta" }),
@@ -2503,7 +2503,7 @@ const Ao = {
2503
2503
  }
2504
2504
  )
2505
2505
  ] });
2506
- }, It = ({
2506
+ }, Ot = ({
2507
2507
  nameLabel: e,
2508
2508
  type: t,
2509
2509
  valueData: n,
@@ -2535,7 +2535,7 @@ const Ao = {
2535
2535
  showModal: s,
2536
2536
  validDate: c
2537
2537
  } = e;
2538
- return /* @__PURE__ */ b(v, { justifyContent: "space-between", alignItems: "center", width: "100%", children: [
2538
+ return /* @__PURE__ */ y(v, { justifyContent: "space-between", alignItems: "center", width: "100%", children: [
2539
2539
  /* @__PURE__ */ i(D, { type: "label", weight: "bold", size: "medium", appearance: "gray", children: n }),
2540
2540
  /* @__PURE__ */ i(v, { wrap: "wrap", gap: "8px", children: r.map((l) => /* @__PURE__ */ i(v, { width: "fit-content", children: /* @__PURE__ */ i(
2541
2541
  we,
@@ -2572,7 +2572,7 @@ const Ao = {
2572
2572
  buttonAppearance: "help",
2573
2573
  withIconTitle: !0,
2574
2574
  icon: /* @__PURE__ */ i(nt, {}),
2575
- children: /* @__PURE__ */ b(v, { direction: "row", gap: "4px", wrap: "wrap", children: [
2575
+ children: /* @__PURE__ */ y(v, { direction: "row", gap: "4px", wrap: "wrap", children: [
2576
2576
  /* @__PURE__ */ i(D, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: n }),
2577
2577
  r.map((l) => /* @__PURE__ */ i(
2578
2578
  we,
@@ -2626,7 +2626,7 @@ const Ao = {
2626
2626
  showModal: l,
2627
2627
  validDate: d
2628
2628
  } = e, p = `De ${Ue(a, r)} a ${Ue(o, r)}`;
2629
- return /* @__PURE__ */ b(
2629
+ return /* @__PURE__ */ y(
2630
2630
  v,
2631
2631
  {
2632
2632
  gap: "8px",
@@ -2680,7 +2680,7 @@ const Ao = {
2680
2680
  buttonAppearance: "help",
2681
2681
  withIconTitle: !0,
2682
2682
  icon: /* @__PURE__ */ i(nt, {}),
2683
- children: /* @__PURE__ */ b(v, { direction: "row", gap: "4px", wrap: "wrap", children: [
2683
+ children: /* @__PURE__ */ y(v, { direction: "row", gap: "4px", wrap: "wrap", children: [
2684
2684
  /* @__PURE__ */ i(D, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: t }),
2685
2685
  /* @__PURE__ */ i(D, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: p }),
2686
2686
  /* @__PURE__ */ i(D, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: "estará vigente hasta" }),
@@ -2717,10 +2717,10 @@ const Ao = {
2717
2717
  }, Bo = {
2718
2718
  LIST_OF_VALUES_MULTI: Uo,
2719
2719
  RANGE: Go,
2720
- GREATER_THAN: It,
2721
- LESS_THAN: It,
2722
- EQUAL: It,
2723
- LIST_OF_VALUES: It
2720
+ GREATER_THAN: Ot,
2721
+ LESS_THAN: Ot,
2722
+ EQUAL: Ot,
2723
+ LIST_OF_VALUES: Ot
2724
2724
  }, Ho = (e) => Bo[e], qo = (e) => ({
2725
2725
  EqualTo: "EQUAL",
2726
2726
  GreaterThan: "GREATER_THAN",
@@ -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, Ot = (e) => {
2731
+ })[e] || null, Rt = (e) => {
2732
2732
  const { element: t, valueData: n, type: r } = e, a = qo(
2733
2733
  t.howToSetTheDecision || t.howToSetTheCondition
2734
2734
  );
@@ -2770,7 +2770,7 @@ const Ao = {
2770
2770
  textValues: l,
2771
2771
  visibleConditions: d
2772
2772
  } = e;
2773
- return o ? /* @__PURE__ */ b(v, { direction: "column", gap: "12px", children: [
2773
+ return o ? /* @__PURE__ */ y(v, { direction: "column", gap: "12px", children: [
2774
2774
  /* @__PURE__ */ i(v, { direction: "column", alignItems: "center", children: /* @__PURE__ */ i(
2775
2775
  et,
2776
2776
  {
@@ -2782,7 +2782,7 @@ const Ao = {
2782
2782
  }
2783
2783
  ) }, n.ruleName),
2784
2784
  /* @__PURE__ */ i(K, { dashed: !0 }),
2785
- /* @__PURE__ */ i(Gn, { children: /* @__PURE__ */ b(
2785
+ /* @__PURE__ */ i(Gn, { children: /* @__PURE__ */ y(
2786
2786
  v,
2787
2787
  {
2788
2788
  direction: "column",
@@ -2823,12 +2823,12 @@ const Ao = {
2823
2823
  ]
2824
2824
  }
2825
2825
  ) })
2826
- ] }) : /* @__PURE__ */ b(v, { direction: "column", gap: "12px", children: [
2827
- /* @__PURE__ */ b(v, { direction: "column", alignItems: "center", gap: "4px", children: [
2826
+ ] }) : /* @__PURE__ */ y(v, { direction: "column", gap: "12px", children: [
2827
+ /* @__PURE__ */ y(v, { direction: "column", alignItems: "center", gap: "4px", children: [
2828
2828
  /* @__PURE__ */ i(fe, { animated: !0, width: "180px" }),
2829
2829
  /* @__PURE__ */ i(fe, { animated: !0, width: "85px" })
2830
2830
  ] }, "loading"),
2831
- /* @__PURE__ */ b(v, { direction: "column", gap: "12px", alignItems: "center", children: [
2831
+ /* @__PURE__ */ y(v, { direction: "column", gap: "12px", alignItems: "center", children: [
2832
2832
  /* @__PURE__ */ i(K, { dashed: !0 }),
2833
2833
  /* @__PURE__ */ i(fe, { animated: !0, width: "150px" })
2834
2834
  ] }),
@@ -2839,7 +2839,7 @@ const Ao = {
2839
2839
  gap: "12px",
2840
2840
  justifyContent: "space-between",
2841
2841
  height: "203px",
2842
- children: s.map((p, u) => /* @__PURE__ */ i(jn, { children: /* @__PURE__ */ b(
2842
+ children: s.map((p, u) => /* @__PURE__ */ i(jn, { children: /* @__PURE__ */ y(
2843
2843
  v,
2844
2844
  {
2845
2845
  direction: "column",
@@ -2951,9 +2951,9 @@ const Ao = {
2951
2951
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
2952
2952
  );
2953
2953
  const s = Se("(max-width: 400px)");
2954
- return Ct(
2955
- /* @__PURE__ */ i(Wo, { smallScreen: s, children: /* @__PURE__ */ i(xt, { children: /* @__PURE__ */ i(Qo, { children: /* @__PURE__ */ b(v, { direction: "column", gap: "24px", children: [
2956
- /* @__PURE__ */ i(v, { direction: "column", gap: "24px", children: /* @__PURE__ */ b(v, { alignItems: "center", justifyContent: "space-between", children: [
2954
+ return Dt(
2955
+ /* @__PURE__ */ i(Wo, { smallScreen: s, children: /* @__PURE__ */ i(xt, { children: /* @__PURE__ */ i(Qo, { children: /* @__PURE__ */ y(v, { direction: "column", gap: "24px", children: [
2956
+ /* @__PURE__ */ i(v, { direction: "column", gap: "24px", children: /* @__PURE__ */ y(v, { alignItems: "center", justifyContent: "space-between", children: [
2957
2957
  /* @__PURE__ */ i(D, { type: "title", size: "large", appearance: "dark", weight: "bold", children: a }),
2958
2958
  /* @__PURE__ */ i(wt, { size: "24px", cursor: "pointer", onClick: r })
2959
2959
  ] }) }),
@@ -3008,7 +3008,7 @@ const Fr = $.div`
3008
3008
  height: 100%;
3009
3009
  padding-bottom: 12px;
3010
3010
  cursor: pointer;
3011
- `, Nt = $.div`
3011
+ `, Et = $.div`
3012
3012
  width: 100%;
3013
3013
  height: 100%;
3014
3014
  & > div {
@@ -3042,7 +3042,7 @@ const Fr = $.div`
3042
3042
  `, ei = (e) => {
3043
3043
  const { index: t, handleOpenModal: n } = e;
3044
3044
  return /* @__PURE__ */ i(
3045
- Dt,
3045
+ Nt,
3046
3046
  {
3047
3047
  id: `loading-card-${t}`,
3048
3048
  handleDelete: () => {
@@ -3055,10 +3055,10 @@ const Fr = $.div`
3055
3055
  );
3056
3056
  }, ti = (e) => {
3057
3057
  const { decision: t, controls: n, handleOpenModal: r, handleDelete: a, textValues: o } = e;
3058
- return t ? /* @__PURE__ */ i(Nt, { children: /* @__PURE__ */ b(v, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
3058
+ return t ? /* @__PURE__ */ i(Et, { children: /* @__PURE__ */ y(v, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
3059
3059
  /* @__PURE__ */ i(D, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: t.decisionId }),
3060
3060
  /* @__PURE__ */ i(
3061
- Dt,
3061
+ Nt,
3062
3062
  {
3063
3063
  id: t.decisionId,
3064
3064
  handleDelete: () => a ? a(t.decisionId) : null,
@@ -3075,21 +3075,21 @@ const Fr = $.div`
3075
3075
  handleOpenModal: r,
3076
3076
  shouldRenderEmptyMessage: a
3077
3077
  } = e, o = t || "Agregar decisión";
3078
- return /* @__PURE__ */ i(Nt, { children: a ? null : /* @__PURE__ */ b(v, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
3078
+ return /* @__PURE__ */ i(Et, { children: a ? null : /* @__PURE__ */ y(v, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
3079
3079
  /* @__PURE__ */ i(D, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
3080
3080
  /* @__PURE__ */ i(
3081
3081
  Fr,
3082
3082
  {
3083
3083
  onClick: () => r ? r() : null,
3084
3084
  children: /* @__PURE__ */ i(
3085
- Dt,
3085
+ Nt,
3086
3086
  {
3087
3087
  id: `add-decision-${n}`,
3088
3088
  handleDelete: () => {
3089
3089
  },
3090
3090
  handleView: () => r ? r() : null,
3091
3091
  controls: !1,
3092
- children: /* @__PURE__ */ b(v, { direction: "column", gap: "12px", alignItems: "center", children: [
3092
+ children: /* @__PURE__ */ y(v, { direction: "column", gap: "12px", alignItems: "center", children: [
3093
3093
  /* @__PURE__ */ i(B, { appearance: "gray", icon: /* @__PURE__ */ i(St, {}), size: "35px" }),
3094
3094
  /* @__PURE__ */ i(D, { appearance: "gray", type: "body", size: "large", children: o })
3095
3095
  ] })
@@ -3154,7 +3154,7 @@ const Fr = $.div`
3154
3154
  handleSubmitForm: h,
3155
3155
  handleDelete: g,
3156
3156
  terms: f = !0
3157
- } = e, y = Se("(max-width: 681px)"), m = Se("(max-width: 400px)"), { renderedCards: T, shouldRenderAddCard: S } = ai({
3157
+ } = e, b = Se("(max-width: 681px)"), m = Se("(max-width: 400px)"), { renderedCards: T, shouldRenderAddCard: S } = ai({
3158
3158
  controls: t,
3159
3159
  customTitleContentAddCard: n,
3160
3160
  decisions: a,
@@ -3163,20 +3163,20 @@ const Fr = $.div`
3163
3163
  handleDelete: g,
3164
3164
  textValues: o
3165
3165
  }), E = (a == null ? void 0 : a.length) === 0 && !d;
3166
- return /* @__PURE__ */ b(j, { children: [
3167
- /* @__PURE__ */ i(Zo, { children: /* @__PURE__ */ i(Ko, { children: /* @__PURE__ */ i(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */ b(
3166
+ return /* @__PURE__ */ y(j, { children: [
3167
+ /* @__PURE__ */ i(Zo, { children: /* @__PURE__ */ i(Ko, { children: /* @__PURE__ */ i(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */ y(
3168
3168
  v,
3169
3169
  {
3170
3170
  direction: "column",
3171
3171
  gap: "28px",
3172
3172
  width: "100%",
3173
- height: y ? "auto" : "435px",
3173
+ height: b ? "auto" : "435px",
3174
3174
  justifyContent: "center",
3175
3175
  alignItems: "center",
3176
3176
  children: [
3177
- /* @__PURE__ */ i(D, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ b(j, { children: [
3177
+ /* @__PURE__ */ i(D, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ y(j, { children: [
3178
3178
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
3179
- /* @__PURE__ */ b(
3179
+ /* @__PURE__ */ y(
3180
3180
  D,
3181
3181
  {
3182
3182
  as: "span",
@@ -3203,7 +3203,7 @@ const Fr = $.div`
3203
3203
  )
3204
3204
  ]
3205
3205
  }
3206
- ) : /* @__PURE__ */ b(
3206
+ ) : /* @__PURE__ */ y(
3207
3207
  Fe,
3208
3208
  {
3209
3209
  templateColumns: m ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
@@ -3214,7 +3214,7 @@ const Fr = $.div`
3214
3214
  autoRows: "1fr",
3215
3215
  justifyItems: "center",
3216
3216
  padding: "6px",
3217
- height: y ? "auto" : "484px",
3217
+ height: b ? "auto" : "484px",
3218
3218
  children: [
3219
3219
  T,
3220
3220
  S && pn({
@@ -3295,9 +3295,9 @@ const Fr = $.div`
3295
3295
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
3296
3296
  );
3297
3297
  const s = Se("(max-width: 400px)");
3298
- return Ct(
3299
- /* @__PURE__ */ i(oi, { $smallScreen: s, children: /* @__PURE__ */ i(xt, { children: /* @__PURE__ */ i(ii, { children: /* @__PURE__ */ b(v, { direction: "column", gap: "24px", children: [
3300
- /* @__PURE__ */ i(v, { direction: "column", gap: "24px", children: /* @__PURE__ */ b(v, { alignItems: "center", justifyContent: "space-between", children: [
3298
+ return Dt(
3299
+ /* @__PURE__ */ i(oi, { $smallScreen: s, children: /* @__PURE__ */ i(xt, { children: /* @__PURE__ */ i(ii, { children: /* @__PURE__ */ y(v, { direction: "column", gap: "24px", children: [
3300
+ /* @__PURE__ */ i(v, { direction: "column", gap: "24px", children: /* @__PURE__ */ y(v, { alignItems: "center", justifyContent: "space-between", children: [
3301
3301
  /* @__PURE__ */ i(D, { type: "title", size: "large", appearance: "dark", weight: "bold", children: a }),
3302
3302
  /* @__PURE__ */ i(wt, { size: "24px", cursor: "pointer", onClick: r })
3303
3303
  ] }) }),
@@ -3388,7 +3388,7 @@ const di = $.div`
3388
3388
  `, ui = (e) => {
3389
3389
  const { index: t, handleOpenModal: n } = e;
3390
3390
  return /* @__PURE__ */ i(
3391
- Dt,
3391
+ Nt,
3392
3392
  {
3393
3393
  id: `loading-card-${t}`,
3394
3394
  handleDelete: () => {
@@ -3460,7 +3460,7 @@ const di = $.div`
3460
3460
  textValues: l,
3461
3461
  visibleConditions: d
3462
3462
  } = e;
3463
- return o ? /* @__PURE__ */ b(v, { direction: "column", gap: "12px", children: [
3463
+ return o ? /* @__PURE__ */ y(v, { direction: "column", gap: "12px", children: [
3464
3464
  /* @__PURE__ */ i(v, { direction: "column", alignItems: "center", children: /* @__PURE__ */ i(
3465
3465
  et,
3466
3466
  {
@@ -3472,7 +3472,7 @@ const di = $.div`
3472
3472
  }
3473
3473
  ) }, n.ruleName),
3474
3474
  /* @__PURE__ */ i(K, { dashed: !0 }),
3475
- /* @__PURE__ */ i(Hn, { children: /* @__PURE__ */ b(
3475
+ /* @__PURE__ */ i(Hn, { children: /* @__PURE__ */ y(
3476
3476
  v,
3477
3477
  {
3478
3478
  direction: "column",
@@ -3513,12 +3513,12 @@ const di = $.div`
3513
3513
  ]
3514
3514
  }
3515
3515
  ) })
3516
- ] }) : /* @__PURE__ */ b(v, { direction: "column", gap: "12px", children: [
3517
- /* @__PURE__ */ b(v, { direction: "column", alignItems: "center", gap: "4px", children: [
3516
+ ] }) : /* @__PURE__ */ y(v, { direction: "column", gap: "12px", children: [
3517
+ /* @__PURE__ */ y(v, { direction: "column", alignItems: "center", gap: "4px", children: [
3518
3518
  /* @__PURE__ */ i(fe, { animated: !0, width: "180px" }),
3519
3519
  /* @__PURE__ */ i(fe, { animated: !0, width: "85px" })
3520
3520
  ] }, "loading"),
3521
- /* @__PURE__ */ b(v, { direction: "column", gap: "12px", alignItems: "center", children: [
3521
+ /* @__PURE__ */ y(v, { direction: "column", gap: "12px", alignItems: "center", children: [
3522
3522
  /* @__PURE__ */ i(K, { dashed: !0 }),
3523
3523
  /* @__PURE__ */ i(fe, { animated: !0, width: "150px" })
3524
3524
  ] }),
@@ -3529,7 +3529,7 @@ const di = $.div`
3529
3529
  gap: "12px",
3530
3530
  justifyContent: "space-between",
3531
3531
  height: "203px",
3532
- children: s.map((p, u) => /* @__PURE__ */ i(Bn, { children: /* @__PURE__ */ b(
3532
+ children: s.map((p, u) => /* @__PURE__ */ i(Bn, { children: /* @__PURE__ */ y(
3533
3533
  v,
3534
3534
  {
3535
3535
  direction: "column",
@@ -3637,9 +3637,9 @@ $.div`
3637
3637
  `;
3638
3638
  const Ni = (e) => {
3639
3639
  const { children: t, controls: n = !0, handleDelete: r, id: a } = e;
3640
- return /* @__PURE__ */ i(Di, { children: /* @__PURE__ */ b(v, { direction: "column", gap: "16px", padding: "12px 16px", children: [
3640
+ return /* @__PURE__ */ i(Di, { children: /* @__PURE__ */ y(v, { direction: "column", gap: "16px", padding: "12px 16px", children: [
3641
3641
  t,
3642
- n && /* @__PURE__ */ b(j, { children: [
3642
+ n && /* @__PURE__ */ y(j, { children: [
3643
3643
  /* @__PURE__ */ i(K, {}),
3644
3644
  /* @__PURE__ */ i(v, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ i(
3645
3645
  B,
@@ -3647,7 +3647,7 @@ const Ni = (e) => {
3647
3647
  cursorHover: !0,
3648
3648
  appearance: "danger",
3649
3649
  size: "24px",
3650
- icon: /* @__PURE__ */ i(qt, {}),
3650
+ icon: /* @__PURE__ */ i(Yt, {}),
3651
3651
  onClick: () => {
3652
3652
  r(a);
3653
3653
  }
@@ -3659,7 +3659,7 @@ const Ni = (e) => {
3659
3659
  const { decision: t, controls: n, handleOpenModal: r, handleDelete: a, textValues: o, index: s } = e;
3660
3660
  if (!t) return null;
3661
3661
  const c = typeof s == "number" ? `Decisión ${s + 1}` : t.decisionId;
3662
- return /* @__PURE__ */ i(Nt, { children: /* @__PURE__ */ b(v, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
3662
+ return /* @__PURE__ */ i(Et, { children: /* @__PURE__ */ y(v, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
3663
3663
  /* @__PURE__ */ i(D, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: c }),
3664
3664
  /* @__PURE__ */ i(
3665
3665
  Ni,
@@ -3685,21 +3685,21 @@ const Ni = (e) => {
3685
3685
  handleOpenModal: r,
3686
3686
  shouldRenderEmptyMessage: a
3687
3687
  } = e, o = t || "Agregar decisión";
3688
- return /* @__PURE__ */ i(Nt, { children: a ? null : /* @__PURE__ */ b(v, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
3688
+ return /* @__PURE__ */ i(Et, { children: a ? null : /* @__PURE__ */ y(v, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
3689
3689
  /* @__PURE__ */ i(D, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
3690
3690
  /* @__PURE__ */ i(
3691
3691
  Fr,
3692
3692
  {
3693
3693
  onClick: () => r ? r() : null,
3694
3694
  children: /* @__PURE__ */ i(
3695
- Dt,
3695
+ Nt,
3696
3696
  {
3697
3697
  id: `add-decision-${n}`,
3698
3698
  handleDelete: () => {
3699
3699
  },
3700
3700
  handleView: () => r ? r() : null,
3701
3701
  controls: !1,
3702
- children: /* @__PURE__ */ b(v, { direction: "column", gap: "12px", alignItems: "center", children: [
3702
+ children: /* @__PURE__ */ y(v, { direction: "column", gap: "12px", alignItems: "center", children: [
3703
3703
  /* @__PURE__ */ i(B, { appearance: "gray", icon: /* @__PURE__ */ i(St, {}), size: "35px" }),
3704
3704
  /* @__PURE__ */ i(D, { appearance: "gray", type: "body", size: "large", children: o })
3705
3705
  ] })
@@ -3769,14 +3769,14 @@ const Ni = (e) => {
3769
3769
  [F.GREATER_THAN]: rn,
3770
3770
  [F.LESS_THAN]: rn,
3771
3771
  [F.EQUAL]: rn
3772
- }, Fi = (e) => Li[e] || ki, Mt = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Array.isArray(e) || e.length > 0), qn = (e, t) => {
3772
+ }, Fi = (e) => Li[e] || ki, Pt = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Array.isArray(e) || e.length > 0), qn = (e, t) => {
3773
3773
  var c;
3774
3774
  const n = Object.entries(
3775
3775
  (e == null ? void 0 : e.conditionsThatEstablishesTheDecision) ?? {}
3776
- ).filter(([, l]) => Mt(l)).map(([l, d]) => ({ conditionName: l, value: d }));
3776
+ ).filter(([, l]) => Pt(l)).map(([l, d]) => ({ conditionName: l, value: d }));
3777
3777
  let r = [];
3778
3778
  const a = (c = e == null ? void 0 : e.conditionGroups) == null ? void 0 : c.conditionsThatEstablishesTheDecision;
3779
- Array.isArray(a) ? r = a.filter((l) => Mt(l == null ? void 0 : l.value)).map((l) => ({ conditionName: l == null ? void 0 : l.conditionName, value: l == null ? void 0 : l.value })) : a && typeof a == "object" && (r = Object.entries(a).filter(([, l]) => Mt(l)).map(([l, d]) => ({ conditionName: l, value: d })));
3779
+ Array.isArray(a) ? r = a.filter((l) => Pt(l == null ? void 0 : l.value)).map((l) => ({ conditionName: l == null ? void 0 : l.conditionName, value: l == null ? void 0 : l.value })) : a && typeof a == "object" && (r = Object.entries(a).filter(([, l]) => Pt(l)).map(([l, d]) => ({ conditionName: l, value: d })));
3780
3780
  const o = n.length ? n : r, s = new Map(
3781
3781
  (t ?? []).map((l) => [l == null ? void 0 : l.conditionName, l])
3782
3782
  );
@@ -3797,7 +3797,7 @@ function Vi({
3797
3797
  }) {
3798
3798
  var u, h;
3799
3799
  const r = ((u = e.conditionGroups[0]) == null ? void 0 : u.conditionsThatEstablishesTheDecision) ?? [], a = r.reduce(
3800
- (g, f) => (Mt(f.value) && (g[f.conditionName] = f.value), g),
3800
+ (g, f) => (Pt(f.value) && (g[f.conditionName] = f.value), g),
3801
3801
  {}
3802
3802
  ), o = Object.keys(a).length > 0, s = {
3803
3803
  ruleName: e.ruleName || "",
@@ -3830,7 +3830,7 @@ function Vi({
3830
3830
  "La fecha de inicio es requerida"
3831
3831
  ), l.validUntil = yt().when(
3832
3832
  "checkClosed",
3833
- (g, f, { parent: y }) => (y == null ? void 0 : y.checkClosed) ? f.required("La fecha de finalización es requerida").test(
3833
+ (g, f, { parent: b }) => (b == null ? void 0 : b.checkClosed) ? f.required("La fecha de finalización es requerida").test(
3834
3834
  "is-after-startDate",
3835
3835
  "La fecha de finalización debe ser mayor o igual a la fecha de inicio",
3836
3836
  function(T) {
@@ -3846,8 +3846,8 @@ function Vi({
3846
3846
  validate: (g) => {
3847
3847
  const f = {};
3848
3848
  if (!g.toggleNone) {
3849
- const y = g.conditionsThatEstablishesTheDecision || {}, m = Object.keys(y).filter(
3850
- (T) => y[T] !== void 0
3849
+ const b = g.conditionsThatEstablishesTheDecision || {}, m = Object.keys(b).filter(
3850
+ (T) => b[T] !== void 0
3851
3851
  );
3852
3852
  if (m.length > 0) {
3853
3853
  const T = qn(
@@ -3866,7 +3866,7 @@ function Vi({
3866
3866
  validateOnBlur: !0,
3867
3867
  onSubmit: (g) => {
3868
3868
  var T;
3869
- const f = ((T = e.conditionGroups) == null ? void 0 : T.ConditionGroupId) ?? "group-primary", y = g.toggleNone ? [] : qn(g, r), m = {
3869
+ const f = ((T = e.conditionGroups) == null ? void 0 : T.ConditionGroupId) ?? "group-primary", b = g.toggleNone ? [] : qn(g, r), m = {
3870
3870
  ...e,
3871
3871
  ruleName: g.ruleName,
3872
3872
  decisionDataType: g.decisionDataType,
@@ -3876,7 +3876,7 @@ function Vi({
3876
3876
  validUntil: g.validUntil,
3877
3877
  conditionGroups: {
3878
3878
  ConditionGroupId: f,
3879
- conditionsThatEstablishesTheDecision: y
3879
+ conditionsThatEstablishesTheDecision: b
3880
3880
  }
3881
3881
  };
3882
3882
  t(m);
@@ -3928,7 +3928,7 @@ const _i = $.div`
3928
3928
  } = e, [l, d] = Y(t);
3929
3929
  return Pe(() => {
3930
3930
  d(t);
3931
- }, [t]), /* @__PURE__ */ b(j, { children: [
3931
+ }, [t]), /* @__PURE__ */ y(j, { children: [
3932
3932
  /* @__PURE__ */ i(v, { children: /* @__PURE__ */ i(
3933
3933
  rt,
3934
3934
  {
@@ -3960,15 +3960,15 @@ const _i = $.div`
3960
3960
  messageEnd: u = "",
3961
3961
  statusStart: h = "pending",
3962
3962
  statusEnd: g = "pending"
3963
- } = e, [f, y] = Y(s), [m, T] = Y(l), [S, E] = Y(d), C = ({ target: V }) => {
3964
- y(V.checked), r && r(V.checked);
3963
+ } = e, [f, b] = Y(s), [m, T] = Y(l), [S, E] = Y(d), C = ({ target: V }) => {
3964
+ b(V.checked), r && r(V.checked);
3965
3965
  }, N = (V) => {
3966
3966
  T(V.target.value), t(V);
3967
3967
  }, A = (V) => {
3968
3968
  E(V.target.value), n(V);
3969
3969
  }, O = Se("(max-width: 400px)");
3970
- return /* @__PURE__ */ b(j, { children: [
3971
- /* @__PURE__ */ b(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
3970
+ return /* @__PURE__ */ y(j, { children: [
3971
+ /* @__PURE__ */ y(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
3972
3972
  /* @__PURE__ */ i(
3973
3973
  D,
3974
3974
  {
@@ -3999,7 +3999,7 @@ const _i = $.div`
3999
3999
  }
4000
4000
  )
4001
4001
  ] }),
4002
- /* @__PURE__ */ b(
4002
+ /* @__PURE__ */ y(
4003
4003
  v,
4004
4004
  {
4005
4005
  direction: O ? "column" : "row",
@@ -4051,14 +4051,14 @@ const Ui = (e) => {
4051
4051
  termStartStatus: d,
4052
4052
  termEndStatus: p
4053
4053
  } = e;
4054
- return /* @__PURE__ */ i("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ b(v, { direction: "column", gap: "24px", children: [
4055
- jt({
4054
+ return /* @__PURE__ */ i("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ y(v, { direction: "column", gap: "24px", children: [
4055
+ Gt({
4056
4056
  condition: o,
4057
4057
  formik: t,
4058
4058
  isDecision: !0
4059
4059
  }),
4060
4060
  /* @__PURE__ */ i(K, { dashed: !0 }),
4061
- /* @__PURE__ */ i(_i, { children: /* @__PURE__ */ i(Mi, { children: /* @__PURE__ */ b(
4061
+ /* @__PURE__ */ i(_i, { children: /* @__PURE__ */ i(Mi, { children: /* @__PURE__ */ y(
4062
4062
  v,
4063
4063
  {
4064
4064
  direction: "column",
@@ -4066,7 +4066,7 @@ const Ui = (e) => {
4066
4066
  gap: "16px",
4067
4067
  height: "272px",
4068
4068
  children: [
4069
- /* @__PURE__ */ b(
4069
+ /* @__PURE__ */ y(
4070
4070
  v,
4071
4071
  {
4072
4072
  justifyContent: "space-between",
@@ -4100,7 +4100,7 @@ const Ui = (e) => {
4100
4100
  u.conditionName,
4101
4101
  u.howToSetTheCondition === Vr.LIST_OF_VALUES_MULTI
4102
4102
  )(g.target.checked),
4103
- children: jt({ condition: u, formik: t })
4103
+ children: Gt({ condition: u, formik: t })
4104
4104
  },
4105
4105
  u.conditionName
4106
4106
  );
@@ -4108,7 +4108,7 @@ const Ui = (e) => {
4108
4108
  ]
4109
4109
  }
4110
4110
  ) }) }),
4111
- n.terms && /* @__PURE__ */ b(j, { children: [
4111
+ n.terms && /* @__PURE__ */ y(j, { children: [
4112
4112
  /* @__PURE__ */ i(K, { dashed: !0 }),
4113
4113
  /* @__PURE__ */ i(
4114
4114
  zi,
@@ -4132,7 +4132,7 @@ const Ui = (e) => {
4132
4132
  ] }),
4133
4133
  /* @__PURE__ */ i(K, {}),
4134
4134
  l && /* @__PURE__ */ i(D, { type: "label", size: "medium", appearance: "danger", children: typeof t.errors.conditionsThatEstablishesTheDecision == "string" ? t.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
4135
- /* @__PURE__ */ b(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
4135
+ /* @__PURE__ */ y(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
4136
4136
  /* @__PURE__ */ i(Z, { appearance: "gray", onClick: r, children: n.cancel }),
4137
4137
  /* @__PURE__ */ i(Z, { type: "submit", children: n.confirm })
4138
4138
  ] })
@@ -4150,7 +4150,7 @@ const Ui = (e) => {
4150
4150
  decisionDataType: t.decisionDataType,
4151
4151
  listOfPossibleValues: t.listOfPossibleValues
4152
4152
  }, l = ((f = (g = t.conditionGroups[0]) == null ? void 0 : g.conditionsThatEstablishesTheDecision) == null ? void 0 : f.filter(
4153
- (y) => !y.hidden
4153
+ (b) => !b.hidden
4154
4154
  )) || [], d = !!o.errors.conditionsThatEstablishesTheDecision && o.submitCount > 0, p = o.touched.effectiveFrom ? o.errors.effectiveFrom ? "invalid" : "valid" : void 0, u = o.touched.validUntil ? o.errors.validUntil ? "invalid" : "valid" : void 0;
4155
4155
  return /* @__PURE__ */ i(
4156
4156
  Ui,
@@ -4162,19 +4162,19 @@ const Ui = (e) => {
4162
4162
  visibleConditions: l,
4163
4163
  normalizedDecision: c,
4164
4164
  handleToggleNoneChange: s,
4165
- handleConditionToggleChange: (y, m) => (T) => {
4165
+ handleConditionToggleChange: (b, m) => (T) => {
4166
4166
  if (T) {
4167
4167
  const S = m ? [] : "";
4168
4168
  s(!1), o.setFieldValue(
4169
- `conditionsThatEstablishesTheDecision.${y}`,
4169
+ `conditionsThatEstablishesTheDecision.${b}`,
4170
4170
  S
4171
4171
  );
4172
4172
  } else {
4173
4173
  o.setFieldValue(
4174
- `conditionsThatEstablishesTheDecision.${y}`,
4174
+ `conditionsThatEstablishesTheDecision.${b}`,
4175
4175
  void 0
4176
4176
  ), o.setFieldTouched(
4177
- `conditionsThatEstablishesTheDecision.${y}`,
4177
+ `conditionsThatEstablishesTheDecision.${b}`,
4178
4178
  !1,
4179
4179
  !1
4180
4180
  );
@@ -4239,7 +4239,7 @@ const Ui = (e) => {
4239
4239
  handleSubmitForm: h,
4240
4240
  handleDelete: g,
4241
4241
  terms: f = !0
4242
- } = e, y = Se("(max-width: 681px)"), m = Se("(max-width: 400px)"), { renderedCards: T, shouldRenderAddCard: S } = Gi({
4242
+ } = e, b = Se("(max-width: 681px)"), m = Se("(max-width: 400px)"), { renderedCards: T, shouldRenderAddCard: S } = Gi({
4243
4243
  controls: t,
4244
4244
  customTitleContentAddCard: n,
4245
4245
  decisions: a,
@@ -4248,20 +4248,20 @@ const Ui = (e) => {
4248
4248
  handleDelete: g,
4249
4249
  textValues: o
4250
4250
  }), E = (a == null ? void 0 : a.length) === 0 && !d;
4251
- return /* @__PURE__ */ b(j, { children: [
4252
- /* @__PURE__ */ i(di, { children: /* @__PURE__ */ i(ci, { children: /* @__PURE__ */ i(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */ b(
4251
+ return /* @__PURE__ */ y(j, { children: [
4252
+ /* @__PURE__ */ i(di, { children: /* @__PURE__ */ i(ci, { children: /* @__PURE__ */ i(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */ y(
4253
4253
  v,
4254
4254
  {
4255
4255
  direction: "column",
4256
4256
  gap: "28px",
4257
4257
  width: "100%",
4258
- height: y ? "auto" : "435px",
4258
+ height: b ? "auto" : "435px",
4259
4259
  justifyContent: "center",
4260
4260
  alignItems: "center",
4261
4261
  children: [
4262
- /* @__PURE__ */ i(D, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ b(j, { children: [
4262
+ /* @__PURE__ */ i(D, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ y(j, { children: [
4263
4263
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
4264
- /* @__PURE__ */ b(
4264
+ /* @__PURE__ */ y(
4265
4265
  D,
4266
4266
  {
4267
4267
  as: "span",
@@ -4288,7 +4288,7 @@ const Ui = (e) => {
4288
4288
  )
4289
4289
  ]
4290
4290
  }
4291
- ) : /* @__PURE__ */ b(
4291
+ ) : /* @__PURE__ */ y(
4292
4292
  Fe,
4293
4293
  {
4294
4294
  templateColumns: m ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
@@ -4299,7 +4299,7 @@ const Ui = (e) => {
4299
4299
  autoRows: "1fr",
4300
4300
  justifyItems: "center",
4301
4301
  padding: "6px",
4302
- height: y ? "auto" : "484px",
4302
+ height: b ? "auto" : "484px",
4303
4303
  children: [
4304
4304
  T,
4305
4305
  S && hn({
@@ -4407,7 +4407,7 @@ const Ui = (e) => {
4407
4407
  borderRadius: h,
4408
4408
  border: g,
4409
4409
  margin: f = "0px",
4410
- padding: y = "0px",
4410
+ padding: b = "0px",
4411
4411
  boxSizing: m,
4412
4412
  scroll: T = !1
4413
4413
  } = e;
@@ -4426,7 +4426,7 @@ const Ui = (e) => {
4426
4426
  $background: u,
4427
4427
  $border: g,
4428
4428
  $margin: f,
4429
- $padding: y,
4429
+ $padding: b,
4430
4430
  $borderRadius: h,
4431
4431
  $boxSizing: m,
4432
4432
  $scroll: T,
@@ -4494,7 +4494,7 @@ const nl = (e) => {
4494
4494
  validUntilRenderer: h,
4495
4495
  onEdit: g,
4496
4496
  onDelete: f,
4497
- tabs: y,
4497
+ tabs: b,
4498
4498
  selectedTab: m,
4499
4499
  onTabChange: T,
4500
4500
  currentConditions: S,
@@ -4502,14 +4502,14 @@ const nl = (e) => {
4502
4502
  editionMode: C = "versioned",
4503
4503
  withEditOption: N = "false"
4504
4504
  } = e;
4505
- return o ? /* @__PURE__ */ b(v, { direction: "column", gap: "16px", children: [
4506
- /* @__PURE__ */ i(Ki, { onClick: l, children: /* @__PURE__ */ b(
4505
+ return o ? /* @__PURE__ */ y(v, { direction: "column", gap: "16px", children: [
4506
+ /* @__PURE__ */ i(Ki, { onClick: l, children: /* @__PURE__ */ y(
4507
4507
  v,
4508
4508
  {
4509
4509
  alignItems: "start",
4510
4510
  justifyContent: "space-between",
4511
4511
  children: [
4512
- /* @__PURE__ */ b(v, { gap: "12px", children: [
4512
+ /* @__PURE__ */ y(v, { gap: "12px", children: [
4513
4513
  /* @__PURE__ */ i(el, { children: /* @__PURE__ */ i(
4514
4514
  we,
4515
4515
  {
@@ -4520,7 +4520,7 @@ const nl = (e) => {
4520
4520
  }
4521
4521
  ) }),
4522
4522
  /* @__PURE__ */ i(tl, { children: /* @__PURE__ */ i(
4523
- Ot,
4523
+ Rt,
4524
4524
  {
4525
4525
  element: a,
4526
4526
  valueData: Ze(
@@ -4531,8 +4531,8 @@ const nl = (e) => {
4531
4531
  }
4532
4532
  ) })
4533
4533
  ] }),
4534
- /* @__PURE__ */ b(v, { gap: "12px", children: [
4535
- t && /* @__PURE__ */ b(j, { children: [
4534
+ /* @__PURE__ */ y(v, { gap: "12px", children: [
4535
+ t && /* @__PURE__ */ y(j, { children: [
4536
4536
  N && /* @__PURE__ */ i(
4537
4537
  B,
4538
4538
  {
@@ -4549,7 +4549,7 @@ const nl = (e) => {
4549
4549
  B,
4550
4550
  {
4551
4551
  appearance: "danger",
4552
- icon: /* @__PURE__ */ i(qt, {}),
4552
+ icon: /* @__PURE__ */ i(Yt, {}),
4553
4553
  size: "24px",
4554
4554
  cursorHover: !0,
4555
4555
  onClick: (A) => {
@@ -4572,12 +4572,12 @@ const nl = (e) => {
4572
4572
  },
4573
4573
  r.ruleName
4574
4574
  ) }),
4575
- c && /* @__PURE__ */ b(j, { children: [
4575
+ c && /* @__PURE__ */ y(j, { children: [
4576
4576
  /* @__PURE__ */ i(K, { dashed: !0 }),
4577
4577
  E ? /* @__PURE__ */ i(
4578
4578
  Ar,
4579
4579
  {
4580
- tabs: y,
4580
+ tabs: b,
4581
4581
  selectedTab: m,
4582
4582
  onChange: T
4583
4583
  }
@@ -4593,7 +4593,7 @@ const nl = (e) => {
4593
4593
  children: "Condiciones que lo determinan"
4594
4594
  }
4595
4595
  ),
4596
- /* @__PURE__ */ i(v, { direction: "column", gap: "20px", children: /* @__PURE__ */ b(
4596
+ /* @__PURE__ */ i(v, { direction: "column", gap: "20px", children: /* @__PURE__ */ y(
4597
4597
  v,
4598
4598
  {
4599
4599
  direction: "column",
@@ -4608,7 +4608,7 @@ const nl = (e) => {
4608
4608
  borderRadius: "8px",
4609
4609
  background: !0,
4610
4610
  children: /* @__PURE__ */ i(
4611
- Ot,
4611
+ Rt,
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
- Ot,
4635
+ Rt,
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
- Ot,
4653
+ Rt,
4654
4654
  {
4655
4655
  element: h.element,
4656
4656
  valueData: h.valueData,
@@ -4664,17 +4664,17 @@ const nl = (e) => {
4664
4664
  }
4665
4665
  ) })
4666
4666
  ] })
4667
- ] }) : /* @__PURE__ */ b(v, { justifyContent: "space-between", children: [
4668
- /* @__PURE__ */ b(v, { alignItems: "center", gap: "8px", children: [
4667
+ ] }) : /* @__PURE__ */ y(v, { justifyContent: "space-between", children: [
4668
+ /* @__PURE__ */ y(v, { alignItems: "center", gap: "8px", children: [
4669
4669
  /* @__PURE__ */ i(fe, { animated: !0, width: "150px" }),
4670
4670
  /* @__PURE__ */ i(fe, { animated: !0, width: "70px" })
4671
4671
  ] }),
4672
- /* @__PURE__ */ b(v, { alignItems: "center", gap: "8px", children: [
4672
+ /* @__PURE__ */ y(v, { alignItems: "center", gap: "8px", children: [
4673
4673
  /* @__PURE__ */ i(fe, { animated: !0, width: "50px" }),
4674
4674
  /* @__PURE__ */ i(ba, { animated: !0 })
4675
4675
  ] })
4676
4676
  ] });
4677
- }, Yn = (e) => !e || typeof e != "object" || Array.isArray(e) ? !1 : Object.values(e).some(Array.isArray), Pt = (e) => {
4677
+ }, Yn = (e) => !e || typeof e != "object" || Array.isArray(e) ? !1 : Object.values(e).some(Array.isArray), zt = (e) => {
4678
4678
  const t = /* @__PURE__ */ new Set(), n = [];
4679
4679
  for (const r of e) {
4680
4680
  const a = String((r == null ? void 0 : r.conditionName) ?? "");
@@ -4686,20 +4686,20 @@ const nl = (e) => {
4686
4686
  if (Yn(e.conditionsThatEstablishesTheDecision)) {
4687
4687
  const t = e.conditionsThatEstablishesTheDecision;
4688
4688
  return Object.fromEntries(
4689
- Object.entries(t).map(([n, r]) => [n, Pt(r)])
4689
+ Object.entries(t).map(([n, r]) => [n, zt(r)])
4690
4690
  );
4691
4691
  }
4692
4692
  if (Array.isArray(e.conditionGroups)) {
4693
4693
  const t = e.conditionGroups.map((n) => [
4694
4694
  n.ConditionGroupId,
4695
- Pt(
4695
+ zt(
4696
4696
  Array.isArray(n.conditionsThatEstablishesTheDecision) ? n.conditionsThatEstablishesTheDecision : []
4697
4697
  )
4698
4698
  ]);
4699
4699
  return Object.fromEntries(t);
4700
4700
  }
4701
4701
  return Yn(e) ? Object.fromEntries(
4702
- Object.entries(e).map(([t, n]) => [t, Pt(n)])
4702
+ Object.entries(e).map(([t, n]) => [t, zt(n)])
4703
4703
  ) : {};
4704
4704
  }, Mr = (e, t) => Object.fromEntries(
4705
4705
  Object.entries(e).map(([n, r]) => [n, r.filter(t)])
@@ -4727,7 +4727,7 @@ const nl = (e) => {
4727
4727
  default:
4728
4728
  return String(n);
4729
4729
  }
4730
- }, Rt = (e) => {
4730
+ }, Lt = (e) => {
4731
4731
  if (e == null || e === "") return "";
4732
4732
  const t = [
4733
4733
  "Ene",
@@ -4795,27 +4795,27 @@ const nl = (e) => {
4795
4795
  ...n,
4796
4796
  i18nValue: `De ${X}% a ${be}%`
4797
4797
  };
4798
- }, [n]) ?? n, f = !!(g != null && g.effectiveFrom), y = !!(g != null && g.validUntil), m = f ? {
4798
+ }, [n]) ?? n, f = !!(g != null && g.effectiveFrom), b = !!(g != null && g.validUntil), m = f ? {
4799
4799
  element: {
4800
4800
  labelName: "Vigencia desde:",
4801
- value: Rt(g.effectiveFrom),
4801
+ value: Lt(g.effectiveFrom),
4802
4802
  howToSetTheDecision: z.EQUAL,
4803
4803
  decisionDataType: q.DATE
4804
4804
  },
4805
4805
  valueData: Ze({
4806
- value: Rt(g.effectiveFrom),
4806
+ value: Lt(g.effectiveFrom),
4807
4807
  howToSetTheDecision: z.EQUAL,
4808
4808
  decisionDataType: q.DATE
4809
4809
  })
4810
- } : null, T = y ? {
4810
+ } : null, T = b ? {
4811
4811
  element: {
4812
4812
  labelName: "Vigencia hasta:",
4813
- value: Rt(g.validUntil),
4813
+ value: Lt(g.validUntil),
4814
4814
  howToSetTheDecision: z.EQUAL,
4815
4815
  decisionDataType: q.DATE
4816
4816
  },
4817
4817
  valueData: Ze({
4818
- value: Rt(g.validUntil),
4818
+ value: Lt(g.validUntil),
4819
4819
  howToSetTheDecision: z.EQUAL,
4820
4820
  decisionDataType: q.DATE
4821
4821
  })
@@ -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), je = M[Ve] ?? L[0] ?? "group-primary", Q = re[je] ?? [], W = L.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), je = M[Ve] ?? L[0] ?? "group-primary", Q = re[je] ?? [], W = L.length > 1, ee = Array.from({ length: 5 }), At = !!(!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
  {
@@ -4932,13 +4932,13 @@ const nl = (e) => {
4932
4932
  controls: d,
4933
4933
  decision: g,
4934
4934
  decisionMapper: A,
4935
- loading: Et,
4935
+ loading: At,
4936
4936
  skeleton: ee,
4937
4937
  tagLabel: lt,
4938
4938
  isOpen: o,
4939
4939
  onToggle: s,
4940
4940
  hasEffectiveFrom: f,
4941
- hasValidUntil: y,
4941
+ hasValidUntil: b,
4942
4942
  effectiveFromRenderer: m,
4943
4943
  validUntilRenderer: T,
4944
4944
  onEdit: c,
@@ -5055,7 +5055,7 @@ const ll = $.div`
5055
5055
  editionMode: d,
5056
5056
  withEditOption: p
5057
5057
  } = e;
5058
- return n ? /* @__PURE__ */ i(Nt, { children: /* @__PURE__ */ i(v, { direction: "column", gap: "4px", width: "100%", children: /* @__PURE__ */ i(
5058
+ return n ? /* @__PURE__ */ i(Et, { children: /* @__PURE__ */ i(v, { direction: "column", gap: "4px", width: "100%", children: /* @__PURE__ */ i(
5059
5059
  _r,
5060
5060
  {
5061
5061
  id: n.decisionId,
@@ -5172,11 +5172,11 @@ const ll = $.div`
5172
5172
  throw new Error(
5173
5173
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
5174
5174
  );
5175
- return Ct(
5176
- /* @__PURE__ */ i(zr, { children: /* @__PURE__ */ i(xt, { children: /* @__PURE__ */ i(hl, { $size: s, children: /* @__PURE__ */ b(v, { direction: "column", gap: "24px", children: [
5177
- /* @__PURE__ */ b(v, { direction: "column", gap: "24px", children: [
5178
- /* @__PURE__ */ b(v, { alignItems: "center", justifyContent: "space-between", children: [
5179
- /* @__PURE__ */ b(v, { direction: "column", gap: "8px", children: [
5175
+ return Dt(
5176
+ /* @__PURE__ */ i(zr, { children: /* @__PURE__ */ i(xt, { children: /* @__PURE__ */ i(hl, { $size: s, children: /* @__PURE__ */ y(v, { direction: "column", gap: "24px", children: [
5177
+ /* @__PURE__ */ y(v, { direction: "column", gap: "24px", children: [
5178
+ /* @__PURE__ */ y(v, { alignItems: "center", justifyContent: "space-between", children: [
5179
+ /* @__PURE__ */ y(v, { direction: "column", gap: "8px", children: [
5180
5180
  /* @__PURE__ */ i(
5181
5181
  D,
5182
5182
  {
@@ -5222,13 +5222,13 @@ const ll = $.div`
5222
5222
  ) : typeof t == "string"
5223
5223
  ),
5224
5224
  value: e
5225
- }), Lt = "Por favor escribe un valor", Xn = "Por favor escribe un valor mayor o igual que 0", Jn = "El valor desde no puede ser mayor que el valor hasta", Zn = (e, t) => {
5225
+ }), Ft = "Por favor escribe un valor", Xn = "Por favor escribe un valor mayor o igual que 0", Jn = "El valor desde no puede ser mayor que el valor hasta", Zn = (e, t) => {
5226
5226
  if (t !== "")
5227
5227
  return e;
5228
5228
  }, bl = (e) => ({
5229
5229
  schema: ne({
5230
- from: $e().transform(Zn).typeError(Lt).required(Lt).min(0, Xn),
5231
- to: $e().transform(Zn).typeError(Lt).required(Lt).min(0, Xn)
5230
+ from: $e().transform(Zn).typeError(Ft).required(Ft).min(0, Xn),
5231
+ to: $e().transform(Zn).typeError(Ft).required(Ft).min(0, Xn)
5232
5232
  }).test("from<=to", Jn, function(t) {
5233
5233
  const n = t == null ? void 0 : t.from, r = t == null ? void 0 : t.to;
5234
5234
  return n === void 0 || r === void 0 ? !0 : n > r ? this.createError({
@@ -5237,7 +5237,7 @@ const ll = $.div`
5237
5237
  }) : !0;
5238
5238
  }),
5239
5239
  value: { from: e == null ? void 0 : e.from, to: e == null ? void 0 : e.to }
5240
- }), Ft = "Por favor escribe un valor", Kn = "Por favor escribe un valor mayor o igual que 0", er = "El valor desde no puede ser mayor que el valor hasta", tr = (e, t) => {
5240
+ }), Vt = "Por favor escribe un valor", Kn = "Por favor escribe un valor mayor o igual que 0", er = "El valor desde no puede ser mayor que el valor hasta", tr = (e, t) => {
5241
5241
  if (t !== "")
5242
5242
  return e;
5243
5243
  }, yl = ({
@@ -5245,8 +5245,8 @@ const ll = $.div`
5245
5245
  max: t,
5246
5246
  pathPrefix: n = ""
5247
5247
  } = {}) => ne({
5248
- from: $e().transform(tr).typeError(Ft).required(Ft).min(e, Kn).max(t ?? Number.POSITIVE_INFINITY),
5249
- to: $e().transform(tr).typeError(Ft).required(Ft).min(e, Kn).max(t ?? Number.POSITIVE_INFINITY)
5248
+ from: $e().transform(tr).typeError(Vt).required(Vt).min(e, Kn).max(t ?? Number.POSITIVE_INFINITY),
5249
+ to: $e().transform(tr).typeError(Vt).required(Vt).min(e, Kn).max(t ?? Number.POSITIVE_INFINITY)
5250
5250
  }).test("from<=to", er, function(r) {
5251
5251
  const a = r == null ? void 0 : r.from, o = r == null ? void 0 : r.to;
5252
5252
  if (a === void 0 || o === void 0) return !0;
@@ -5344,17 +5344,17 @@ function Sl({
5344
5344
  ), o = Object.fromEntries(
5345
5345
  Object.entries(r).map(([h, g]) => {
5346
5346
  const f = {};
5347
- return g.forEach((y) => {
5348
- const m = y.conditionName, T = y.value !== void 0 && y.value !== null && y.value !== "", S = y.howToSetTheCondition === ge.LIST_OF_VALUES_MULTI ? [] : "";
5347
+ return g.forEach((b) => {
5348
+ const m = b.conditionName, T = b.value !== void 0 && b.value !== null && b.value !== "", S = b.howToSetTheCondition === ge.LIST_OF_VALUES_MULTI ? [] : "";
5349
5349
  f[m] = {
5350
- ...y,
5351
- value: T ? y.value : S
5350
+ ...b,
5351
+ value: T ? b.value : S
5352
5352
  };
5353
5353
  }), [h, f];
5354
5354
  })
5355
5355
  ), s = Object.entries(r).map(
5356
5356
  ([h, g]) => {
5357
- const f = o[h] || {}, y = g.map((m) => {
5357
+ const f = o[h] || {}, b = g.map((m) => {
5358
5358
  const T = m.conditionName, S = f[T], E = S && typeof S == "object" && "value" in S ? S.value : m.value;
5359
5359
  return {
5360
5360
  ...m,
@@ -5363,7 +5363,7 @@ function Sl({
5363
5363
  });
5364
5364
  return {
5365
5365
  ConditionGroupId: h,
5366
- conditionsThatEstablishesTheDecision: y
5366
+ conditionsThatEstablishesTheDecision: b
5367
5367
  };
5368
5368
  }
5369
5369
  ), c = {
@@ -5391,9 +5391,9 @@ function Sl({
5391
5391
  conditionsThatEstablishesTheDecision: bt((h, { parent: g }) => {
5392
5392
  const f = Me(e) || {};
5393
5393
  if (Object.keys(f).length === 0) return ne().shape({});
5394
- const y = g == null ? void 0 : g.conditionsThatEstablishesTheDecision, m = !!(g != null && g.toggleNone);
5394
+ const b = g == null ? void 0 : g.conditionsThatEstablishesTheDecision, m = !!(g != null && g.toggleNone);
5395
5395
  let T = !1;
5396
- if (y && typeof y == "object" && (T = Object.values(y).some(
5396
+ if (b && typeof b == "object" && (T = Object.values(b).some(
5397
5397
  (E) => E && typeof E == "object" && Object.values(E).some(
5398
5398
  (C) => on(C)
5399
5399
  )
@@ -5401,7 +5401,7 @@ function Sl({
5401
5401
  if (!T) return ne().shape({});
5402
5402
  const S = {};
5403
5403
  for (const [E, C] of Object.entries(f)) {
5404
- const N = y == null ? void 0 : y[E], A = {};
5404
+ const N = b == null ? void 0 : b[E], A = {};
5405
5405
  C.forEach((O) => {
5406
5406
  const V = N == null ? void 0 : N[O.conditionName];
5407
5407
  if (!on(V)) return;
@@ -5427,16 +5427,16 @@ function Sl({
5427
5427
  validateOnBlur: !0,
5428
5428
  onSubmit: (h) => {
5429
5429
  const g = Object.fromEntries(
5430
- Object.entries(r).map(([y, m]) => {
5430
+ Object.entries(r).map(([b, m]) => {
5431
5431
  var E;
5432
- const T = ((E = h.conditionsThatEstablishesTheDecision) == null ? void 0 : E[y]) || {}, S = m.map((C) => {
5432
+ const T = ((E = h.conditionsThatEstablishesTheDecision) == null ? void 0 : E[b]) || {}, S = m.map((C) => {
5433
5433
  const N = C.conditionName, A = T[N], O = yn(A);
5434
5434
  return {
5435
5435
  ...C,
5436
5436
  value: O
5437
5437
  };
5438
5438
  }).filter((C) => on(C.value));
5439
- return [y, S];
5439
+ return [b, S];
5440
5440
  })
5441
5441
  ), f = {
5442
5442
  ...e,
@@ -5452,13 +5452,13 @@ function Sl({
5452
5452
  }
5453
5453
  }), { formik: l, handleToggleNoneChange: (h) => {
5454
5454
  l.setFieldValue("toggleNone", h), a().forEach(({ group: g, cond: f }) => {
5455
- const y = `conditionsThatEstablishesTheDecision.${g}.${f.conditionName}`;
5455
+ const b = `conditionsThatEstablishesTheDecision.${g}.${f.conditionName}`;
5456
5456
  if (h)
5457
- l.setFieldValue(y, void 0);
5457
+ l.setFieldValue(b, void 0);
5458
5458
  else {
5459
5459
  const m = f.howToSetTheCondition === ge.LIST_OF_VALUES_MULTI ? [] : "";
5460
5460
  l.setFieldValue(
5461
- y,
5461
+ b,
5462
5462
  {
5463
5463
  ...f,
5464
5464
  value: m
@@ -5519,12 +5519,12 @@ const xl = $.div`
5519
5519
  messageEnd: l = "",
5520
5520
  statusStart: d = "pending",
5521
5521
  statusEnd: p = "pending"
5522
- } = e, [u, h] = Y(o), [g, f] = Y(s), y = (S) => {
5522
+ } = e, [u, h] = Y(o), [g, f] = Y(s), b = (S) => {
5523
5523
  h(S.target.value), t(S);
5524
5524
  }, m = (S) => {
5525
5525
  f(S.target.value), n(S);
5526
5526
  }, T = Se("(max-width: 400px)");
5527
- return /* @__PURE__ */ i(v, { direction: "column", width: "100%", gap: "20px", children: /* @__PURE__ */ b(
5527
+ return /* @__PURE__ */ i(v, { direction: "column", width: "100%", gap: "20px", children: /* @__PURE__ */ y(
5528
5528
  v,
5529
5529
  {
5530
5530
  direction: T ? "column" : "row",
@@ -5536,7 +5536,7 @@ const xl = $.div`
5536
5536
  {
5537
5537
  id: "dateStart",
5538
5538
  label: r,
5539
- onChange: y,
5539
+ onChange: b,
5540
5540
  value: u,
5541
5541
  required: !0,
5542
5542
  size: "compact",
@@ -5579,15 +5579,15 @@ const xl = $.div`
5579
5579
  portalId: h,
5580
5580
  showRedefineConfirm: g,
5581
5581
  onOpenRedefineConfirm: f,
5582
- onCloseRedefineConfirm: y,
5582
+ onCloseRedefineConfirm: b,
5583
5583
  onConfirmRedefine: m,
5584
5584
  withTerm: T,
5585
5585
  decisionNumber: S
5586
5586
  } = e;
5587
- return console.log(r), /* @__PURE__ */ b(j, { children: [
5588
- /* @__PURE__ */ i("form", { onSubmit: r.handleSubmit, autoComplete: "off", children: /* @__PURE__ */ b(v, { direction: "column", gap: "24px", width: "100%", children: [
5589
- /* @__PURE__ */ i(Qe, { legend: `Decisión N° ${S}`, spacing: "wide", children: /* @__PURE__ */ b(v, { direction: "column", width: "100%", gap: "16px", children: [
5590
- /* @__PURE__ */ b(
5587
+ return /* @__PURE__ */ y(j, { children: [
5588
+ /* @__PURE__ */ i("form", { onSubmit: r.handleSubmit, autoComplete: "off", children: /* @__PURE__ */ y(v, { direction: "column", gap: "24px", width: "100%", children: [
5589
+ /* @__PURE__ */ i(Qe, { legend: `Decisión N° ${S}`, spacing: "wide", children: /* @__PURE__ */ y(v, { direction: "column", width: "100%", gap: "16px", children: [
5590
+ /* @__PURE__ */ y(
5591
5591
  v,
5592
5592
  {
5593
5593
  justifyContent: "center",
@@ -5619,7 +5619,7 @@ const xl = $.div`
5619
5619
  }
5620
5620
  ) })
5621
5621
  ] }) }),
5622
- n && n.length > 0 && /* @__PURE__ */ i(Qe, { legend: "Condiciones a evaluar", spacing: "wide", children: /* @__PURE__ */ b(v, { direction: "column", gap: "20px", width: "100%", children: [
5622
+ n && n.length > 0 && /* @__PURE__ */ i(Qe, { legend: "Condiciones a evaluar", spacing: "wide", children: /* @__PURE__ */ y(v, { direction: "column", gap: "20px", width: "100%", children: [
5623
5623
  /* @__PURE__ */ i(
5624
5624
  Ar,
5625
5625
  {
@@ -5628,7 +5628,7 @@ const xl = $.div`
5628
5628
  selectedTab: t
5629
5629
  }
5630
5630
  ),
5631
- /* @__PURE__ */ b(v, { justifyContent: "flex-end", alignItems: "center", children: [
5631
+ /* @__PURE__ */ y(v, { justifyContent: "flex-end", alignItems: "center", children: [
5632
5632
  /* @__PURE__ */ i(
5633
5633
  B,
5634
5634
  {
@@ -5653,8 +5653,8 @@ const xl = $.div`
5653
5653
  ] }),
5654
5654
  /* @__PURE__ */ i(v, { direction: "column", gap: "20px", children: n == null ? void 0 : n.map((E) => {
5655
5655
  const C = E.__scopedName ?? `${E.groupKey}.${E.conditionName}`;
5656
- return /* @__PURE__ */ b(v, { gap: "16px", alignItems: "center", children: [
5657
- /* @__PURE__ */ b(xl, { children: [
5656
+ return /* @__PURE__ */ y(v, { gap: "16px", alignItems: "center", children: [
5657
+ /* @__PURE__ */ y(xl, { children: [
5658
5658
  /* @__PURE__ */ i(
5659
5659
  Un,
5660
5660
  {
@@ -5667,7 +5667,7 @@ const xl = $.div`
5667
5667
  /* @__PURE__ */ i(
5668
5668
  B,
5669
5669
  {
5670
- icon: /* @__PURE__ */ i(qt, {}),
5670
+ icon: /* @__PURE__ */ i(Yt, {}),
5671
5671
  appearance: "danger",
5672
5672
  cursorHover: !0,
5673
5673
  onClick: () => s(C)
@@ -5677,7 +5677,7 @@ const xl = $.div`
5677
5677
  }) }),
5678
5678
  l && /* @__PURE__ */ i(D, { type: "label", size: "medium", appearance: "danger", children: "Existen errores en el formulario, por favor revísalos." })
5679
5679
  ] }) }),
5680
- /* @__PURE__ */ b(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
5680
+ /* @__PURE__ */ y(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
5681
5681
  /* @__PURE__ */ i(Z, { appearance: "gray", onClick: o, variant: "outlined", children: "Cancelar" }),
5682
5682
  /* @__PURE__ */ i(Z, { type: "submit", children: "Confirmar" })
5683
5683
  ] })
@@ -5687,18 +5687,18 @@ const xl = $.div`
5687
5687
  {
5688
5688
  portalId: h,
5689
5689
  title: "Redefinir la condición",
5690
- onCloseModal: y,
5690
+ onCloseModal: b,
5691
5691
  size: "600px",
5692
- children: /* @__PURE__ */ b(v, { direction: "column", gap: "16px", children: [
5692
+ children: /* @__PURE__ */ y(v, { direction: "column", gap: "16px", children: [
5693
5693
  /* @__PURE__ */ i(D, { type: "body", size: "large", appearance: "gray", children: "¿Estás seguro? Se perderá todo lo que tienes actualmente definido y deberás reescribir completamente la condición, de esta manera podrás usar las últimas variables condicionales que están definidas en la actualidad para esta decisión ." }),
5694
- /* @__PURE__ */ b(v, { justifyContent: "end", gap: "12px", children: [
5694
+ /* @__PURE__ */ y(v, { justifyContent: "end", gap: "12px", children: [
5695
5695
  /* @__PURE__ */ i(
5696
5696
  Z,
5697
5697
  {
5698
5698
  type: "button",
5699
5699
  appearance: "gray",
5700
5700
  variant: "outlined",
5701
- onClick: y,
5701
+ onClick: b,
5702
5702
  cursorHover: !0,
5703
5703
  children: "Cancelar"
5704
5704
  }
@@ -5818,9 +5818,9 @@ const ut = (e) => {
5818
5818
  }), u = s ?? t, h = Me(u), g = Me(t), f = Mr(
5819
5819
  g,
5820
5820
  (I) => !I.hidden
5821
- ), y = Object.keys(f), m = y.includes("group-primary") && y.length > 0 ? "group-primary" : y[0], T = m != null ? [
5822
- ...y.filter((I) => I === m),
5823
- ...y.filter((I) => I !== m)
5821
+ ), b = Object.keys(f), m = b.includes("group-primary") && b.length > 0 ? "group-primary" : b[0], T = m != null ? [
5822
+ ...b.filter((I) => I === m),
5823
+ ...b.filter((I) => I !== m)
5824
5824
  ] : [], S = {};
5825
5825
  let E = 1;
5826
5826
  const C = T.map((I) => {
@@ -5868,12 +5868,12 @@ const ut = (e) => {
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(
5870
5870
  ue.howToSetTheCondition ?? (J == null ? void 0 : J.howToSetTheCondition)
5871
- ), At = ue.value ?? pt(Zt), $t = J && typeof J == "object" && "value" in J ? J.value : J;
5871
+ ), $t = ue.value ?? pt(Zt), kt = J && typeof J == "object" && "value" in J ? J.value : J;
5872
5872
  return {
5873
5873
  ...ue,
5874
5874
  ...typeof J == "object" && !Array.isArray(J) ? J : {},
5875
5875
  conditionName: Ne,
5876
- value: $t !== void 0 ? $t : At
5876
+ value: kt !== void 0 ? kt : $t
5877
5877
  };
5878
5878
  });
5879
5879
  return {
@@ -5902,7 +5902,7 @@ const ut = (e) => {
5902
5902
  d.values,
5903
5903
  w,
5904
5904
  X.conditionName
5905
- ), At = ue !== void 0 ? ue : Zt, $t = At !== void 0 ? At : pt(ae);
5905
+ ), $t = ue !== void 0 ? ue : Zt, kt = $t !== void 0 ? $t : pt(ae);
5906
5906
  return {
5907
5907
  ...X,
5908
5908
  __originalConditionName: X.conditionName,
@@ -5913,7 +5913,7 @@ const ut = (e) => {
5913
5913
  groupKey: w,
5914
5914
  labelName: ve,
5915
5915
  __unitAfterInput: Ne,
5916
- value: $t
5916
+ value: kt
5917
5917
  };
5918
5918
  });
5919
5919
  return [w, P];
@@ -6042,30 +6042,29 @@ const ut = (e) => {
6042
6042
  min-height: auto;
6043
6043
  }
6044
6044
  `, Ul = (e) => {
6045
- const { options: t } = e, [n, r] = Y([]);
6045
+ const { options: t } = e, [n, r] = Y([]), a = Ct(() => t.filter((p) => p.value === "true"), [t]);
6046
6046
  Pe(() => {
6047
- const d = t.filter((p) => p.value === "true");
6048
- r(d);
6049
- }, [t]);
6050
- const a = (d) => {
6051
- r((p) => {
6052
- if (p.some((g) => g.id === d))
6053
- return p.filter((g) => g.id !== d);
6054
- const h = t.find((g) => g.id === d);
6055
- return h ? [...p, h] : p;
6047
+ r(a);
6048
+ }, [a]);
6049
+ const o = (p) => {
6050
+ a.some((h) => h.id === p) || r((h) => {
6051
+ if (h.some((b) => b.id === p))
6052
+ return h.filter((b) => b.id !== p);
6053
+ const f = t.find((b) => b.id === p);
6054
+ return f ? [...h, f] : h;
6056
6055
  });
6057
- }, o = () => {
6058
- r([]);
6059
6056
  }, s = () => {
6057
+ r(a);
6058
+ }, c = () => {
6060
6059
  r(t);
6061
- }, c = n.length === 0, l = n.length === t.length;
6060
+ }, l = n.length === 0, d = n.length === t.length;
6062
6061
  return {
6063
- onToggleAllConditions: s,
6064
- isAllConditionsChecked: l,
6065
- isAnyConditionChecked: c,
6066
- onToggleAnyCondition: o,
6062
+ onToggleAllConditions: c,
6063
+ isAllConditionsChecked: d,
6064
+ isAnyConditionChecked: l,
6065
+ onToggleAnyCondition: s,
6067
6066
  checkedItems: n,
6068
- handleCheckboxChange: a
6067
+ handleCheckboxChange: o
6069
6068
  };
6070
6069
  }, jl = (e) => {
6071
6070
  const { options: t, portalId: n, onCloseModal: r, onOpenRulesModal: a } = e, o = document.getElementById(n);
@@ -6081,11 +6080,11 @@ const ut = (e) => {
6081
6080
  checkedItems: p,
6082
6081
  handleCheckboxChange: u
6083
6082
  } = Ul({ options: t });
6084
- return Ct(
6085
- /* @__PURE__ */ i(zr, { children: /* @__PURE__ */ i(xt, { children: /* @__PURE__ */ i(Pl, { children: /* @__PURE__ */ b(v, { direction: "column", gap: "24px", children: [
6086
- /* @__PURE__ */ b(v, { direction: "column", gap: "24px", children: [
6087
- /* @__PURE__ */ b(v, { alignItems: "center", justifyContent: "space-between", children: [
6088
- /* @__PURE__ */ b(v, { direction: "column", gap: "8px", children: [
6083
+ return Dt(
6084
+ /* @__PURE__ */ i(zr, { children: /* @__PURE__ */ i(xt, { children: /* @__PURE__ */ i(Pl, { children: /* @__PURE__ */ y(v, { direction: "column", gap: "24px", children: [
6085
+ /* @__PURE__ */ y(v, { direction: "column", gap: "24px", children: [
6086
+ /* @__PURE__ */ y(v, { alignItems: "center", justifyContent: "space-between", children: [
6087
+ /* @__PURE__ */ y(v, { direction: "column", gap: "8px", children: [
6089
6088
  /* @__PURE__ */ i(
6090
6089
  D,
6091
6090
  {
@@ -6102,9 +6101,9 @@ const ut = (e) => {
6102
6101
  ] }),
6103
6102
  /* @__PURE__ */ i(K, { dashed: !0 })
6104
6103
  ] }),
6105
- /* @__PURE__ */ i(Ml, { children: /* @__PURE__ */ b(v, { direction: "column", gap: "20px", children: [
6104
+ /* @__PURE__ */ i(Ml, { children: /* @__PURE__ */ y(v, { direction: "column", gap: "20px", children: [
6106
6105
  /* @__PURE__ */ i(D, { type: "title", size: "medium", weight: "normal", children: " ¿Qué condiciones determinan la decisión?" }),
6107
- /* @__PURE__ */ b(v, { justifyContent: "space-between", children: [
6106
+ /* @__PURE__ */ y(v, { justifyContent: "space-between", children: [
6108
6107
  /* @__PURE__ */ i(
6109
6108
  rt,
6110
6109
  {
@@ -6134,7 +6133,7 @@ const ut = (e) => {
6134
6133
  h.id
6135
6134
  )) }) })
6136
6135
  ] }) }),
6137
- /* @__PURE__ */ b(v, { justifyContent: "flex-end", gap: "12px", children: [
6136
+ /* @__PURE__ */ y(v, { justifyContent: "flex-end", gap: "12px", children: [
6138
6137
  /* @__PURE__ */ i(Z, { appearance: "gray", onClick: r, children: "Cancelar" }),
6139
6138
  /* @__PURE__ */ i(Z, { onClick: () => a(p), children: "Continuar" })
6140
6139
  ] })
@@ -6158,7 +6157,7 @@ const ut = (e) => {
6158
6157
  handleCloseModal: h,
6159
6158
  handleSubmitForm: g,
6160
6159
  handleDelete: f,
6161
- onRemoveCondition: y,
6160
+ onRemoveCondition: b,
6162
6161
  onRestoreConditions: m,
6163
6162
  handleOpenRulesModal: T = () => {
6164
6163
  },
@@ -6183,8 +6182,8 @@ const ut = (e) => {
6183
6182
  editionMode: c,
6184
6183
  withEditOption: C
6185
6184
  }), ce = ((o == null ? void 0 : o.length) || 0) + 1, re = (o == null ? void 0 : o.length) === 0 && !p;
6186
- return /* @__PURE__ */ b(j, { children: [
6187
- /* @__PURE__ */ b(v, { justifyContent: "space-between", padding: "6px", children: [
6185
+ return /* @__PURE__ */ y(j, { children: [
6186
+ /* @__PURE__ */ y(v, { justifyContent: "space-between", padding: "6px", children: [
6188
6187
  /* @__PURE__ */ i(D, { type: "title", weight: "bold", size: "medium", appearance: "gray", children: "Consulta de las decisiones definidas" }),
6189
6188
  /* @__PURE__ */ i(
6190
6189
  Z,
@@ -6197,7 +6196,7 @@ const ut = (e) => {
6197
6196
  }
6198
6197
  )
6199
6198
  ] }),
6200
- /* @__PURE__ */ i(ll, { children: /* @__PURE__ */ i(sl, { children: /* @__PURE__ */ i(v, { direction: "column", gap: "16px", padding: "6px", children: E && (re ? /* @__PURE__ */ i(Qe, { legend: "Decisiones", children: /* @__PURE__ */ b(
6199
+ /* @__PURE__ */ i(ll, { children: /* @__PURE__ */ i(sl, { children: /* @__PURE__ */ i(v, { direction: "column", gap: "16px", padding: "6px", children: E && (re ? /* @__PURE__ */ i(Qe, { legend: "Decisiones", children: /* @__PURE__ */ y(
6201
6200
  v,
6202
6201
  {
6203
6202
  direction: "column",
@@ -6224,7 +6223,7 @@ const ut = (e) => {
6224
6223
  children: "Sin decisiones"
6225
6224
  }
6226
6225
  ),
6227
- /* @__PURE__ */ i(D, { as: "span", size: "medium", appearance: "gray", children: a || /* @__PURE__ */ b(j, { children: [
6226
+ /* @__PURE__ */ i(D, { as: "span", size: "medium", appearance: "gray", children: a || /* @__PURE__ */ y(j, { children: [
6228
6227
  "Aun no tienes decisiones definidas, para empezar haz clic en",
6229
6228
  r || ' "Agregar decisión"'
6230
6229
  ] }) })
@@ -6268,7 +6267,7 @@ const ut = (e) => {
6268
6267
  onSubmitEvent: g,
6269
6268
  onCancel: () => V ? V() : () => {
6270
6269
  },
6271
- onRemoveCondition: y,
6270
+ onRemoveCondition: b,
6272
6271
  onRestoreConditions: m,
6273
6272
  withTerm: N,
6274
6273
  decisionNumber: ce
@@ -6324,12 +6323,12 @@ const ql = (e, t) => {
6324
6323
  var E;
6325
6324
  const g = d.clientWidth, f = Array.from(
6326
6325
  p.querySelectorAll('[data-filter-tag="true"]')
6327
- ), y = 48;
6326
+ ), b = 48;
6328
6327
  let m = 0;
6329
6328
  const T = [], S = [];
6330
6329
  for (let C = 0; C < t.length; C++) {
6331
6330
  const N = ((E = f[C]) == null ? void 0 : E.offsetWidth) ?? 0;
6332
- m + N + y <= g ? (T.push(t[C]), m += N) : S.push(t[C]);
6331
+ m + N + b <= g ? (T.push(t[C]), m += N) : S.push(t[C]);
6333
6332
  }
6334
6333
  r(T), o(S), c(S.length > 0);
6335
6334
  }, h = new ResizeObserver(() => {
@@ -6412,8 +6411,8 @@ const Yl = $.div`
6412
6411
  }};
6413
6412
  }
6414
6413
  `, Jl = (e) => {
6415
- var h, g, f, y, m, T;
6416
- 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;
6414
+ var h, g, f, b, m, T;
6415
+ 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 = (b = d == null ? void 0 : d.input) == null ? void 0 : b.option) == null ? void 0 : m.appearance) == null ? void 0 : T.regular) ?? vn.option.appearance.regular;
6417
6416
  return /* @__PURE__ */ i(
6418
6417
  Xl,
6419
6418
  {
@@ -6423,7 +6422,7 @@ const Yl = $.div`
6423
6422
  onClick: (S) => {
6424
6423
  S.stopPropagation();
6425
6424
  },
6426
- children: /* @__PURE__ */ b(
6425
+ children: /* @__PURE__ */ y(
6427
6426
  Fe,
6428
6427
  {
6429
6428
  alignItems: "center",
@@ -6478,14 +6477,14 @@ const Yl = $.div`
6478
6477
  hidden: u,
6479
6478
  showOverflowIndicator: h,
6480
6479
  measurementRef: g
6481
- } = ql(c, t), [f, y] = Y(!1), m = (N) => {
6482
- N.stopPropagation(), y((A) => !A);
6480
+ } = ql(c, t), [f, b] = Y(!1), m = (N) => {
6481
+ N.stopPropagation(), b((A) => !A);
6483
6482
  };
6484
6483
  Pe(() => {
6485
6484
  const N = (A) => {
6486
6485
  var G, te;
6487
6486
  const O = A.target;
6488
- !((G = l.current) != null && G.contains(O)) && !((te = d.current) != null && te.contains(O)) && y(!1);
6487
+ !((G = l.current) != null && G.contains(O)) && !((te = d.current) != null && te.contains(O)) && b(!1);
6489
6488
  };
6490
6489
  return f && window.addEventListener("mousedown", N), () => window.removeEventListener("mousedown", N);
6491
6490
  }, [f]);
@@ -6496,9 +6495,9 @@ const Yl = $.div`
6496
6495
  icon: N.icon
6497
6496
  })), C = (N) => {
6498
6497
  var A, O;
6499
- (O = (A = u.find((V) => V.label === N)) == null ? void 0 : A.onClose) == null || O.call(A), y(!1);
6498
+ (O = (A = u.find((V) => V.label === N)) == null ? void 0 : A.onClose) == null || O.call(A), b(!1);
6500
6499
  };
6501
- return /* @__PURE__ */ b(Hl, { borderRadius: "8px", width: "100%", children: [
6500
+ return /* @__PURE__ */ y(Hl, { borderRadius: "8px", width: "100%", children: [
6502
6501
  /* @__PURE__ */ i(Wl, { ref: g, children: t.map((N) => /* @__PURE__ */ i("div", { "data-filter-tag": "true", children: /* @__PURE__ */ i(
6503
6502
  we,
6504
6503
  {
@@ -6510,7 +6509,7 @@ const Yl = $.div`
6510
6509
  onClose: N.onClose
6511
6510
  }
6512
6511
  ) }, N.label)) }),
6513
- /* @__PURE__ */ b(Fe, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
6512
+ /* @__PURE__ */ y(Fe, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
6514
6513
  /* @__PURE__ */ i(
6515
6514
  Ee,
6516
6515
  {
@@ -6523,7 +6522,7 @@ const Yl = $.div`
6523
6522
  alignItems: "center",
6524
6523
  padding: "0px 8px",
6525
6524
  border: !0,
6526
- children: T ? /* @__PURE__ */ i(D, { size: "small", type: "label", appearance: "gray", children: a }) : /* @__PURE__ */ b(j, { children: [
6525
+ children: T ? /* @__PURE__ */ i(D, { size: "small", type: "label", appearance: "gray", children: a }) : /* @__PURE__ */ y(j, { children: [
6527
6526
  p.map((N) => /* @__PURE__ */ i(
6528
6527
  we,
6529
6528
  {
@@ -6537,7 +6536,7 @@ const Yl = $.div`
6537
6536
  },
6538
6537
  N.label
6539
6538
  )),
6540
- h && /* @__PURE__ */ b(
6539
+ h && /* @__PURE__ */ y(
6541
6540
  "div",
6542
6541
  {
6543
6542
  ref: d,
@@ -6563,7 +6562,7 @@ const Yl = $.div`
6563
6562
  leadingIcon: N.icon,
6564
6563
  onClose: () => {
6565
6564
  var A;
6566
- (A = N.onClose) == null || A.call(N), y(!1);
6565
+ (A = N.onClose) == null || A.call(N), b(!1);
6567
6566
  }
6568
6567
  },
6569
6568
  N.label
@@ -6601,9 +6600,9 @@ const Yl = $.div`
6601
6600
  ] });
6602
6601
  }, xc = (e) => {
6603
6602
  const { appliedFilters: t, fields: n, onChange: r, noFiltersLabel: a } = e, o = Se("(max-width: 768px)"), s = !t || t.length === 0;
6604
- return /* @__PURE__ */ b(v, { direction: "column", gap: "16px", children: [
6605
- o && /* @__PURE__ */ b(j, { children: [
6606
- /* @__PURE__ */ b(v, { gap: "6px", width: "100%", alignItems: "center", children: [
6603
+ return /* @__PURE__ */ y(v, { direction: "column", gap: "16px", children: [
6604
+ o && /* @__PURE__ */ y(j, { children: [
6605
+ /* @__PURE__ */ y(v, { gap: "6px", width: "100%", alignItems: "center", children: [
6607
6606
  /* @__PURE__ */ i(B, { appearance: "gray", icon: /* @__PURE__ */ i(xr, {}) }),
6608
6607
  /* @__PURE__ */ i(
6609
6608
  Ee,
@@ -6634,7 +6633,7 @@ const Yl = $.div`
6634
6633
  ] }),
6635
6634
  /* @__PURE__ */ i(K, { dashed: !0 })
6636
6635
  ] }),
6637
- n.map((c) => /* @__PURE__ */ b(v, { gap: "6px", alignItems: "center", children: [
6636
+ n.map((c) => /* @__PURE__ */ y(v, { gap: "6px", alignItems: "center", children: [
6638
6637
  /* @__PURE__ */ i(v, { padding: "22px 0 0 0", children: /* @__PURE__ */ i(B, { appearance: "primary", icon: c.icon }) }),
6639
6638
  /* @__PURE__ */ i(
6640
6639
  Cn,
@@ -6958,7 +6957,7 @@ const os = $.div`
6958
6957
  };
6959
6958
  return Pe(() => {
6960
6959
  d(t);
6961
- }, [t]), /* @__PURE__ */ b(j, { children: [
6960
+ }, [t]), /* @__PURE__ */ y(j, { children: [
6962
6961
  /* @__PURE__ */ i(v, { children: /* @__PURE__ */ i(
6963
6962
  rt,
6964
6963
  {
@@ -6988,15 +6987,15 @@ const os = $.div`
6988
6987
  messageEnd: u = "",
6989
6988
  statusStart: h = "pending",
6990
6989
  statusEnd: g = "pending"
6991
- } = e, [f, y] = Y(s), [m, T] = Y(l), [S, E] = Y(d), C = ({ target: V }) => {
6992
- y(V.checked), r && r(V.checked);
6990
+ } = e, [f, b] = Y(s), [m, T] = Y(l), [S, E] = Y(d), C = ({ target: V }) => {
6991
+ b(V.checked), r && r(V.checked);
6993
6992
  }, N = (V) => {
6994
6993
  T(V.target.value), t(V);
6995
6994
  }, A = (V) => {
6996
6995
  E(V.target.value), n(V);
6997
6996
  }, O = Se("(max-width: 400px)");
6998
- return /* @__PURE__ */ b(j, { children: [
6999
- /* @__PURE__ */ b(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
6997
+ return /* @__PURE__ */ y(j, { children: [
6998
+ /* @__PURE__ */ y(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
7000
6999
  /* @__PURE__ */ i(
7001
7000
  D,
7002
7001
  {
@@ -7027,7 +7026,7 @@ const os = $.div`
7027
7026
  }
7028
7027
  )
7029
7028
  ] }),
7030
- /* @__PURE__ */ b(
7029
+ /* @__PURE__ */ y(
7031
7030
  v,
7032
7031
  {
7033
7032
  direction: O ? "column" : "row",
@@ -7077,14 +7076,14 @@ const os = $.div`
7077
7076
  termStartStatus: d,
7078
7077
  termEndStatus: p
7079
7078
  } = e;
7080
- return /* @__PURE__ */ i("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ b(v, { direction: "column", gap: "24px", children: [
7081
- jt({
7079
+ return /* @__PURE__ */ i("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ y(v, { direction: "column", gap: "24px", children: [
7080
+ Gt({
7082
7081
  condition: o,
7083
7082
  formik: t,
7084
7083
  isDecision: !0
7085
7084
  }),
7086
7085
  /* @__PURE__ */ i(K, { dashed: !0 }),
7087
- /* @__PURE__ */ i(os, { children: /* @__PURE__ */ i(is, { children: /* @__PURE__ */ b(
7086
+ /* @__PURE__ */ i(os, { children: /* @__PURE__ */ i(is, { children: /* @__PURE__ */ y(
7088
7087
  v,
7089
7088
  {
7090
7089
  direction: "column",
@@ -7092,7 +7091,7 @@ const os = $.div`
7092
7091
  gap: "16px",
7093
7092
  height: "272px",
7094
7093
  children: [
7095
- /* @__PURE__ */ b(
7094
+ /* @__PURE__ */ y(
7096
7095
  v,
7097
7096
  {
7098
7097
  justifyContent: "space-between",
@@ -7124,14 +7123,14 @@ const os = $.div`
7124
7123
  u.conditionName,
7125
7124
  u.howToSetTheCondition === F.LIST_OF_VALUES_MULTI
7126
7125
  )(h.target.checked),
7127
- children: jt({ condition: u, formik: t })
7126
+ children: Gt({ condition: u, formik: t })
7128
7127
  },
7129
7128
  u.conditionName
7130
7129
  )) })
7131
7130
  ]
7132
7131
  }
7133
7132
  ) }) }),
7134
- n.terms && /* @__PURE__ */ b(j, { children: [
7133
+ n.terms && /* @__PURE__ */ y(j, { children: [
7135
7134
  /* @__PURE__ */ i(K, { dashed: !0 }),
7136
7135
  /* @__PURE__ */ i(
7137
7136
  ss,
@@ -7155,7 +7154,7 @@ const os = $.div`
7155
7154
  ] }),
7156
7155
  /* @__PURE__ */ i(K, {}),
7157
7156
  l && /* @__PURE__ */ i(D, { type: "label", size: "medium", appearance: "danger", children: typeof t.errors.conditionsThatEstablishesTheDecision == "string" ? t.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
7158
- /* @__PURE__ */ b(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
7157
+ /* @__PURE__ */ y(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
7159
7158
  /* @__PURE__ */ i(Z, { appearance: "gray", onClick: r, children: n.cancel }),
7160
7159
  /* @__PURE__ */ i(Z, { type: "submit", children: n.confirm })
7161
7160
  ] })
@@ -7185,7 +7184,7 @@ const os = $.div`
7185
7184
  visibleConditions: l,
7186
7185
  normalizedDecision: c,
7187
7186
  handleToggleNoneChange: s,
7188
- handleConditionToggleChange: (f, y) => (m) => {
7187
+ handleConditionToggleChange: (f, b) => (m) => {
7189
7188
  if (!m)
7190
7189
  o.setFieldValue(
7191
7190
  `conditionsThatEstablishesTheDecision.${f}`,
@@ -7196,7 +7195,7 @@ const os = $.div`
7196
7195
  !1
7197
7196
  );
7198
7197
  else {
7199
- const T = y ? [] : "";
7198
+ const T = b ? [] : "";
7200
7199
  o.setFieldValue(
7201
7200
  `conditionsThatEstablishesTheDecision.${f}`,
7202
7201
  T
@@ -7342,8 +7341,8 @@ const os = $.div`
7342
7341
  l && !await l(T, S) || d(T);
7343
7342
  },
7344
7343
  [d, l]
7345
- ), f = t || c ? "primary" : "dark", y = t || c ? "bold" : "normal", m = U.useId();
7346
- return /* @__PURE__ */ i(us, { $active: t, children: /* @__PURE__ */ b(Ee, { border: !0, borderRadius: "8px", width: "100%", children: [
7344
+ ), f = t || c ? "primary" : "dark", b = t || c ? "bold" : "normal", m = U.useId();
7345
+ return /* @__PURE__ */ i(us, { $active: t, children: /* @__PURE__ */ y(Ee, { border: !0, borderRadius: "8px", width: "100%", children: [
7347
7346
  /* @__PURE__ */ i(
7348
7347
  fs,
7349
7348
  {
@@ -7358,7 +7357,7 @@ const os = $.div`
7358
7357
  path: s,
7359
7358
  label: a
7360
7359
  });
7361
- }, children: /* @__PURE__ */ b(
7360
+ }, children: /* @__PURE__ */ y(
7362
7361
  Ee,
7363
7362
  {
7364
7363
  alignItems: "center",
@@ -7382,13 +7381,13 @@ const os = $.div`
7382
7381
  cursorHover: !0,
7383
7382
  size: "small",
7384
7383
  type: "title",
7385
- weight: y,
7384
+ weight: b,
7386
7385
  children: a
7387
7386
  }
7388
7387
  ) })
7389
7388
  ]
7390
7389
  }
7391
- ) }) : /* @__PURE__ */ b(
7390
+ ) }) : /* @__PURE__ */ y(
7392
7391
  Ee,
7393
7392
  {
7394
7393
  alignItems: "center",
@@ -7419,7 +7418,7 @@ const os = $.div`
7419
7418
  cursorHover: !0,
7420
7419
  size: "small",
7421
7420
  type: "title",
7422
- weight: y,
7421
+ weight: b,
7423
7422
  onClick: r,
7424
7423
  children: a
7425
7424
  }
@@ -7435,7 +7434,7 @@ const os = $.div`
7435
7434
  const S = T.id === o;
7436
7435
  return /* @__PURE__ */ i(gs, { to: T.path, onClick: async (E) => {
7437
7436
  E.preventDefault(), E.stopPropagation(), await g(T.path, T);
7438
- }, children: /* @__PURE__ */ i(jr, { $active: S, children: /* @__PURE__ */ b(
7437
+ }, children: /* @__PURE__ */ i(jr, { $active: S, children: /* @__PURE__ */ y(
7439
7438
  v,
7440
7439
  {
7441
7440
  alignItems: "center",
@@ -7699,7 +7698,7 @@ function $s({
7699
7698
  }) {
7700
7699
  var l, d, p;
7701
7700
  if (!Ln) return;
7702
- dr || (dr = Bt(document, {
7701
+ dr || (dr = Ht(document, {
7703
7702
  dragover: Es,
7704
7703
  pointerdown: xs,
7705
7704
  pointerup: Cs,
@@ -7859,7 +7858,7 @@ function Xe(e, t, n) {
7859
7858
  s !== -1 && n.selectedState.nodes.splice(s, 1);
7860
7859
  }
7861
7860
  }
7862
- function Vt(e, t, n, r, a = !1) {
7861
+ function _t(e, t, n, r, a = !1) {
7863
7862
  r.pointerSelection = a;
7864
7863
  for (const o of t)
7865
7864
  o.el.setAttribute("aria-selected", "true"), tt([o.el], e.data.config.selectedClass, !0);
@@ -7928,17 +7927,17 @@ function me(e) {
7928
7927
  return "synthDragging" in e && !!e.synthDragging;
7929
7928
  }
7930
7929
  function Ls(e, t) {
7931
- t.abortControllers.mainParent = Bt(e, {
7932
- dragover: _t(t.config.handleParentDragover),
7930
+ t.abortControllers.mainParent = Ht(e, {
7931
+ dragover: Mt(t.config.handleParentDragover),
7933
7932
  handleParentPointerover: t.config.handleParentPointerover,
7934
- scroll: _t(t.config.handleParentScroll),
7935
- drop: _t(t.config.handleParentDrop),
7933
+ scroll: Mt(t.config.handleParentScroll),
7934
+ drop: Mt(t.config.handleParentDrop),
7936
7935
  hasNestedParent: (n) => {
7937
7936
  const r = oe.get(n.target);
7938
7937
  r && (r.nestedParent = n.detail.parent);
7939
7938
  },
7940
- focus: _t(t.config.handleParentFocus)
7941
- }), t.config.externalDragHandle && t.config.externalDragHandle.el && t.config.externalDragHandle.callback && (t.abortControllers.externalDragHandle = Bt(
7939
+ focus: Mt(t.config.handleParentFocus)
7940
+ }), t.config.externalDragHandle && t.config.externalDragHandle.el && t.config.externalDragHandle.callback && (t.abortControllers.externalDragHandle = Ht(
7942
7941
  t.config.externalDragHandle.el,
7943
7942
  {
7944
7943
  pointerdown: (n) => {
@@ -7974,7 +7973,7 @@ function Ls(e, t) {
7974
7973
  function Fs(e) {
7975
7974
  var n;
7976
7975
  const t = e.parent.data.config;
7977
- e.node.data.abortControllers.mainNode = Bt(e.node.el, {
7976
+ e.node.data.abortControllers.mainNode = Ht(e.node.el, {
7978
7977
  keydown: pe(t.handleNodeKeydown),
7979
7978
  dragstart: pe(t.handleDragstart),
7980
7979
  dragover: pe(t.handleNodeDragover),
@@ -8195,7 +8194,7 @@ function Hs(e, t) {
8195
8194
  (p) => p.el === s.el
8196
8195
  ) === -1 ? r = [...t.selectedState.nodes, s] : r = t.selectedState.nodes.filter(
8197
8196
  (p) => p.el !== s.el
8198
- ) : r = [s], Vt(
8197
+ ) : r = [s], _t(
8199
8198
  e.targetData.parent,
8200
8199
  r,
8201
8200
  e.targetData.node,
@@ -8224,7 +8223,7 @@ function Hs(e, t) {
8224
8223
  else
8225
8224
  for (let p = 0; p <= s.data.index; p++)
8226
8225
  r.push(d[p]);
8227
- Vt(
8226
+ _t(
8228
8227
  e.targetData.parent,
8229
8228
  r,
8230
8229
  e.targetData.node,
@@ -8235,13 +8234,13 @@ function Hs(e, t) {
8235
8234
  }
8236
8235
  (l = (c = t.selectedState) == null ? void 0 : c.nodes) != null && l.length ? t.selectedState.nodes.findIndex(
8237
8236
  (p) => p.el === e.targetData.node.el
8238
- ) === -1 && (t.selectedState.parent.el !== e.targetData.parent.el ? Xe(t.selectedState.nodes, e.targetData.parent, t) : n.config.multiDrag && Yr() ? r.push(...t.selectedState.nodes) : Xe(t.selectedState.nodes, e.targetData.parent, t), Vt(
8237
+ ) === -1 && (t.selectedState.parent.el !== e.targetData.parent.el ? Xe(t.selectedState.nodes, e.targetData.parent, t) : n.config.multiDrag && Yr() ? r.push(...t.selectedState.nodes) : Xe(t.selectedState.nodes, e.targetData.parent, t), _t(
8239
8238
  e.targetData.parent,
8240
8239
  r,
8241
8240
  e.targetData.node,
8242
8241
  t,
8243
8242
  !0
8244
- )) : Vt(
8243
+ )) : _t(
8245
8244
  e.targetData.parent,
8246
8245
  [e.targetData.node],
8247
8246
  e.targetData.node,
@@ -8384,7 +8383,7 @@ function ed(e, t) {
8384
8383
  function td(e) {
8385
8384
  var p, u, h, g, f;
8386
8385
  e.draggedNode && (e.draggedNode.el.draggable = !0);
8387
- const t = e.draggedNodes.map((y) => y.el), n = e.initialParent.data, r = me(e), a = (p = oe.get(e.initialParent.el)) == null ? void 0 : p.config, o = r ? a == null ? void 0 : a.synthDropZoneClass : a == null ? void 0 : a.dropZoneClass, s = (u = n == null ? void 0 : n.config) == null ? void 0 : u.longPressClass, c = r ? (h = n == null ? void 0 : n.config) == null ? void 0 : h.synthDragPlaceholderClass : (g = n == null ? void 0 : n.config) == null ? void 0 : g.dragPlaceholderClass, l = e.originalZIndex;
8386
+ const t = e.draggedNodes.map((b) => b.el), n = e.initialParent.data, r = me(e), a = (p = oe.get(e.initialParent.el)) == null ? void 0 : p.config, o = r ? a == null ? void 0 : a.synthDropZoneClass : a == null ? void 0 : a.dropZoneClass, s = (u = n == null ? void 0 : n.config) == null ? void 0 : u.longPressClass, c = r ? (h = n == null ? void 0 : n.config) == null ? void 0 : h.synthDragPlaceholderClass : (g = n == null ? void 0 : n.config) == null ? void 0 : g.dragPlaceholderClass, l = e.originalZIndex;
8388
8387
  me(e) && (e.clonedDraggedNode && e.clonedDraggedNode.remove(), e.longPressTimeout && clearTimeout(e.longPressTimeout)), wn(e), e.lastScrollDirectionX = void 0, e.lastScrollDirectionY = void 0, e.preventEnter = !1, e.scrollDebounceTimeout && (clearTimeout(e.scrollDebounceTimeout), e.scrollDebounceTimeout = void 0), l !== void 0 && e.draggedNode && (e.draggedNode.el.style.zIndex = l), requestAnimationFrame(() => {
8389
8388
  Be(t, o), Be(t, s), Be(t, c);
8390
8389
  }), Xe(e.draggedNodes, e.currentParent, e), Je(e.currentParent, void 0, e);
@@ -8409,7 +8408,7 @@ function nd(e, t) {
8409
8408
  ), de(t) && n.handleEnd(t);
8410
8409
  }
8411
8410
  function rd(e, t, n, r, a, o) {
8412
- var f, y;
8411
+ var f, b;
8413
8412
  const s = t.data.config;
8414
8413
  let c, l;
8415
8414
  const d = [
@@ -8477,7 +8476,7 @@ function rd(e, t, n, r, a, o) {
8477
8476
  synthDragScrolling: !1,
8478
8477
  synthDragging: !0,
8479
8478
  rootScrollWidth: (f = document.scrollingElement) == null ? void 0 : f.scrollWidth,
8480
- rootScrollHeight: (y = document.scrollingElement) == null ? void 0 : y.scrollHeight
8479
+ rootScrollHeight: (b = document.scrollingElement) == null ? void 0 : b.scrollHeight
8481
8480
  };
8482
8481
  return Wr({
8483
8482
  ...Qr(
@@ -8672,7 +8671,7 @@ function Qt(e, t) {
8672
8671
  targetNodes: "node" in e.targetData ? [e.targetData.node] : []
8673
8672
  }), t.currentParent = e.targetData.parent, t.transferred = !0);
8674
8673
  }
8675
- function _t(e) {
8674
+ function Mt(e) {
8676
8675
  function t(n) {
8677
8676
  const r = oe.get(n);
8678
8677
  if (r)
@@ -8739,7 +8738,7 @@ function Be(e, t) {
8739
8738
  function ur(e, t, n, r, a) {
8740
8739
  const s = a.axis === "x", c = e === document.scrollingElement, l = s ? "scrollLeft" : "scrollTop", d = s ? "clientWidth" : "clientHeight", p = s ? "offsetWidth" : "offsetHeight", u = s ? "scrollWidth" : "scrollHeight", h = s ? t.clientX : t.clientY, g = s ? r.left : r.top, f = s ? n.overflowX : n.overflowY;
8741
8740
  if (c) {
8742
- const y = e[l], m = e[d], T = y > 0, S = y + m < (s ? a.state.rootScrollWidth || 0 : e[u]);
8741
+ const b = e[l], m = e[d], T = b > 0, S = b + m < (s ? a.state.rootScrollWidth || 0 : e[u]);
8743
8742
  return s ? {
8744
8743
  left: T && h < m * 0.075,
8745
8744
  right: S && h > m * (1 - 0.075)
@@ -8749,7 +8748,7 @@ function ur(e, t, n, r, a) {
8749
8748
  };
8750
8749
  }
8751
8750
  if ((f === "auto" || f === "scroll") && e !== document.body && e !== document.documentElement) {
8752
- const y = e[u], m = e[p], T = e[l], S = T > 0, E = T < y - m;
8751
+ const b = e[u], m = e[p], T = e[l], S = T > 0, E = T < b - m;
8753
8752
  return s ? {
8754
8753
  left: S && h < g + m * 0.075,
8755
8754
  right: E && h > g + m * (1 - 0.075)
@@ -8771,8 +8770,8 @@ function hd(e, t, n, r) {
8771
8770
  n[l] !== void 0 && (cancelAnimationFrame(n[l]), n[l] = void 0);
8772
8771
  return;
8773
8772
  }
8774
- const p = a ? "scrollLeft" : "scrollTop", u = a ? "clientWidth" : "clientHeight", h = a ? "scrollWidth" : "scrollHeight", g = e[p], f = e[u], y = e[h];
8775
- if (!(o > 0 ? g + f < y : g > 0)) {
8773
+ const p = a ? "scrollLeft" : "scrollTop", u = a ? "clientWidth" : "clientHeight", h = a ? "scrollWidth" : "scrollHeight", g = e[p], f = e[u], b = e[h];
8774
+ if (!(o > 0 ? g + f < b : g > 0)) {
8776
8775
  n[l] = void 0, n[c] = void 0;
8777
8776
  return;
8778
8777
  }
@@ -8848,7 +8847,7 @@ function gd(e) {
8848
8847
  function Jt(e) {
8849
8848
  return e instanceof HTMLElement && e.parentNode instanceof HTMLElement;
8850
8849
  }
8851
- function Bt(e, t) {
8850
+ function Ht(e, t) {
8852
8851
  const n = new AbortController();
8853
8852
  for (const r in t) {
8854
8853
  const a = t[r];
@@ -8870,18 +8869,18 @@ function md(e, t) {
8870
8869
  const n = fd(e);
8871
8870
  n && t(n);
8872
8871
  }
8873
- var Ht = /* @__PURE__ */ new WeakMap();
8872
+ var qt = /* @__PURE__ */ new WeakMap();
8874
8873
  function bd(e) {
8875
- const t = Ht.get(e);
8874
+ const t = qt.get(e);
8876
8875
  return t ? t[0] : (console.warn("No values found for parent element"), []);
8877
8876
  }
8878
8877
  function yd(e, t) {
8879
- const n = Ht.get(t);
8880
- n && n[1](e), Ht.set(t, [e, n[1]]);
8878
+ const n = qt.get(t);
8879
+ n && n[1](e), qt.set(t, [e, n[1]]);
8881
8880
  }
8882
8881
  function vd(e, t) {
8883
8882
  return (n) => {
8884
- Ht.set(n, t), $s({ parent: n, getValues: bd, setValues: yd, config: e });
8883
+ qt.set(n, t), $s({ parent: n, getValues: bd, setValues: yd, config: e });
8885
8884
  };
8886
8885
  }
8887
8886
  function hr(e) {
@@ -8944,7 +8943,7 @@ const gr = {
8944
8943
  { group: r }
8945
8944
  ), [u, h] = l ? [d, o] : p, [g, f] = U.useState(
8946
8945
  null
8947
- ), y = U.useRef(o);
8946
+ ), b = U.useRef(o);
8948
8947
  U.useEffect(() => {
8949
8948
  if (l) return;
8950
8949
  const C = (N) => {
@@ -8976,7 +8975,7 @@ const gr = {
8976
8975
  };
8977
8976
  }, [S, l]), U.useEffect(() => {
8978
8977
  if (l) return;
8979
- const C = y.current;
8978
+ const C = b.current;
8980
8979
  if (h.length !== C.length && h.length === C.length + 1) {
8981
8980
  const N = new Set(C), A = h.find((O) => !N.has(O)) || null;
8982
8981
  if (A) {
@@ -8984,7 +8983,7 @@ const gr = {
8984
8983
  c == null || c({ item: A, from: O, to: n });
8985
8984
  }
8986
8985
  }
8987
- y.current = h;
8986
+ b.current = h;
8988
8987
  }, [h, n, c, l]);
8989
8988
  const E = h.length === 0;
8990
8989
  return /* @__PURE__ */ i(
@@ -9047,7 +9046,7 @@ const gr = {
9047
9046
  const { group: t = "clients", left: n, right: r, onMove: a, locked: o = !1 } = e, s = (c) => {
9048
9047
  o || a == null || a(c);
9049
9048
  };
9050
- return /* @__PURE__ */ b(
9049
+ return /* @__PURE__ */ y(
9051
9050
  v,
9052
9051
  {
9053
9052
  justifyContent: "space-between",
@@ -9133,7 +9132,7 @@ const gr = {
9133
9132
  }
9134
9133
  `, Rc = (e) => {
9135
9134
  const { handleBack: t, handleNext: n, disabledBack: r, disabledNext: a, textValues: o } = e;
9136
- return /* @__PURE__ */ b(Cd, { children: [
9135
+ return /* @__PURE__ */ y(Cd, { children: [
9137
9136
  /* @__PURE__ */ i(
9138
9137
  Z,
9139
9138
  {
@@ -9164,7 +9163,7 @@ const gr = {
9164
9163
  );
9165
9164
  }, Dd = (e) => Object.entries(e).map(([t, n]) => ({
9166
9165
  ConditionGroupId: t,
9167
- conditionsThatEstablishesTheDecision: Pt(n)
9166
+ conditionsThatEstablishesTheDecision: zt(n)
9168
9167
  })), Vc = (e) => {
9169
9168
  const t = Me(e);
9170
9169
  return {
@@ -9264,7 +9263,7 @@ const Ld = {
9264
9263
  var xe = /* @__PURE__ */ ((e) => (e.DANGER = "danger", e.DARK = "dark", e.GRAY = "gray", e.HELP = "help", e.LIGHT = "light", e.PRIMARY = "primary", e.SUCCESS = "success", e.WARNING = "warning", e))(xe || {});
9265
9264
  const Md = (e) => {
9266
9265
  const { onClick: t, icon: n, value: r } = e;
9267
- return /* @__PURE__ */ b(_d, { onClick: t, children: [
9266
+ return /* @__PURE__ */ y(_d, { onClick: t, children: [
9268
9267
  n && /* @__PURE__ */ i(
9269
9268
  v,
9270
9269
  {
@@ -9435,7 +9434,7 @@ const Ud = (e) => {
9435
9434
  padding: h = "0px",
9436
9435
  backgroundColor: g = xe.LIGHT,
9437
9436
  boxSizing: f,
9438
- borderColor: y = xe.LIGHT,
9437
+ borderColor: b = xe.LIGHT,
9439
9438
  overflowY: m,
9440
9439
  overflowX: T,
9441
9440
  boxShadow: S,
@@ -9459,7 +9458,7 @@ const Ud = (e) => {
9459
9458
  $padding: h,
9460
9459
  $backgroundColor: g,
9461
9460
  $boxSizing: f,
9462
- $borderColor: y,
9461
+ $borderColor: b,
9463
9462
  $borderRadius: d,
9464
9463
  $overflowY: m,
9465
9464
  $overflowX: T,
@@ -9491,7 +9490,7 @@ const Ud = (e) => {
9491
9490
  padding: p ? "8px" : "6px 16px",
9492
9491
  boxSizing: "border-box",
9493
9492
  backgroundColor: xe.GRAY,
9494
- children: /* @__PURE__ */ b(
9493
+ children: /* @__PURE__ */ y(
9495
9494
  Fe,
9496
9495
  {
9497
9496
  templateColumns: s === "column" ? "1fr" : "auto 1fr",
@@ -9654,8 +9653,8 @@ function Qd(e, t) {
9654
9653
  for (const [g, f] of h) {
9655
9654
  if (!ke(f) && !Array.isArray(f) && c(f))
9656
9655
  continue;
9657
- const y = n.has(g) ? p : Wd(p, g);
9658
- ke(f) || Array.isArray(f) ? l(f, y, u + 1) : s(y || g, f);
9656
+ const b = n.has(g) ? p : Wd(p, g);
9657
+ ke(f) || Array.isArray(f) ? l(f, b, u + 1) : s(b || g, f);
9659
9658
  }
9660
9659
  return;
9661
9660
  }
@@ -9786,8 +9785,8 @@ const tc = $.div`
9786
9785
  cursor: pointer;
9787
9786
  `, rc = (e) => {
9788
9787
  const { title: t, defaultOpen: n = !0, children: r } = e, [a, o] = Y(n);
9789
- return /* @__PURE__ */ b(tc, { children: [
9790
- /* @__PURE__ */ b(nc, { onClick: () => {
9788
+ return /* @__PURE__ */ y(tc, { children: [
9789
+ /* @__PURE__ */ y(nc, { onClick: () => {
9791
9790
  o(!a);
9792
9791
  }, children: [
9793
9792
  /* @__PURE__ */ i(
@@ -9812,7 +9811,7 @@ const tc = $.div`
9812
9811
  }
9813
9812
  )
9814
9813
  ] }),
9815
- a && /* @__PURE__ */ b(j, { children: [
9814
+ a && /* @__PURE__ */ y(j, { children: [
9816
9815
  /* @__PURE__ */ i(K, { dashed: !0 }),
9817
9816
  r
9818
9817
  ] })
@@ -9931,8 +9930,8 @@ function ac(e) {
9931
9930
  id: `${a}[${p}].${g}`,
9932
9931
  label: he(g),
9933
9932
  value: (f) => {
9934
- var y, m;
9935
- return (m = (y = f == null ? void 0 : f[a]) == null ? void 0 : y[p]) == null ? void 0 : m[g];
9933
+ var b, m;
9934
+ return (m = (b = f == null ? void 0 : f[a]) == null ? void 0 : b[p]) == null ? void 0 : m[g];
9936
9935
  },
9937
9936
  render: (f) => Te(f)
9938
9937
  }))
@@ -9986,12 +9985,12 @@ function ac(e) {
9986
9985
  variant: "lightCard",
9987
9986
  columns: { mobile: "1fr", desktop: "repeat(2, 1fr)" }
9988
9987
  },
9989
- items: f.map((y) => ({
9990
- id: `${a}.values[${h}].${y}`,
9991
- label: he(y),
9988
+ items: f.map((b) => ({
9989
+ id: `${a}.values[${h}].${b}`,
9990
+ label: he(b),
9992
9991
  value: (m) => {
9993
9992
  var T, S, E;
9994
- return (E = (S = (T = m == null ? void 0 : m[a]) == null ? void 0 : T.values) == null ? void 0 : S[h]) == null ? void 0 : E[y];
9993
+ return (E = (S = (T = m == null ? void 0 : m[a]) == null ? void 0 : T.values) == null ? void 0 : S[h]) == null ? void 0 : E[b];
9995
9994
  },
9996
9995
  render: (m) => Te(m)
9997
9996
  }))
@@ -10082,17 +10081,17 @@ function ac(e) {
10082
10081
  }) };
10083
10082
  }
10084
10083
  function oc(e, t) {
10085
- return Yt(() => t ?? ac(e), [t, e]);
10084
+ return Ct(() => t ?? ac(e), [t, e]);
10086
10085
  }
10087
10086
  function _c(e) {
10088
- const { data: t, isMobile: n, isTablet: r, onBackStep: a, schema: o } = e, s = oc(t, o), c = { data: t, isMobile: n, isTablet: r }, l = Yt(() => Kd(vr), []), d = s.steps.map((p) => {
10087
+ const { data: t, isMobile: n, isTablet: r, onBackStep: a, schema: o } = e, s = oc(t, o), c = { data: t, isMobile: n, isTablet: r }, l = Ct(() => Kd(vr), []), d = s.steps.map((p) => {
10089
10088
  const u = p.nodes.map((h) => vr(h, c, l)).filter((h) => h != null && h !== !1);
10090
10089
  return {
10091
10090
  ...p,
10092
10091
  renderedNodes: u
10093
10092
  };
10094
10093
  }).filter((p) => p.renderedNodes.length > 0);
10095
- return /* @__PURE__ */ i(v, { direction: "column", width: "100%", gap: "24px", children: d.map((p) => /* @__PURE__ */ i(rc, { title: p.name, children: /* @__PURE__ */ b(
10094
+ return /* @__PURE__ */ i(v, { direction: "column", width: "100%", gap: "24px", children: d.map((p) => /* @__PURE__ */ i(rc, { title: p.name, children: /* @__PURE__ */ y(
10096
10095
  v,
10097
10096
  {
10098
10097
  direction: "column",
@@ -10117,7 +10116,7 @@ function _c(e) {
10117
10116
  }
10118
10117
  export {
10119
10118
  Rc as BackAndNextButton,
10120
- Dt as BusinessRuleCard,
10119
+ Nt as BusinessRuleCard,
10121
10120
  _r as BusinessRuleCardNew,
10122
10121
  Rn as BusinessRuleView,
10123
10122
  Pr as BusinessRuleViewNew,
@@ -10125,16 +10124,16 @@ export {
10125
10124
  wc as BusinessRulesNew,
10126
10125
  Tc as BusinessRulesWithGroup,
10127
10126
  Rr as Checkpicker,
10128
- jt as DecisionConditionRender,
10127
+ Gt as DecisionConditionRender,
10129
10128
  Un as DecisionConditionRenderNew,
10130
10129
  et as DecisionViewConditionRenderer,
10131
- Ot as DecisionViewConditionRendererNew,
10130
+ Rt as DecisionViewConditionRendererNew,
10132
10131
  Ic as DragAndDropBoxes,
10133
10132
  fr as DraggableList,
10134
10133
  bs as DropdownMenu,
10135
10134
  kc as DropdownMenuContainer,
10136
10135
  kr as DynamicField,
10137
- Gt as DynamicFieldNew,
10136
+ Bt as DynamicFieldNew,
10138
10137
  $o as DynamicViewField,
10139
10138
  Po as DynamicViewFieldNew,
10140
10139
  We as EFieldType,
@@ -10168,8 +10167,8 @@ export {
10168
10167
  Dd as groupsRecordToArrayNew,
10169
10168
  Fc as mapByGroupNew,
10170
10169
  Vc as normalizeDecisionToNewShape,
10171
- zt as parseCurrencyString,
10172
- Ut as parsePercentageString,
10170
+ Ut as parseCurrencyString,
10171
+ jt as parsePercentageString,
10173
10172
  Dc as parseRangeFromString,
10174
10173
  Ea as percentageFormat,
10175
10174
  Nc as revertSortedDataSampleSwitchPlaces,