@isettingkit/business-rules 3.2.3 → 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.
package/dist/index.es.js CHANGED
@@ -1,11 +1,11 @@
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 Be, 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
- import { string as Re, mixed as Pe, object as ne, number as $e, lazy as bt, date as yt } from "yup";
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";
10
10
  import xa from "axios";
11
11
  import { franc as Ca } from "franc-min";
@@ -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),
@@ -119,7 +119,7 @@ const Dt = (e) => {
119
119
  number: (e) => e,
120
120
  alphabetical: (e) => e,
121
121
  date: (e) => e
122
- }, ze = (e, t) => (Aa[t] || ((r) => r))(e), Pn = {
122
+ }, Ue = (e, t) => (Aa[t] || ((r) => r))(e), Pn = {
123
123
  render: ({
124
124
  name: e,
125
125
  label: t,
@@ -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
  {
@@ -1284,7 +1284,7 @@ const lo = (e) => {
1284
1284
  )
1285
1285
  ] });
1286
1286
  }, so = va((e, t) => {
1287
- var _e, Ue;
1287
+ var _e, je;
1288
1288
  const {
1289
1289
  displayList: n,
1290
1290
  disabled: r,
@@ -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,
@@ -1308,13 +1308,13 @@ const lo = (e) => {
1308
1308
  clearable: N,
1309
1309
  onKeyUp: A,
1310
1310
  onBlur: O,
1311
- onChange: F,
1311
+ onChange: V,
1312
1312
  onClick: G,
1313
1313
  onFocus: te,
1314
1314
  onOptionClick: ie,
1315
1315
  onCheckboxChange: ce,
1316
1316
  handleClear: re
1317
- } = e, V = En(Dn), M = ((Ue = (_e = V == null ? void 0 : V.input) == null ? void 0 : _e.required) == null ? void 0 : Ue.appearance) || Ie.required.appearance, Ce = f && !r, De = T || m === "" ? "" : zn(h, m), Ve = Yt(
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,18 +1367,18 @@ 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,
1374
1374
  onFocus: te,
1375
1375
  onBlur: O,
1376
- onChange: (Q) => F(u, Q.target.value),
1376
+ onChange: (Q) => V(u, Q.target.value),
1377
1377
  onClick: C ? G : void 0,
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,
@@ -1469,8 +1469,8 @@ const lo = (e) => {
1469
1469
  showChevron: N = !0,
1470
1470
  editable: A = !1,
1471
1471
  clearable: O = !0
1472
- } = e, [F, G] = Y(!1), [te, ie] = Y(!1), [ce, re] = Y([]), V = Ke(null);
1473
- Be(() => {
1472
+ } = e, [V, G] = Y(!1), [te, ie] = Y(!1), [ce, re] = Y([]), L = Ke(null);
1473
+ Pe(() => {
1474
1474
  if (C) {
1475
1475
  const W = S ? S.split(",").map((ee) => ee.trim()) : [];
1476
1476
  re(W);
@@ -1481,7 +1481,7 @@ const lo = (e) => {
1481
1481
  }
1482
1482
  function Ce(W) {
1483
1483
  if (!t) {
1484
- G(!F);
1484
+ G(!V);
1485
1485
  try {
1486
1486
  u && u(W);
1487
1487
  } catch (ee) {
@@ -1490,7 +1490,7 @@ const lo = (e) => {
1490
1490
  }
1491
1491
  }
1492
1492
  const De = Ta((W) => {
1493
- V.current && W.target && !V.current.contains(W.target) && G(!1);
1493
+ L.current && W.target && !L.current.contains(W.target) && G(!1);
1494
1494
  }, []);
1495
1495
  function Ve(W) {
1496
1496
  try {
@@ -1508,30 +1508,30 @@ const lo = (e) => {
1508
1508
  }
1509
1509
  }
1510
1510
  function _e(W) {
1511
- W.key === "Escape" && G(!1), G(!F);
1511
+ W.key === "Escape" && G(!1), G(!V);
1512
1512
  try {
1513
1513
  g && g(W);
1514
1514
  } catch (ee) {
1515
1515
  console.error(`Error when clicking over select. ${ee}`);
1516
1516
  }
1517
1517
  }
1518
- function Ue(W) {
1519
- const { value: ee, checked: Et } = W.target;
1518
+ function je(W) {
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
- Be(() => (document.addEventListener("click", De), () => {
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
  {
1532
- ref: V,
1532
+ ref: L,
1533
1533
  disabled: t,
1534
- displayList: F || E,
1534
+ displayList: V || E,
1535
1535
  focused: te,
1536
1536
  fullwidth: n,
1537
1537
  id: r,
@@ -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,
@@ -1557,7 +1557,7 @@ const lo = (e) => {
1557
1557
  onFocus: Ve,
1558
1558
  onOptionClick: Ye,
1559
1559
  onKeyUp: _e,
1560
- onCheckboxChange: Ue
1560
+ onCheckboxChange: je
1561
1561
  }
1562
1562
  );
1563
1563
  }, Rr = (e) => {
@@ -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,39 +1644,39 @@ 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,
1651
1651
  placeholderTo: E
1652
- } = e, [C, N] = Y(l), [A, O] = Y(d), F = (V) => {
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(V));
1655
+ M = Ut(String(L));
1656
1656
  else if (o === "date")
1657
- M = V instanceof Date ? V : new Date(String(V));
1657
+ M = L instanceof Date ? L : new Date(String(L));
1658
1658
  else if (o === "percentage") {
1659
- const Ce = Ut(String(V));
1660
- N(String(V)), n(Ce);
1659
+ const Ce = jt(String(L));
1660
+ N(String(L)), n(Ce);
1661
1661
  return;
1662
- } else o === "number" ? M = Number(V) : M = String(V);
1662
+ } else o === "number" ? M = Number(L) : M = String(L);
1663
1663
  N(M), n(M);
1664
- }, G = (V) => {
1664
+ }, G = (L) => {
1665
1665
  let M;
1666
1666
  if (o === q.MONETARY)
1667
- M = zt(String(V));
1667
+ M = Ut(String(L));
1668
1668
  else if (o === "date")
1669
- M = V instanceof Date ? V : new Date(String(V));
1669
+ M = L instanceof Date ? L : new Date(String(L));
1670
1670
  else if (o === "percentage") {
1671
- const Ce = Ut(String(V));
1672
- O(String(V)), r(Ce);
1671
+ const Ce = jt(String(L));
1672
+ O(String(L)), r(Ce);
1673
1673
  return;
1674
- } else o === "number" ? M = Number(V) : M = String(V);
1674
+ } else o === "number" ? M = Number(L) : M = String(L);
1675
1675
  O(M), r(M);
1676
- }, te = (V, M) => {
1677
- V === `${a}SelectFrom` && (N(M), n(M)), V === `${a}SelectTo` && (O(M), r(M));
1678
- }, ie = (V, M) => M === "date" && V instanceof Date ? V.toISOString().split("T")[0] : typeof V == "number" ? V : V ?? "", ce = y ?? f, re = m ?? f;
1679
- return /* @__PURE__ */ b(
1676
+ }, te = (L, M) => {
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 = 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`,
@@ -1734,8 +1734,8 @@ const lo = (e) => {
1734
1734
  placeholder: S,
1735
1735
  value: ie(C, o),
1736
1736
  required: c,
1737
- onChange: (V, M) => {
1738
- F(M);
1737
+ onChange: (L, M) => {
1738
+ V(M);
1739
1739
  },
1740
1740
  messageValidate: p,
1741
1741
  statusValidate: h,
@@ -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`,
@@ -1784,7 +1784,7 @@ const lo = (e) => {
1784
1784
  placeholder: E,
1785
1785
  value: ie(A, o),
1786
1786
  required: c,
1787
- onChange: (V, M) => {
1787
+ onChange: (L, M) => {
1788
1788
  G(M);
1789
1789
  },
1790
1790
  messageValidate: u,
@@ -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
  {
@@ -2118,14 +2118,14 @@ const lo = (e) => {
2118
2118
  from: e.from ?? "",
2119
2119
  to: e.to ?? ""
2120
2120
  }), Do = (e) => e.value, No = (e) => e.value, Eo = (e) => e.value;
2121
- var L = /* @__PURE__ */ ((e) => (e.EQUAL = "EqualTo", e.GREATER_THAN = "GreaterThan", e.LESS_THAN = "LessThan", e.LIST_OF_VALUES = "ListOfValues", e.LIST_OF_VALUES_MULTI = "ListOfValuesMulti", e.RANGE = "Range", e))(L || {});
2121
+ var F = /* @__PURE__ */ ((e) => (e.EQUAL = "EqualTo", e.GREATER_THAN = "GreaterThan", e.LESS_THAN = "LessThan", e.LIST_OF_VALUES = "ListOfValues", e.LIST_OF_VALUES_MULTI = "ListOfValuesMulti", e.RANGE = "Range", e))(F || {});
2122
2122
  const Ao = {
2123
- [L.LIST_OF_VALUES]: So,
2124
- [L.LIST_OF_VALUES_MULTI]: xo,
2125
- [L.RANGE]: Co,
2126
- [L.GREATER_THAN]: Do,
2127
- [L.LESS_THAN]: No,
2128
- [L.EQUAL]: Eo
2123
+ [F.LIST_OF_VALUES]: So,
2124
+ [F.LIST_OF_VALUES_MULTI]: xo,
2125
+ [F.RANGE]: Co,
2126
+ [F.GREATER_THAN]: Do,
2127
+ [F.LESS_THAN]: No,
2128
+ [F.EQUAL]: Eo
2129
2129
  }, gt = (e) => {
2130
2130
  const t = e == null ? void 0 : e.value, n = typeof t == "object" && t !== null && !Array.isArray(t), r = Ao[e == null ? void 0 : e.howToSetTheDecision] || wo;
2131
2131
  return n && r(t) || t || void 0;
@@ -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",
@@ -2175,11 +2175,11 @@ const Ao = {
2175
2175
  children: t
2176
2176
  }
2177
2177
  ),
2178
- n === "condition" ? /* @__PURE__ */ i(D, { type: "body", size: "medium", appearance: "gray", children: ze(a, r) }) : /* @__PURE__ */ i(D, { type: "label", size: "large", appearance: "gray", children: ze(a, r) })
2178
+ n === "condition" ? /* @__PURE__ */ i(D, { type: "body", size: "medium", appearance: "gray", children: Ue(a, r) }) : /* @__PURE__ */ i(D, { type: "label", size: "large", appearance: "gray", children: Ue(a, r) })
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,
@@ -2260,7 +2260,7 @@ const Ao = {
2260
2260
  weight: "bold",
2261
2261
  size: n === "condition" ? "medium" : "large",
2262
2262
  appearance: "gray",
2263
- children: ze(a, r)
2263
+ children: Ue(a, r)
2264
2264
  }
2265
2265
  ),
2266
2266
  "a",
@@ -2272,7 +2272,7 @@ const Ao = {
2272
2272
  weight: "bold",
2273
2273
  size: n === "condition" ? "medium" : "large",
2274
2274
  appearance: "gray",
2275
- children: ze(o, r)
2275
+ children: Ue(o, r)
2276
2276
  }
2277
2277
  )
2278
2278
  ] })
@@ -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
  {
@@ -2465,7 +2465,7 @@ const Ao = {
2465
2465
  type: n === "condition" ? "body" : "title",
2466
2466
  size: n === "condition" ? "small" : "medium",
2467
2467
  appearance: n === "condition" ? "dark" : "gray",
2468
- children: ze(a, r)
2468
+ children: Ue(a, r)
2469
2469
  }
2470
2470
  ),
2471
2471
  o && /* @__PURE__ */ i(
@@ -2494,16 +2494,16 @@ 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
- /* @__PURE__ */ i(D, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: ze(a, r) }),
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" }),
2501
2501
  /* @__PURE__ */ i(D, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: l })
2502
2502
  ] })
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,
@@ -2600,7 +2600,7 @@ const Ao = {
2600
2600
  ), s = r.decisionDataType || r.conditionDataType, c = Array.isArray(n) ? n.map((l, d) => ({
2601
2601
  checked: !0,
2602
2602
  id: String(d + 1),
2603
- label: String(ze(l, s))
2603
+ label: String(Ue(l, s))
2604
2604
  })) : [];
2605
2605
  return /* @__PURE__ */ i(
2606
2606
  zo,
@@ -2625,8 +2625,8 @@ const Ao = {
2625
2625
  handleOnClick: c,
2626
2626
  showModal: l,
2627
2627
  validDate: d
2628
- } = e, p = `De ${ze(a, r)} a ${ze(o, r)}`;
2629
- return /* @__PURE__ */ b(
2628
+ } = e, p = `De ${Ue(a, r)} a ${Ue(o, r)}`;
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: () => {
@@ -3403,12 +3403,12 @@ const di = $.div`
3403
3403
  from: e.from ?? "",
3404
3404
  to: e.to ?? ""
3405
3405
  }), mi = (e) => e.value, bi = (e) => e.value, yi = (e) => e.value, vi = {
3406
- [L.LIST_OF_VALUES]: hi,
3407
- [L.LIST_OF_VALUES_MULTI]: gi,
3408
- [L.RANGE]: fi,
3409
- [L.GREATER_THAN]: mi,
3410
- [L.LESS_THAN]: bi,
3411
- [L.EQUAL]: yi
3406
+ [F.LIST_OF_VALUES]: hi,
3407
+ [F.LIST_OF_VALUES_MULTI]: gi,
3408
+ [F.RANGE]: fi,
3409
+ [F.GREATER_THAN]: mi,
3410
+ [F.LESS_THAN]: bi,
3411
+ [F.EQUAL]: yi
3412
3412
  }, Ti = (e, t) => {
3413
3413
  if (!e || e.decisionDataType !== le.PERCENTAGE || t == null || typeof t == "string" && t.endsWith("%"))
3414
3414
  return t;
@@ -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
  ] })
@@ -3723,7 +3723,7 @@ const Ni = (e) => {
3723
3723
  ),
3724
3724
  value: e
3725
3725
  }), Ii = (e) => ({
3726
- schema: Pe().test(
3726
+ schema: ze().test(
3727
3727
  "isArrayOrString",
3728
3728
  "Debe ser un array de strings/numbers o un solo string",
3729
3729
  (t) => Array.isArray(t) ? t.every(
@@ -3732,7 +3732,7 @@ const Ni = (e) => {
3732
3732
  ),
3733
3733
  value: e
3734
3734
  }), Oi = (e) => ({
3735
- schema: Pe().test(
3735
+ schema: ze().test(
3736
3736
  "isArrayOrString",
3737
3737
  "Debe ser un array de strings/numbers o un solo string ",
3738
3738
  (t) => Array.isArray(t) ? t.every(
@@ -3763,20 +3763,20 @@ const Ni = (e) => {
3763
3763
  schema: Re().required("Requerido"),
3764
3764
  value: e
3765
3765
  }, Li = {
3766
- [L.LIST_OF_VALUES]: Ii,
3767
- [L.LIST_OF_VALUES_MULTI]: Oi,
3768
- [L.RANGE]: Ri,
3769
- [L.GREATER_THAN]: rn,
3770
- [L.LESS_THAN]: rn,
3771
- [L.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) => {
3766
+ [F.LIST_OF_VALUES]: Ii,
3767
+ [F.LIST_OF_VALUES_MULTI]: Oi,
3768
+ [F.RANGE]: Ri,
3769
+ [F.GREATER_THAN]: rn,
3770
+ [F.LESS_THAN]: rn,
3771
+ [F.EQUAL]: rn
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);
@@ -3926,9 +3926,9 @@ const _i = $.div`
3926
3926
  name: s,
3927
3927
  valueToggle: c = ""
3928
3928
  } = e, [l, d] = Y(t);
3929
- return Be(() => {
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: F }) => {
3964
- y(F.checked), r && r(F.checked);
3965
- }, N = (F) => {
3966
- T(F.target.value), t(F);
3967
- }, A = (F) => {
3968
- E(F.target.value), n(F);
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
+ }, N = (V) => {
3966
+ T(V.target.value), t(V);
3967
+ }, A = (V) => {
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({
@@ -4344,12 +4344,12 @@ const Ui = (e) => {
4344
4344
  from: e.from ?? "",
4345
4345
  to: e.to ?? ""
4346
4346
  }), Wi = (e) => e.value, Qi = (e) => e.value, Xi = (e) => e.value, Ji = {
4347
- [L.LIST_OF_VALUES]: Hi,
4348
- [L.LIST_OF_VALUES_MULTI]: qi,
4349
- [L.RANGE]: Yi,
4350
- [L.GREATER_THAN]: Wi,
4351
- [L.LESS_THAN]: Qi,
4352
- [L.EQUAL]: Xi
4347
+ [F.LIST_OF_VALUES]: Hi,
4348
+ [F.LIST_OF_VALUES_MULTI]: qi,
4349
+ [F.RANGE]: Yi,
4350
+ [F.GREATER_THAN]: Wi,
4351
+ [F.LESS_THAN]: Qi,
4352
+ [F.EQUAL]: Xi
4353
4353
  }, Ze = (e) => {
4354
4354
  const t = e == null ? void 0 : e.value;
4355
4355
  if (typeof t == "string" && t.includes(" a ")) {
@@ -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)])
@@ -4714,20 +4714,20 @@ const nl = (e) => {
4714
4714
  if (e == null) return "";
4715
4715
  const n = Array.isArray(e) ? e.join(", ") : typeof e == "object" && e !== null ? JSON.stringify(e) : String(e ?? "");
4716
4716
  switch (t) {
4717
- case L.LESS_THAN:
4717
+ case F.LESS_THAN:
4718
4718
  return `Menor a ${n}`;
4719
- case L.GREATER_THAN:
4719
+ case F.GREATER_THAN:
4720
4720
  return `Mayor a ${n}`;
4721
- case L.LIST_OF_VALUES:
4721
+ case F.LIST_OF_VALUES:
4722
4722
  return e;
4723
- case L.LIST_OF_VALUES_MULTI:
4723
+ case F.LIST_OF_VALUES_MULTI:
4724
4724
  return e;
4725
- case L.RANGE:
4725
+ case F.RANGE:
4726
4726
  return 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
  })
@@ -4843,15 +4843,15 @@ const nl = (e) => {
4843
4843
  } : null, O = U.useMemo(
4844
4844
  () => g ? Me(g) : {},
4845
4845
  [g]
4846
- ), F = ((dt = (st = g == null ? void 0 : g.conditionGroups) == null ? void 0 : st.map((I) => I == null ? void 0 : I.ConditionGroupId)) == null ? void 0 : dt.filter(Boolean)) || Object.keys(O), G = F[0] || "group-primary", te = U.useMemo(() => {
4846
+ ), V = ((dt = (st = g == null ? void 0 : g.conditionGroups) == null ? void 0 : st.map((I) => I == null ? void 0 : I.ConditionGroupId)) == null ? void 0 : dt.filter(Boolean)) || Object.keys(O), G = V[0] || "group-primary", te = U.useMemo(() => {
4847
4847
  const I = {}, _ = O[G] || [], R = O["group-primary"] || [];
4848
4848
  I["group-primary"] = G === "group-primary" ? R : [..._, ...R];
4849
- for (const w of F)
4849
+ for (const w of V)
4850
4850
  !w || w === G || w !== "group-primary" && O[w] && (I[w] = O[w]);
4851
4851
  for (const w of Object.keys(O))
4852
4852
  w === "group-primary" || w === G || w in I || (I[w] = O[w]);
4853
4853
  return I;
4854
- }, [O, G, F]), ie = U.useMemo(() => {
4854
+ }, [O, G, V]), ie = U.useMemo(() => {
4855
4855
  const I = {};
4856
4856
  return Object.keys(te).forEach((_) => {
4857
4857
  const R = te[_];
@@ -4910,12 +4910,12 @@ const nl = (e) => {
4910
4910
  for (const [R, w] of I)
4911
4911
  w.length > 0 && (_[R] = w);
4912
4912
  return _;
4913
- }, [ce]), V = U.useMemo(() => {
4913
+ }, [ce]), L = U.useMemo(() => {
4914
4914
  const I = Object.keys(re);
4915
4915
  return I.includes("group-primary") ? ["group-primary", ...I.filter((_) => _ !== "group-primary")] : I;
4916
4916
  }, [re]), M = {};
4917
4917
  let Ce = 1;
4918
- const De = V.map((I) => {
4918
+ const De = L.map((I) => {
4919
4919
  const _ = I === "group-primary" ? "mainCondition" : `alternateCondition-${Ce++}`;
4920
4920
  return M[_] = I, {
4921
4921
  id: _,
@@ -4924,7 +4924,7 @@ const nl = (e) => {
4924
4924
  };
4925
4925
  }), [Ve, Ye] = U.useState(
4926
4926
  ((ct = De[0]) == null ? void 0 : ct.id) ?? "mainCondition"
4927
- ), _e = (I) => Ye(I), Ue = M[Ve] ?? V[0] ?? "group-primary", Q = re[Ue] ?? [], W = V.length > 1, ee = Array.from({ length: 5 }), Et = !!(!r && g && A), it = Q.length < 2 ? "start" : "space-between", lt = `N° ${String((a ?? 0) + 1).padStart(2, "0")}`;
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
  {
@@ -5205,7 +5205,7 @@ const ll = $.div`
5205
5205
  ),
5206
5206
  value: e
5207
5207
  }), fl = (e) => ({
5208
- schema: Pe().test(
5208
+ schema: ze().test(
5209
5209
  "isArrayOrString",
5210
5210
  "Por favor selecciona una opcion",
5211
5211
  (t) => Array.isArray(t) ? t.every(
@@ -5214,7 +5214,7 @@ const ll = $.div`
5214
5214
  ),
5215
5215
  value: e
5216
5216
  }), ml = (e) => ({
5217
- schema: Pe().test(
5217
+ schema: ze().test(
5218
5218
  "isArrayOrString",
5219
5219
  "Por favor selecciona al menos una opcion",
5220
5220
  (t) => Array.isArray(t) ? t.every(
@@ -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;
@@ -5258,7 +5258,7 @@ const ll = $.div`
5258
5258
  }), nr = (e) => e && typeof e == "object" && !Array.isArray(e) && "value" in e && e.value !== "" && e.value != null, an = (e, t) => {
5259
5259
  if (nr(e))
5260
5260
  return {
5261
- schema: Pe().test(
5261
+ schema: ze().test(
5262
5262
  "required-option",
5263
5263
  "Por favor selecciona una opcion",
5264
5264
  (n) => nr(n)
@@ -5282,20 +5282,20 @@ const ll = $.div`
5282
5282
  schema: $e().required("El campo porcentaje es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100"),
5283
5283
  value: e
5284
5284
  } : {
5285
- schema: Pe().test("required", "Requerido", (n) => n == null ? !1 : typeof n == "string" ? n.trim().length > 0 : typeof n == "number" ? !Number.isNaN(n) : !1),
5285
+ schema: ze().test("required", "Requerido", (n) => n == null ? !1 : typeof n == "string" ? n.trim().length > 0 : typeof n == "number" ? !Number.isNaN(n) : !1),
5286
5286
  value: e
5287
5287
  };
5288
5288
  }, vl = {
5289
- [L.LIST_OF_VALUES]: fl,
5290
- [L.LIST_OF_VALUES_MULTI]: ml,
5291
- [L.RANGE]: bl,
5292
- [L.GREATER_THAN]: an,
5293
- [L.LESS_THAN]: an,
5294
- [L.EQUAL]: an
5289
+ [F.LIST_OF_VALUES]: fl,
5290
+ [F.LIST_OF_VALUES_MULTI]: ml,
5291
+ [F.RANGE]: bl,
5292
+ [F.GREATER_THAN]: an,
5293
+ [F.LESS_THAN]: an,
5294
+ [F.EQUAL]: an
5295
5295
  }, rr = (e) => vl[e] || gl, ar = "El valor desde no puede ser mayor que el valor hasta", or = (e) => {
5296
5296
  var t;
5297
5297
  return Array.isArray((t = e == null ? void 0 : e.listOfPossibleValues) == null ? void 0 : t.list) && e.listOfPossibleValues.list.length > 0;
5298
- }, bn = Pe().test(
5298
+ }, bn = ze().test(
5299
5299
  "required-option",
5300
5300
  "Por favor selecciona una opcion",
5301
5301
  (e) => {
@@ -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,11 +5401,11 @@ 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
- const F = N == null ? void 0 : N[O.conditionName];
5407
- if (!on(F)) return;
5408
- const G = yn(F), ie = rr(
5406
+ const V = N == null ? void 0 : N[O.conditionName];
5407
+ if (!on(V)) return;
5408
+ const G = yn(V), ie = rr(
5409
5409
  O.howToSetTheCondition
5410
5410
  )(
5411
5411
  G,
@@ -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
  }
@@ -5748,16 +5748,16 @@ function Rl(e) {
5748
5748
  }
5749
5749
  function Ll(e) {
5750
5750
  switch (e) {
5751
- case L.EQUAL:
5751
+ case F.EQUAL:
5752
5752
  return "sea";
5753
- case L.GREATER_THAN:
5753
+ case F.GREATER_THAN:
5754
5754
  return "sea mayor a";
5755
- case L.LESS_THAN:
5755
+ case F.LESS_THAN:
5756
5756
  return "sea menor a";
5757
- case L.RANGE:
5757
+ case F.RANGE:
5758
5758
  return "esté entre";
5759
- case L.LIST_OF_VALUES:
5760
- case L.LIST_OF_VALUES_MULTI:
5759
+ case F.LIST_OF_VALUES:
5760
+ case F.LIST_OF_VALUES_MULTI:
5761
5761
  return "esté en";
5762
5762
  default:
5763
5763
  return "sea";
@@ -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) => {
@@ -5832,7 +5832,7 @@ const ut = (e) => {
5832
5832
  };
5833
5833
  }), [N, A] = U.useState(
5834
5834
  ((dt = C[0]) == null ? void 0 : dt.id) ?? "mainCondition"
5835
- ), O = (I) => A(I), F = S[N] ?? m ?? "group-primary";
5835
+ ), O = (I) => A(I), V = S[N] ?? m ?? "group-primary";
5836
5836
  U.useEffect(() => {
5837
5837
  var H;
5838
5838
  const I = (H = d.values) == null ? void 0 : H.conditionsThatEstablishesTheDecision;
@@ -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,13 +5913,13 @@ 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];
5920
5920
  });
5921
5921
  return Object.fromEntries(R);
5922
- }, [f, d.values, m]), te = G[F] ?? [], ie = G[m ?? "group-primary"] ?? [], ce = {
5922
+ }, [f, d.values, m]), te = G[V] ?? [], ie = G[m ?? "group-primary"] ?? [], ce = {
5923
5923
  decisionDataType: t.decisionDataType,
5924
5924
  howToSetTheCondition: t.howToSetTheDecision,
5925
5925
  labelName: t.labelName,
@@ -5927,7 +5927,7 @@ const ut = (e) => {
5927
5927
  listOfPossibleValues: t.listOfPossibleValues,
5928
5928
  ruleName: t.ruleName,
5929
5929
  timeUnit: t.timeUnit ? gn("", t.timeUnit, !0).trim() : ""
5930
- }, re = d.submitCount > 0 || !!d.touched.effectiveFrom, V = d.submitCount > 0 || !!d.touched.validUntil, M = re ? d.errors.effectiveFrom ? "invalid" : "valid" : void 0, Ce = V ? d.errors.validUntil ? "invalid" : "valid" : void 0, De = U.useMemo(() => {
5930
+ }, re = d.submitCount > 0 || !!d.touched.effectiveFrom, L = d.submitCount > 0 || !!d.touched.validUntil, M = re ? d.errors.effectiveFrom ? "invalid" : "valid" : void 0, Ce = L ? d.errors.validUntil ? "invalid" : "valid" : void 0, De = U.useMemo(() => {
5931
5931
  const I = d.errors.conditionsThatEstablishesTheDecision;
5932
5932
  if (!I) return;
5933
5933
  if (typeof I == "string") return I;
@@ -5967,7 +5967,7 @@ const ut = (e) => {
5967
5967
  }
5968
5968
  }
5969
5969
  }
5970
- }, Ue = (I) => {
5970
+ }, je = (I) => {
5971
5971
  const [_, ...R] = I.split("."), w = R.join("."), H = Object.values(h).flat().find((X) => X.conditionName === w), P = Ye(H || {});
5972
5972
  _e(_, w, P), d.setFieldTouched(
5973
5973
  `conditionsThatEstablishesTheDecision.${_}.${w}`,
@@ -5975,9 +5975,9 @@ const ut = (e) => {
5975
5975
  !1
5976
5976
  );
5977
5977
  }, Q = () => {
5978
- (h[F] ?? []).forEach((_) => {
5978
+ (h[V] ?? []).forEach((_) => {
5979
5979
  const R = ut(_ == null ? void 0 : _.howToSetTheCondition), w = pt(R);
5980
- _e(F, _.conditionName, w);
5980
+ _e(V, _.conditionName, w);
5981
5981
  });
5982
5982
  }, [W, ee] = U.useState(!1);
5983
5983
  return /* @__PURE__ */ i(
@@ -5993,7 +5993,7 @@ const ut = (e) => {
5993
5993
  onRedefineCurrentTab: Q,
5994
5994
  onTabChange: O,
5995
5995
  onClearCondition: (I) => {
5996
- Ue(I), a == null || a(I);
5996
+ je(I), a == null || a(I);
5997
5997
  },
5998
5998
  showConditionsError: Ve,
5999
5999
  tabs: C,
@@ -6008,8 +6008,8 @@ const ut = (e) => {
6008
6008
  onCloseRedefineConfirm: () => ee(!1),
6009
6009
  onConfirmRedefine: () => {
6010
6010
  Q();
6011
- const I = (h[F] ?? []).map(
6012
- (_) => `${F}.${_.conditionName}`
6011
+ const I = (h[V] ?? []).map(
6012
+ (_) => `${V}.${_.conditionName}`
6013
6013
  );
6014
6014
  o == null || o(I), ee(!1);
6015
6015
  },
@@ -6042,25 +6042,29 @@ const ut = (e) => {
6042
6042
  min-height: auto;
6043
6043
  }
6044
6044
  `, Ul = (e) => {
6045
- const { options: t } = e, [n, r] = Y([]), a = (d) => {
6046
- r((p) => {
6047
- if (p.some((g) => g.id === d))
6048
- return p.filter((g) => g.id !== d);
6049
- const h = t.find((g) => g.id === d);
6050
- return h ? [...p, h] : p;
6045
+ const { options: t } = e, [n, r] = Y([]), a = Ct(() => t.filter((p) => p.value === "true"), [t]);
6046
+ Pe(() => {
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;
6051
6055
  });
6052
- }, o = () => {
6053
- r([]);
6054
6056
  }, s = () => {
6057
+ r(a);
6058
+ }, c = () => {
6055
6059
  r(t);
6056
- }, c = n.length === 0, l = n.length === t.length;
6060
+ }, l = n.length === 0, d = n.length === t.length;
6057
6061
  return {
6058
- onToggleAllConditions: s,
6059
- isAllConditionsChecked: l,
6060
- isAnyConditionChecked: c,
6061
- onToggleAnyCondition: o,
6062
+ onToggleAllConditions: c,
6063
+ isAllConditionsChecked: d,
6064
+ isAnyConditionChecked: l,
6065
+ onToggleAnyCondition: s,
6062
6066
  checkedItems: n,
6063
- handleCheckboxChange: a
6067
+ handleCheckboxChange: o
6064
6068
  };
6065
6069
  }, jl = (e) => {
6066
6070
  const { options: t, portalId: n, onCloseModal: r, onOpenRulesModal: a } = e, o = document.getElementById(n);
@@ -6076,11 +6080,11 @@ const ut = (e) => {
6076
6080
  checkedItems: p,
6077
6081
  handleCheckboxChange: u
6078
6082
  } = Ul({ options: t });
6079
- return Ct(
6080
- /* @__PURE__ */ i(zr, { children: /* @__PURE__ */ i(xt, { children: /* @__PURE__ */ i(Pl, { children: /* @__PURE__ */ b(v, { direction: "column", gap: "24px", children: [
6081
- /* @__PURE__ */ b(v, { direction: "column", gap: "24px", children: [
6082
- /* @__PURE__ */ b(v, { alignItems: "center", justifyContent: "space-between", children: [
6083
- /* @__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: [
6084
6088
  /* @__PURE__ */ i(
6085
6089
  D,
6086
6090
  {
@@ -6097,9 +6101,9 @@ const ut = (e) => {
6097
6101
  ] }),
6098
6102
  /* @__PURE__ */ i(K, { dashed: !0 })
6099
6103
  ] }),
6100
- /* @__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: [
6101
6105
  /* @__PURE__ */ i(D, { type: "title", size: "medium", weight: "normal", children: " ¿Qué condiciones determinan la decisión?" }),
6102
- /* @__PURE__ */ b(v, { justifyContent: "space-between", children: [
6106
+ /* @__PURE__ */ y(v, { justifyContent: "space-between", children: [
6103
6107
  /* @__PURE__ */ i(
6104
6108
  rt,
6105
6109
  {
@@ -6129,7 +6133,7 @@ const ut = (e) => {
6129
6133
  h.id
6130
6134
  )) }) })
6131
6135
  ] }) }),
6132
- /* @__PURE__ */ b(v, { justifyContent: "flex-end", gap: "12px", children: [
6136
+ /* @__PURE__ */ y(v, { justifyContent: "flex-end", gap: "12px", children: [
6133
6137
  /* @__PURE__ */ i(Z, { appearance: "gray", onClick: r, children: "Cancelar" }),
6134
6138
  /* @__PURE__ */ i(Z, { onClick: () => a(p), children: "Continuar" })
6135
6139
  ] })
@@ -6153,7 +6157,7 @@ const ut = (e) => {
6153
6157
  handleCloseModal: h,
6154
6158
  handleSubmitForm: g,
6155
6159
  handleDelete: f,
6156
- onRemoveCondition: y,
6160
+ onRemoveCondition: b,
6157
6161
  onRestoreConditions: m,
6158
6162
  handleOpenRulesModal: T = () => {
6159
6163
  },
@@ -6163,7 +6167,7 @@ const ut = (e) => {
6163
6167
  withTerm: N,
6164
6168
  configurateDecisionOptions: A = [],
6165
6169
  configureDecisionModal: O,
6166
- handleCloseRulesModal: F = () => {
6170
+ handleCloseRulesModal: V = () => {
6167
6171
  }
6168
6172
  } = e, [G, te] = Y(null), { renderedCards: ie } = pl({
6169
6173
  cardTitle: t,
@@ -6171,15 +6175,15 @@ const ut = (e) => {
6171
6175
  customTitleContentAddCard: r,
6172
6176
  decisions: o,
6173
6177
  loading: p,
6174
- handleOpenModal: (V) => T(void 0, V),
6178
+ handleOpenModal: (L) => L !== null && u(L),
6175
6179
  handleDelete: f,
6176
- isOpenFor: (V) => G === V,
6177
- toggleAt: (V) => te((M) => M === V ? null : V),
6180
+ isOpenFor: (L) => G === L,
6181
+ toggleAt: (L) => te((M) => M === L ? null : L),
6178
6182
  editionMode: c,
6179
6183
  withEditOption: C
6180
6184
  }), ce = ((o == null ? void 0 : o.length) || 0) + 1, re = (o == null ? void 0 : o.length) === 0 && !p;
6181
- return /* @__PURE__ */ b(j, { children: [
6182
- /* @__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: [
6183
6187
  /* @__PURE__ */ i(D, { type: "title", weight: "bold", size: "medium", appearance: "gray", children: "Consulta de las decisiones definidas" }),
6184
6188
  /* @__PURE__ */ i(
6185
6189
  Z,
@@ -6192,7 +6196,7 @@ const ut = (e) => {
6192
6196
  }
6193
6197
  )
6194
6198
  ] }),
6195
- /* @__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(
6196
6200
  v,
6197
6201
  {
6198
6202
  direction: "column",
@@ -6219,7 +6223,7 @@ const ut = (e) => {
6219
6223
  children: "Sin decisiones"
6220
6224
  }
6221
6225
  ),
6222
- /* @__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: [
6223
6227
  "Aun no tienes decisiones definidas, para empezar haz clic en",
6224
6228
  r || ' "Agregar decisión"'
6225
6229
  ] }) })
@@ -6252,7 +6256,7 @@ const ut = (e) => {
6252
6256
  Ur,
6253
6257
  {
6254
6258
  portalId: "modal-portal",
6255
- onCloseModal: F,
6259
+ onCloseModal: V,
6256
6260
  title: d ? "Editar Decisión" : "Configurar Decisión",
6257
6261
  description: "Diligencia los campos para configurar tu decisión.",
6258
6262
  children: /* @__PURE__ */ i(
@@ -6261,9 +6265,9 @@ const ut = (e) => {
6261
6265
  decision: d || s,
6262
6266
  fullTemplate: S ?? s,
6263
6267
  onSubmitEvent: g,
6264
- onCancel: () => F ? F() : () => {
6268
+ onCancel: () => V ? V() : () => {
6265
6269
  },
6266
- onRemoveCondition: y,
6270
+ onRemoveCondition: b,
6267
6271
  onRestoreConditions: m,
6268
6272
  withTerm: N,
6269
6273
  decisionNumber: ce
@@ -6313,18 +6317,18 @@ function Hl(e) {
6313
6317
  }
6314
6318
  const ql = (e, t) => {
6315
6319
  const [n, r] = Y([]), [a, o] = Y([]), [s, c] = Y(!1), l = Ke(null);
6316
- return Be(() => {
6320
+ return Pe(() => {
6317
6321
  if (!e.current || !l.current) return;
6318
6322
  const d = e.current, p = l.current, u = () => {
6319
6323
  var E;
6320
6324
  const g = d.clientWidth, f = Array.from(
6321
6325
  p.querySelectorAll('[data-filter-tag="true"]')
6322
- ), y = 48;
6326
+ ), b = 48;
6323
6327
  let m = 0;
6324
6328
  const T = [], S = [];
6325
6329
  for (let C = 0; C < t.length; C++) {
6326
6330
  const N = ((E = f[C]) == null ? void 0 : E.offsetWidth) ?? 0;
6327
- 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]);
6328
6332
  }
6329
6333
  r(T), o(S), c(S.length > 0);
6330
6334
  }, h = new ResizeObserver(() => {
@@ -6407,8 +6411,8 @@ const Yl = $.div`
6407
6411
  }};
6408
6412
  }
6409
6413
  `, Jl = (e) => {
6410
- var h, g, f, y, m, T;
6411
- const { id: t, label: n, leadingIcon: r, onClose: a } = e, [o, s] = Y(!1), c = () => s(!0), l = () => s(!1), d = En(Dn), p = ((f = (g = (h = d == null ? void 0 : d.input) == null ? void 0 : h.option) == null ? void 0 : g.appearance) == null ? void 0 : f.hover) ?? vn.option.appearance.hover, u = ((T = (m = (y = d == null ? void 0 : d.input) == null ? void 0 : y.option) == null ? void 0 : m.appearance) == null ? void 0 : T.regular) ?? vn.option.appearance.regular;
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;
6412
6416
  return /* @__PURE__ */ i(
6413
6417
  Xl,
6414
6418
  {
@@ -6418,7 +6422,7 @@ const Yl = $.div`
6418
6422
  onClick: (S) => {
6419
6423
  S.stopPropagation();
6420
6424
  },
6421
- children: /* @__PURE__ */ b(
6425
+ children: /* @__PURE__ */ y(
6422
6426
  Fe,
6423
6427
  {
6424
6428
  alignItems: "center",
@@ -6473,14 +6477,14 @@ const Yl = $.div`
6473
6477
  hidden: u,
6474
6478
  showOverflowIndicator: h,
6475
6479
  measurementRef: g
6476
- } = ql(c, t), [f, y] = Y(!1), m = (N) => {
6477
- N.stopPropagation(), y((A) => !A);
6480
+ } = ql(c, t), [f, b] = Y(!1), m = (N) => {
6481
+ N.stopPropagation(), b((A) => !A);
6478
6482
  };
6479
- Be(() => {
6483
+ Pe(() => {
6480
6484
  const N = (A) => {
6481
6485
  var G, te;
6482
6486
  const O = A.target;
6483
- !((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);
6484
6488
  };
6485
6489
  return f && window.addEventListener("mousedown", N), () => window.removeEventListener("mousedown", N);
6486
6490
  }, [f]);
@@ -6491,9 +6495,9 @@ const Yl = $.div`
6491
6495
  icon: N.icon
6492
6496
  })), C = (N) => {
6493
6497
  var A, O;
6494
- (O = (A = u.find((F) => F.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);
6495
6499
  };
6496
- return /* @__PURE__ */ b(Hl, { borderRadius: "8px", width: "100%", children: [
6500
+ return /* @__PURE__ */ y(Hl, { borderRadius: "8px", width: "100%", children: [
6497
6501
  /* @__PURE__ */ i(Wl, { ref: g, children: t.map((N) => /* @__PURE__ */ i("div", { "data-filter-tag": "true", children: /* @__PURE__ */ i(
6498
6502
  we,
6499
6503
  {
@@ -6505,7 +6509,7 @@ const Yl = $.div`
6505
6509
  onClose: N.onClose
6506
6510
  }
6507
6511
  ) }, N.label)) }),
6508
- /* @__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: [
6509
6513
  /* @__PURE__ */ i(
6510
6514
  Ee,
6511
6515
  {
@@ -6518,7 +6522,7 @@ const Yl = $.div`
6518
6522
  alignItems: "center",
6519
6523
  padding: "0px 8px",
6520
6524
  border: !0,
6521
- 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: [
6522
6526
  p.map((N) => /* @__PURE__ */ i(
6523
6527
  we,
6524
6528
  {
@@ -6532,7 +6536,7 @@ const Yl = $.div`
6532
6536
  },
6533
6537
  N.label
6534
6538
  )),
6535
- h && /* @__PURE__ */ b(
6539
+ h && /* @__PURE__ */ y(
6536
6540
  "div",
6537
6541
  {
6538
6542
  ref: d,
@@ -6558,7 +6562,7 @@ const Yl = $.div`
6558
6562
  leadingIcon: N.icon,
6559
6563
  onClose: () => {
6560
6564
  var A;
6561
- (A = N.onClose) == null || A.call(N), y(!1);
6565
+ (A = N.onClose) == null || A.call(N), b(!1);
6562
6566
  }
6563
6567
  },
6564
6568
  N.label
@@ -6596,9 +6600,9 @@ const Yl = $.div`
6596
6600
  ] });
6597
6601
  }, xc = (e) => {
6598
6602
  const { appliedFilters: t, fields: n, onChange: r, noFiltersLabel: a } = e, o = Se("(max-width: 768px)"), s = !t || t.length === 0;
6599
- return /* @__PURE__ */ b(v, { direction: "column", gap: "16px", children: [
6600
- o && /* @__PURE__ */ b(j, { children: [
6601
- /* @__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: [
6602
6606
  /* @__PURE__ */ i(B, { appearance: "gray", icon: /* @__PURE__ */ i(xr, {}) }),
6603
6607
  /* @__PURE__ */ i(
6604
6608
  Ee,
@@ -6629,7 +6633,7 @@ const Yl = $.div`
6629
6633
  ] }),
6630
6634
  /* @__PURE__ */ i(K, { dashed: !0 })
6631
6635
  ] }),
6632
- n.map((c) => /* @__PURE__ */ b(v, { gap: "6px", alignItems: "center", children: [
6636
+ n.map((c) => /* @__PURE__ */ y(v, { gap: "6px", alignItems: "center", children: [
6633
6637
  /* @__PURE__ */ i(v, { padding: "22px 0 0 0", children: /* @__PURE__ */ i(B, { appearance: "primary", icon: c.icon }) }),
6634
6638
  /* @__PURE__ */ i(
6635
6639
  Cn,
@@ -6726,7 +6730,7 @@ const Yl = $.div`
6726
6730
  ),
6727
6731
  value: e
6728
6732
  }), es = (e) => ({
6729
- schema: Pe().test(
6733
+ schema: ze().test(
6730
6734
  "isArrayOrString",
6731
6735
  "Debe ser un array de strings/numbers o un solo string",
6732
6736
  (t) => Array.isArray(t) ? t.every(
@@ -6735,7 +6739,7 @@ const Yl = $.div`
6735
6739
  ),
6736
6740
  value: e
6737
6741
  }), ts = (e) => ({
6738
- schema: Pe().test(
6742
+ schema: ze().test(
6739
6743
  "isArrayOrString",
6740
6744
  "Debe ser un array de strings/numbers o un solo string ",
6741
6745
  (t) => Array.isArray(t) ? t.every(
@@ -6766,12 +6770,12 @@ const Yl = $.div`
6766
6770
  schema: Re().required("Requerido"),
6767
6771
  value: e
6768
6772
  }, rs = {
6769
- [L.LIST_OF_VALUES]: es,
6770
- [L.LIST_OF_VALUES_MULTI]: ts,
6771
- [L.RANGE]: ns,
6772
- [L.GREATER_THAN]: ln,
6773
- [L.LESS_THAN]: ln,
6774
- [L.EQUAL]: ln
6773
+ [F.LIST_OF_VALUES]: es,
6774
+ [F.LIST_OF_VALUES_MULTI]: ts,
6775
+ [F.RANGE]: ns,
6776
+ [F.GREATER_THAN]: ln,
6777
+ [F.LESS_THAN]: ln,
6778
+ [F.EQUAL]: ln
6775
6779
  }, lr = (e) => rs[e] || Kl;
6776
6780
  function as({
6777
6781
  decision: e,
@@ -6904,7 +6908,7 @@ function as({
6904
6908
  void 0
6905
6909
  );
6906
6910
  else {
6907
- const u = p.howToSetTheCondition === L.LIST_OF_VALUES_MULTI ? [] : "";
6911
+ const u = p.howToSetTheCondition === F.LIST_OF_VALUES_MULTI ? [] : "";
6908
6912
  a.setFieldValue(
6909
6913
  `conditionsThatEstablishesTheDecision.${p.conditionName}`,
6910
6914
  u
@@ -6951,9 +6955,9 @@ const os = $.div`
6951
6955
  } = e, [l, d] = Y(t), p = (u) => {
6952
6956
  d(u.target.checked), r(u);
6953
6957
  };
6954
- return Be(() => {
6958
+ return Pe(() => {
6955
6959
  d(t);
6956
- }, [t]), /* @__PURE__ */ b(j, { children: [
6960
+ }, [t]), /* @__PURE__ */ y(j, { children: [
6957
6961
  /* @__PURE__ */ i(v, { children: /* @__PURE__ */ i(
6958
6962
  rt,
6959
6963
  {
@@ -6983,15 +6987,15 @@ const os = $.div`
6983
6987
  messageEnd: u = "",
6984
6988
  statusStart: h = "pending",
6985
6989
  statusEnd: g = "pending"
6986
- } = e, [f, y] = Y(s), [m, T] = Y(l), [S, E] = Y(d), C = ({ target: F }) => {
6987
- y(F.checked), r && r(F.checked);
6988
- }, N = (F) => {
6989
- T(F.target.value), t(F);
6990
- }, A = (F) => {
6991
- E(F.target.value), n(F);
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);
6992
+ }, N = (V) => {
6993
+ T(V.target.value), t(V);
6994
+ }, A = (V) => {
6995
+ E(V.target.value), n(V);
6992
6996
  }, O = Se("(max-width: 400px)");
6993
- return /* @__PURE__ */ b(j, { children: [
6994
- /* @__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: [
6995
6999
  /* @__PURE__ */ i(
6996
7000
  D,
6997
7001
  {
@@ -7022,7 +7026,7 @@ const os = $.div`
7022
7026
  }
7023
7027
  )
7024
7028
  ] }),
7025
- /* @__PURE__ */ b(
7029
+ /* @__PURE__ */ y(
7026
7030
  v,
7027
7031
  {
7028
7032
  direction: O ? "column" : "row",
@@ -7072,14 +7076,14 @@ const os = $.div`
7072
7076
  termStartStatus: d,
7073
7077
  termEndStatus: p
7074
7078
  } = e;
7075
- return /* @__PURE__ */ i("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ b(v, { direction: "column", gap: "24px", children: [
7076
- jt({
7079
+ return /* @__PURE__ */ i("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ y(v, { direction: "column", gap: "24px", children: [
7080
+ Gt({
7077
7081
  condition: o,
7078
7082
  formik: t,
7079
7083
  isDecision: !0
7080
7084
  }),
7081
7085
  /* @__PURE__ */ i(K, { dashed: !0 }),
7082
- /* @__PURE__ */ i(os, { children: /* @__PURE__ */ i(is, { children: /* @__PURE__ */ b(
7086
+ /* @__PURE__ */ i(os, { children: /* @__PURE__ */ i(is, { children: /* @__PURE__ */ y(
7083
7087
  v,
7084
7088
  {
7085
7089
  direction: "column",
@@ -7087,7 +7091,7 @@ const os = $.div`
7087
7091
  gap: "16px",
7088
7092
  height: "272px",
7089
7093
  children: [
7090
- /* @__PURE__ */ b(
7094
+ /* @__PURE__ */ y(
7091
7095
  v,
7092
7096
  {
7093
7097
  justifyContent: "space-between",
@@ -7117,16 +7121,16 @@ const os = $.div`
7117
7121
  checked: !t.values.toggleNone && t.values.conditionsThatEstablishesTheDecision[u.conditionName] !== void 0,
7118
7122
  handleToggleChange: (h) => c(
7119
7123
  u.conditionName,
7120
- u.howToSetTheCondition === L.LIST_OF_VALUES_MULTI
7124
+ u.howToSetTheCondition === F.LIST_OF_VALUES_MULTI
7121
7125
  )(h.target.checked),
7122
- children: jt({ condition: u, formik: t })
7126
+ children: Gt({ condition: u, formik: t })
7123
7127
  },
7124
7128
  u.conditionName
7125
7129
  )) })
7126
7130
  ]
7127
7131
  }
7128
7132
  ) }) }),
7129
- n.terms && /* @__PURE__ */ b(j, { children: [
7133
+ n.terms && /* @__PURE__ */ y(j, { children: [
7130
7134
  /* @__PURE__ */ i(K, { dashed: !0 }),
7131
7135
  /* @__PURE__ */ i(
7132
7136
  ss,
@@ -7150,7 +7154,7 @@ const os = $.div`
7150
7154
  ] }),
7151
7155
  /* @__PURE__ */ i(K, {}),
7152
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." }),
7153
- /* @__PURE__ */ b(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
7157
+ /* @__PURE__ */ y(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
7154
7158
  /* @__PURE__ */ i(Z, { appearance: "gray", onClick: r, children: n.cancel }),
7155
7159
  /* @__PURE__ */ i(Z, { type: "submit", children: n.confirm })
7156
7160
  ] })
@@ -7180,7 +7184,7 @@ const os = $.div`
7180
7184
  visibleConditions: l,
7181
7185
  normalizedDecision: c,
7182
7186
  handleToggleNoneChange: s,
7183
- handleConditionToggleChange: (f, y) => (m) => {
7187
+ handleConditionToggleChange: (f, b) => (m) => {
7184
7188
  if (!m)
7185
7189
  o.setFieldValue(
7186
7190
  `conditionsThatEstablishesTheDecision.${f}`,
@@ -7191,7 +7195,7 @@ const os = $.div`
7191
7195
  !1
7192
7196
  );
7193
7197
  else {
7194
- const T = y ? [] : "";
7198
+ const T = b ? [] : "";
7195
7199
  o.setFieldValue(
7196
7200
  `conditionsThatEstablishesTheDecision.${f}`,
7197
7201
  T
@@ -7238,7 +7242,7 @@ const os = $.div`
7238
7242
  )
7239
7243
  } : n;
7240
7244
  });
7241
- }, je = {
7245
+ }, Ge = {
7242
7246
  item: {
7243
7247
  background: {
7244
7248
  active: k.palette.blue.B50,
@@ -7260,7 +7264,7 @@ const os = $.div`
7260
7264
  border: 1px solid
7261
7265
  ${({ theme: e, $active: t }) => {
7262
7266
  var n, r, a, o;
7263
- return t ? ((r = (n = e == null ? void 0 : e.border) == null ? void 0 : n.expanded) == null ? void 0 : r.color) || je.border.expanded.color : ((o = (a = e == null ? void 0 : e.border) == null ? void 0 : a.contracted) == null ? void 0 : o.color) || je.border.contracted.color;
7267
+ return t ? ((r = (n = e == null ? void 0 : e.border) == null ? void 0 : n.expanded) == null ? void 0 : r.color) || Ge.border.expanded.color : ((o = (a = e == null ? void 0 : e.border) == null ? void 0 : a.contracted) == null ? void 0 : o.color) || Ge.border.contracted.color;
7264
7268
  }};
7265
7269
  }
7266
7270
  &:hover {
@@ -7268,7 +7272,7 @@ const os = $.div`
7268
7272
  background-color: ${({ theme: e, $disabled: t }) => {
7269
7273
  var n, r, a;
7270
7274
  if (!t)
7271
- return ((a = (r = (n = e == null ? void 0 : e.menu) == null ? void 0 : n.item) == null ? void 0 : r.background) == null ? void 0 : a.hover) || je.item.background.hover;
7275
+ return ((a = (r = (n = e == null ? void 0 : e.menu) == null ? void 0 : n.item) == null ? void 0 : r.background) == null ? void 0 : a.hover) || Ge.item.background.hover;
7272
7276
  }};
7273
7277
  }
7274
7278
  `, sr = $.div`
@@ -7296,7 +7300,7 @@ const os = $.div`
7296
7300
  border-bottom: 1px solid
7297
7301
  ${({ theme: e, $active: t }) => {
7298
7302
  var n, r, a, o;
7299
- return t ? ((r = (n = e == null ? void 0 : e.border) == null ? void 0 : n.expanded) == null ? void 0 : r.color) || je.border.expanded.color : ((o = (a = e == null ? void 0 : e.border) == null ? void 0 : a.contracted) == null ? void 0 : o.color) || je.border.contracted.color;
7303
+ return t ? ((r = (n = e == null ? void 0 : e.border) == null ? void 0 : n.expanded) == null ? void 0 : r.color) || Ge.border.expanded.color : ((o = (a = e == null ? void 0 : e.border) == null ? void 0 : a.contracted) == null ? void 0 : o.color) || Ge.border.contracted.color;
7300
7304
  }};
7301
7305
  border-radius: 8px 8px 0 0;
7302
7306
  }
@@ -7305,7 +7309,7 @@ const os = $.div`
7305
7309
  text-decoration: none;
7306
7310
  background-color: ${({ theme: e, $active: t }) => {
7307
7311
  var n, r, a, o, s, c;
7308
- return t ? ((a = (r = (n = e == null ? void 0 : e.menu) == null ? void 0 : n.item) == null ? void 0 : r.background) == null ? void 0 : a.active) || je.item.background.active : ((c = (s = (o = e == null ? void 0 : e.menu) == null ? void 0 : o.item) == null ? void 0 : s.background) == null ? void 0 : c.inactive) || je.item.background.inactive;
7312
+ return t ? ((a = (r = (n = e == null ? void 0 : e.menu) == null ? void 0 : n.item) == null ? void 0 : r.background) == null ? void 0 : a.active) || Ge.item.background.active : ((c = (s = (o = e == null ? void 0 : e.menu) == null ? void 0 : o.item) == null ? void 0 : s.background) == null ? void 0 : c.inactive) || Ge.item.background.inactive;
7309
7313
  }};
7310
7314
  &:last-child {
7311
7315
  border-radius: 0 0 8px 8px;
@@ -7315,7 +7319,7 @@ const os = $.div`
7315
7319
  background-color: ${({ $active: e, theme: t, $disabled: n }) => {
7316
7320
  var r, a, o;
7317
7321
  if (!n && !e)
7318
- return ((o = (a = (r = t == null ? void 0 : t.menu) == null ? void 0 : r.item) == null ? void 0 : a.background) == null ? void 0 : o.hover) || je.item.background.hover;
7322
+ return ((o = (a = (r = t == null ? void 0 : t.menu) == null ? void 0 : r.item) == null ? void 0 : a.background) == null ? void 0 : o.hover) || Ge.item.background.hover;
7319
7323
  }};
7320
7324
  }
7321
7325
  `, ms = $.div`
@@ -7337,8 +7341,8 @@ const os = $.div`
7337
7341
  l && !await l(T, S) || d(T);
7338
7342
  },
7339
7343
  [d, l]
7340
- ), f = t || c ? "primary" : "dark", y = t || c ? "bold" : "normal", m = U.useId();
7341
- 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: [
7342
7346
  /* @__PURE__ */ i(
7343
7347
  fs,
7344
7348
  {
@@ -7353,7 +7357,7 @@ const os = $.div`
7353
7357
  path: s,
7354
7358
  label: a
7355
7359
  });
7356
- }, children: /* @__PURE__ */ b(
7360
+ }, children: /* @__PURE__ */ y(
7357
7361
  Ee,
7358
7362
  {
7359
7363
  alignItems: "center",
@@ -7377,13 +7381,13 @@ const os = $.div`
7377
7381
  cursorHover: !0,
7378
7382
  size: "small",
7379
7383
  type: "title",
7380
- weight: y,
7384
+ weight: b,
7381
7385
  children: a
7382
7386
  }
7383
7387
  ) })
7384
7388
  ]
7385
7389
  }
7386
- ) }) : /* @__PURE__ */ b(
7390
+ ) }) : /* @__PURE__ */ y(
7387
7391
  Ee,
7388
7392
  {
7389
7393
  alignItems: "center",
@@ -7414,7 +7418,7 @@ const os = $.div`
7414
7418
  cursorHover: !0,
7415
7419
  size: "small",
7416
7420
  type: "title",
7417
- weight: y,
7421
+ weight: b,
7418
7422
  onClick: r,
7419
7423
  children: a
7420
7424
  }
@@ -7430,7 +7434,7 @@ const os = $.div`
7430
7434
  const S = T.id === o;
7431
7435
  return /* @__PURE__ */ i(gs, { to: T.path, onClick: async (E) => {
7432
7436
  E.preventDefault(), E.stopPropagation(), await g(T.path, T);
7433
- }, children: /* @__PURE__ */ i(jr, { $active: S, children: /* @__PURE__ */ b(
7437
+ }, children: /* @__PURE__ */ i(jr, { $active: S, children: /* @__PURE__ */ y(
7434
7438
  v,
7435
7439
  {
7436
7440
  alignItems: "center",
@@ -7694,7 +7698,7 @@ function $s({
7694
7698
  }) {
7695
7699
  var l, d, p;
7696
7700
  if (!Ln) return;
7697
- dr || (dr = Bt(document, {
7701
+ dr || (dr = Ht(document, {
7698
7702
  dragover: Es,
7699
7703
  pointerdown: xs,
7700
7704
  pointerup: Cs,
@@ -7844,7 +7848,7 @@ function Xe(e, t, n) {
7844
7848
  const r = t.data.config.selectedClass;
7845
7849
  if (!n.selectedState) return;
7846
7850
  const a = Array.from(e);
7847
- Ge(
7851
+ Be(
7848
7852
  e.map((o) => o.el),
7849
7853
  r
7850
7854
  );
@@ -7854,7 +7858,7 @@ function Xe(e, t, n) {
7854
7858
  s !== -1 && n.selectedState.nodes.splice(s, 1);
7855
7859
  }
7856
7860
  }
7857
- function Vt(e, t, n, r, a = !1) {
7861
+ function _t(e, t, n, r, a = !1) {
7858
7862
  r.pointerSelection = a;
7859
7863
  for (const o of t)
7860
7864
  o.el.setAttribute("aria-selected", "true"), tt([o.el], e.data.config.selectedClass, !0);
@@ -7923,17 +7927,17 @@ function me(e) {
7923
7927
  return "synthDragging" in e && !!e.synthDragging;
7924
7928
  }
7925
7929
  function Ls(e, t) {
7926
- t.abortControllers.mainParent = Bt(e, {
7927
- dragover: _t(t.config.handleParentDragover),
7930
+ t.abortControllers.mainParent = Ht(e, {
7931
+ dragover: Mt(t.config.handleParentDragover),
7928
7932
  handleParentPointerover: t.config.handleParentPointerover,
7929
- scroll: _t(t.config.handleParentScroll),
7930
- drop: _t(t.config.handleParentDrop),
7933
+ scroll: Mt(t.config.handleParentScroll),
7934
+ drop: Mt(t.config.handleParentDrop),
7931
7935
  hasNestedParent: (n) => {
7932
7936
  const r = oe.get(n.target);
7933
7937
  r && (r.nestedParent = n.detail.parent);
7934
7938
  },
7935
- focus: _t(t.config.handleParentFocus)
7936
- }), 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(
7937
7941
  t.config.externalDragHandle.el,
7938
7942
  {
7939
7943
  pointerdown: (n) => {
@@ -7969,7 +7973,7 @@ function Ls(e, t) {
7969
7973
  function Fs(e) {
7970
7974
  var n;
7971
7975
  const t = e.parent.data.config;
7972
- e.node.data.abortControllers.mainNode = Bt(e.node.el, {
7976
+ e.node.data.abortControllers.mainNode = Ht(e.node.el, {
7973
7977
  keydown: pe(t.handleNodeKeydown),
7974
7978
  dragstart: pe(t.handleDragstart),
7975
7979
  dragover: pe(t.handleNodeDragover),
@@ -8190,7 +8194,7 @@ function Hs(e, t) {
8190
8194
  (p) => p.el === s.el
8191
8195
  ) === -1 ? r = [...t.selectedState.nodes, s] : r = t.selectedState.nodes.filter(
8192
8196
  (p) => p.el !== s.el
8193
- ) : r = [s], Vt(
8197
+ ) : r = [s], _t(
8194
8198
  e.targetData.parent,
8195
8199
  r,
8196
8200
  e.targetData.node,
@@ -8219,7 +8223,7 @@ function Hs(e, t) {
8219
8223
  else
8220
8224
  for (let p = 0; p <= s.data.index; p++)
8221
8225
  r.push(d[p]);
8222
- Vt(
8226
+ _t(
8223
8227
  e.targetData.parent,
8224
8228
  r,
8225
8229
  e.targetData.node,
@@ -8230,13 +8234,13 @@ function Hs(e, t) {
8230
8234
  }
8231
8235
  (l = (c = t.selectedState) == null ? void 0 : c.nodes) != null && l.length ? t.selectedState.nodes.findIndex(
8232
8236
  (p) => p.el === e.targetData.node.el
8233
- ) === -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(
8234
8238
  e.targetData.parent,
8235
8239
  r,
8236
8240
  e.targetData.node,
8237
8241
  t,
8238
8242
  !0
8239
- )) : Vt(
8243
+ )) : _t(
8240
8244
  e.targetData.parent,
8241
8245
  [e.targetData.node],
8242
8246
  e.targetData.node,
@@ -8249,7 +8253,7 @@ function qs(e, t, n, r = !1) {
8249
8253
  t.map((a) => a.el),
8250
8254
  r ? n.synthDraggingClass : n.draggingClass
8251
8255
  ), setTimeout(() => {
8252
- Ge(
8256
+ Be(
8253
8257
  t.map((a) => a.el),
8254
8258
  r ? n.synthDraggingClass : n.draggingClass
8255
8259
  ), tt(
@@ -8258,7 +8262,7 @@ function qs(e, t, n, r = !1) {
8258
8262
  ), tt(
8259
8263
  t.map((a) => a.el),
8260
8264
  r ? n.synthDropZoneClass : n.dropZoneClass
8261
- ), Ge(
8265
+ ), Be(
8262
8266
  t.map((a) => a.el),
8263
8267
  n.selectedClass
8264
8268
  );
@@ -8379,9 +8383,9 @@ function ed(e, t) {
8379
8383
  function td(e) {
8380
8384
  var p, u, h, g, f;
8381
8385
  e.draggedNode && (e.draggedNode.el.draggable = !0);
8382
- 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;
8383
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(() => {
8384
- Ge(t, o), Ge(t, s), Ge(t, c);
8388
+ Be(t, o), Be(t, s), Be(t, c);
8385
8389
  }), Xe(e.draggedNodes, e.currentParent, e), Je(e.currentParent, void 0, e);
8386
8390
  const d = { ...e };
8387
8391
  (f = a == null ? void 0 : a.onDragend) == null || f.call(a, {
@@ -8398,13 +8402,13 @@ function td(e) {
8398
8402
  function nd(e, t) {
8399
8403
  qe(e.e), !t.pointerSelection && t.selectedState && Xe(t.selectedState.nodes, e.targetData.parent, t);
8400
8404
  const n = e.targetData.parent.data.config;
8401
- t.pointerSelection = !1, "longPressTimeout" in t && t.longPressTimeout && clearTimeout(t.longPressTimeout), t.longPress = !1, Ge(
8405
+ t.pointerSelection = !1, "longPressTimeout" in t && t.longPressTimeout && clearTimeout(t.longPressTimeout), t.longPress = !1, Be(
8402
8406
  e.targetData.parent.data.enabledNodes.map((r) => r.el),
8403
8407
  n.longPressClass
8404
8408
  ), de(t) && n.handleEnd(t);
8405
8409
  }
8406
8410
  function rd(e, t, n, r, a, o) {
8407
- var f, y;
8411
+ var f, b;
8408
8412
  const s = t.data.config;
8409
8413
  let c, l;
8410
8414
  const d = [
@@ -8472,7 +8476,7 @@ function rd(e, t, n, r, a, o) {
8472
8476
  synthDragScrolling: !1,
8473
8477
  synthDragging: !0,
8474
8478
  rootScrollWidth: (f = document.scrollingElement) == null ? void 0 : f.scrollWidth,
8475
- rootScrollHeight: (y = document.scrollingElement) == null ? void 0 : y.scrollHeight
8479
+ rootScrollHeight: (b = document.scrollingElement) == null ? void 0 : b.scrollHeight
8476
8480
  };
8477
8481
  return Wr({
8478
8482
  ...Qr(
@@ -8498,7 +8502,7 @@ function wn(e, t = !0, n = !0) {
8498
8502
  function Kr(e, t = !1) {
8499
8503
  var p;
8500
8504
  const { x: n, y: r } = e.coordinates, a = e.startLeft ?? 0, o = e.startTop ?? 0, s = window.scrollX ?? 0, c = window.scrollY ?? 0, l = n - a + s, d = r - o + c;
8501
- e.clonedDraggedNode.style.transform = `translate3d(${l}px, ${d}px, 0px)`, t && (e.clonedDraggedNode.style.opacity = "1", Ge(
8505
+ e.clonedDraggedNode.style.transform = `translate3d(${l}px, ${d}px, 0px)`, t && (e.clonedDraggedNode.style.opacity = "1", Be(
8502
8506
  e.draggedNodes.map((u) => u.el),
8503
8507
  (p = e.initialParent.data.config) == null ? void 0 : p.longPressClass
8504
8508
  ));
@@ -8667,7 +8671,7 @@ function Qt(e, t) {
8667
8671
  targetNodes: "node" in e.targetData ? [e.targetData.node] : []
8668
8672
  }), t.currentParent = e.targetData.parent, t.transferred = !0);
8669
8673
  }
8670
- function _t(e) {
8674
+ function Mt(e) {
8671
8675
  function t(n) {
8672
8676
  const r = oe.get(n);
8673
8677
  if (r)
@@ -8716,7 +8720,7 @@ function pd(e, t, n, r = !1) {
8716
8720
  ) : e.classList.add(s);
8717
8721
  return n.privateClasses = o, n;
8718
8722
  }
8719
- function Ge(e, t) {
8723
+ function Be(e, t) {
8720
8724
  if (!t) return;
8721
8725
  const n = qr(t);
8722
8726
  if (n.length)
@@ -8734,7 +8738,7 @@ function Ge(e, t) {
8734
8738
  function ur(e, t, n, r, a) {
8735
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;
8736
8740
  if (c) {
8737
- 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]);
8738
8742
  return s ? {
8739
8743
  left: T && h < m * 0.075,
8740
8744
  right: S && h > m * (1 - 0.075)
@@ -8744,7 +8748,7 @@ function ur(e, t, n, r, a) {
8744
8748
  };
8745
8749
  }
8746
8750
  if ((f === "auto" || f === "scroll") && e !== document.body && e !== document.documentElement) {
8747
- 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;
8748
8752
  return s ? {
8749
8753
  left: S && h < g + m * 0.075,
8750
8754
  right: E && h > g + m * (1 - 0.075)
@@ -8766,8 +8770,8 @@ function hd(e, t, n, r) {
8766
8770
  n[l] !== void 0 && (cancelAnimationFrame(n[l]), n[l] = void 0);
8767
8771
  return;
8768
8772
  }
8769
- const p = a ? "scrollLeft" : "scrollTop", u = a ? "clientWidth" : "clientHeight", h = a ? "scrollWidth" : "scrollHeight", g = e[p], f = e[u], y = e[h];
8770
- 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)) {
8771
8775
  n[l] = void 0, n[c] = void 0;
8772
8776
  return;
8773
8777
  }
@@ -8843,7 +8847,7 @@ function gd(e) {
8843
8847
  function Jt(e) {
8844
8848
  return e instanceof HTMLElement && e.parentNode instanceof HTMLElement;
8845
8849
  }
8846
- function Bt(e, t) {
8850
+ function Ht(e, t) {
8847
8851
  const n = new AbortController();
8848
8852
  for (const r in t) {
8849
8853
  const a = t[r];
@@ -8865,18 +8869,18 @@ function md(e, t) {
8865
8869
  const n = fd(e);
8866
8870
  n && t(n);
8867
8871
  }
8868
- var Ht = /* @__PURE__ */ new WeakMap();
8872
+ var qt = /* @__PURE__ */ new WeakMap();
8869
8873
  function bd(e) {
8870
- const t = Ht.get(e);
8874
+ const t = qt.get(e);
8871
8875
  return t ? t[0] : (console.warn("No values found for parent element"), []);
8872
8876
  }
8873
8877
  function yd(e, t) {
8874
- const n = Ht.get(t);
8875
- 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]]);
8876
8880
  }
8877
8881
  function vd(e, t) {
8878
8882
  return (n) => {
8879
- 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 });
8880
8884
  };
8881
8885
  }
8882
8886
  function hr(e) {
@@ -8890,9 +8894,9 @@ function Td(e, t = {}) {
8890
8894
  function o(s = {}) {
8891
8895
  hr({ parent: n, state: [r, a], ...s });
8892
8896
  }
8893
- return Be(() => {
8897
+ return Pe(() => {
8894
8898
  hr({ parent: n, state: [r, a], ...t });
8895
- }, [r]), Be(() => () => {
8899
+ }, [r]), Pe(() => () => {
8896
8900
  n.current && Xr(n.current);
8897
8901
  }, []), [n, r, a, o];
8898
8902
  }
@@ -8939,7 +8943,7 @@ const gr = {
8939
8943
  { group: r }
8940
8944
  ), [u, h] = l ? [d, o] : p, [g, f] = U.useState(
8941
8945
  null
8942
- ), y = U.useRef(o);
8946
+ ), b = U.useRef(o);
8943
8947
  U.useEffect(() => {
8944
8948
  if (l) return;
8945
8949
  const C = (N) => {
@@ -8956,9 +8960,9 @@ const gr = {
8956
8960
  },
8957
8961
  [l]
8958
8962
  ), T = (C) => {
8959
- var F;
8963
+ var V;
8960
8964
  if (l) return;
8961
- const N = C.target, A = (F = N == null ? void 0 : N.closest) == null ? void 0 : F.call(N, "li.dnd-item"), O = (A == null ? void 0 : A.getAttribute("data-label")) || null;
8965
+ const N = C.target, A = (V = N == null ? void 0 : N.closest) == null ? void 0 : V.call(N, "li.dnd-item"), O = (A == null ? void 0 : A.getAttribute("data-label")) || null;
8962
8966
  O && (f(O), m(O));
8963
8967
  }, S = U.useCallback(() => {
8964
8968
  l || (f(null), m(null));
@@ -8971,7 +8975,7 @@ const gr = {
8971
8975
  };
8972
8976
  }, [S, l]), U.useEffect(() => {
8973
8977
  if (l) return;
8974
- const C = y.current;
8978
+ const C = b.current;
8975
8979
  if (h.length !== C.length && h.length === C.length + 1) {
8976
8980
  const N = new Set(C), A = h.find((O) => !N.has(O)) || null;
8977
8981
  if (A) {
@@ -8979,7 +8983,7 @@ const gr = {
8979
8983
  c == null || c({ item: A, from: O, to: n });
8980
8984
  }
8981
8985
  }
8982
- y.current = h;
8986
+ b.current = h;
8983
8987
  }, [h, n, c, l]);
8984
8988
  const E = h.length === 0;
8985
8989
  return /* @__PURE__ */ i(
@@ -9042,7 +9046,7 @@ const gr = {
9042
9046
  const { group: t = "clients", left: n, right: r, onMove: a, locked: o = !1 } = e, s = (c) => {
9043
9047
  o || a == null || a(c);
9044
9048
  };
9045
- return /* @__PURE__ */ b(
9049
+ return /* @__PURE__ */ y(
9046
9050
  v,
9047
9051
  {
9048
9052
  justifyContent: "space-between",
@@ -9128,7 +9132,7 @@ const gr = {
9128
9132
  }
9129
9133
  `, Rc = (e) => {
9130
9134
  const { handleBack: t, handleNext: n, disabledBack: r, disabledNext: a, textValues: o } = e;
9131
- return /* @__PURE__ */ b(Cd, { children: [
9135
+ return /* @__PURE__ */ y(Cd, { children: [
9132
9136
  /* @__PURE__ */ i(
9133
9137
  Z,
9134
9138
  {
@@ -9159,7 +9163,7 @@ const gr = {
9159
9163
  );
9160
9164
  }, Dd = (e) => Object.entries(e).map(([t, n]) => ({
9161
9165
  ConditionGroupId: t,
9162
- conditionsThatEstablishesTheDecision: Pt(n)
9166
+ conditionsThatEstablishesTheDecision: zt(n)
9163
9167
  })), Vc = (e) => {
9164
9168
  const t = Me(e);
9165
9169
  return {
@@ -9259,7 +9263,7 @@ const Ld = {
9259
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 || {});
9260
9264
  const Md = (e) => {
9261
9265
  const { onClick: t, icon: n, value: r } = e;
9262
- return /* @__PURE__ */ b(_d, { onClick: t, children: [
9266
+ return /* @__PURE__ */ y(_d, { onClick: t, children: [
9263
9267
  n && /* @__PURE__ */ i(
9264
9268
  v,
9265
9269
  {
@@ -9430,7 +9434,7 @@ const Ud = (e) => {
9430
9434
  padding: h = "0px",
9431
9435
  backgroundColor: g = xe.LIGHT,
9432
9436
  boxSizing: f,
9433
- borderColor: y = xe.LIGHT,
9437
+ borderColor: b = xe.LIGHT,
9434
9438
  overflowY: m,
9435
9439
  overflowX: T,
9436
9440
  boxShadow: S,
@@ -9454,7 +9458,7 @@ const Ud = (e) => {
9454
9458
  $padding: h,
9455
9459
  $backgroundColor: g,
9456
9460
  $boxSizing: f,
9457
- $borderColor: y,
9461
+ $borderColor: b,
9458
9462
  $borderRadius: d,
9459
9463
  $overflowY: m,
9460
9464
  $overflowX: T,
@@ -9486,7 +9490,7 @@ const Ud = (e) => {
9486
9490
  padding: p ? "8px" : "6px 16px",
9487
9491
  boxSizing: "border-box",
9488
9492
  backgroundColor: xe.GRAY,
9489
- children: /* @__PURE__ */ b(
9493
+ children: /* @__PURE__ */ y(
9490
9494
  Fe,
9491
9495
  {
9492
9496
  templateColumns: s === "column" ? "1fr" : "auto 1fr",
@@ -9649,8 +9653,8 @@ function Qd(e, t) {
9649
9653
  for (const [g, f] of h) {
9650
9654
  if (!ke(f) && !Array.isArray(f) && c(f))
9651
9655
  continue;
9652
- const y = n.has(g) ? p : Wd(p, g);
9653
- 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);
9654
9658
  }
9655
9659
  return;
9656
9660
  }
@@ -9781,8 +9785,8 @@ const tc = $.div`
9781
9785
  cursor: pointer;
9782
9786
  `, rc = (e) => {
9783
9787
  const { title: t, defaultOpen: n = !0, children: r } = e, [a, o] = Y(n);
9784
- return /* @__PURE__ */ b(tc, { children: [
9785
- /* @__PURE__ */ b(nc, { onClick: () => {
9788
+ return /* @__PURE__ */ y(tc, { children: [
9789
+ /* @__PURE__ */ y(nc, { onClick: () => {
9786
9790
  o(!a);
9787
9791
  }, children: [
9788
9792
  /* @__PURE__ */ i(
@@ -9807,7 +9811,7 @@ const tc = $.div`
9807
9811
  }
9808
9812
  )
9809
9813
  ] }),
9810
- a && /* @__PURE__ */ b(j, { children: [
9814
+ a && /* @__PURE__ */ y(j, { children: [
9811
9815
  /* @__PURE__ */ i(K, { dashed: !0 }),
9812
9816
  r
9813
9817
  ] })
@@ -9926,8 +9930,8 @@ function ac(e) {
9926
9930
  id: `${a}[${p}].${g}`,
9927
9931
  label: he(g),
9928
9932
  value: (f) => {
9929
- var y, m;
9930
- 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];
9931
9935
  },
9932
9936
  render: (f) => Te(f)
9933
9937
  }))
@@ -9981,12 +9985,12 @@ function ac(e) {
9981
9985
  variant: "lightCard",
9982
9986
  columns: { mobile: "1fr", desktop: "repeat(2, 1fr)" }
9983
9987
  },
9984
- items: f.map((y) => ({
9985
- id: `${a}.values[${h}].${y}`,
9986
- label: he(y),
9988
+ items: f.map((b) => ({
9989
+ id: `${a}.values[${h}].${b}`,
9990
+ label: he(b),
9987
9991
  value: (m) => {
9988
9992
  var T, S, E;
9989
- 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];
9990
9994
  },
9991
9995
  render: (m) => Te(m)
9992
9996
  }))
@@ -10077,17 +10081,17 @@ function ac(e) {
10077
10081
  }) };
10078
10082
  }
10079
10083
  function oc(e, t) {
10080
- return Yt(() => t ?? ac(e), [t, e]);
10084
+ return Ct(() => t ?? ac(e), [t, e]);
10081
10085
  }
10082
10086
  function _c(e) {
10083
- 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) => {
10084
10088
  const u = p.nodes.map((h) => vr(h, c, l)).filter((h) => h != null && h !== !1);
10085
10089
  return {
10086
10090
  ...p,
10087
10091
  renderedNodes: u
10088
10092
  };
10089
10093
  }).filter((p) => p.renderedNodes.length > 0);
10090
- 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(
10091
10095
  v,
10092
10096
  {
10093
10097
  direction: "column",
@@ -10112,7 +10116,7 @@ function _c(e) {
10112
10116
  }
10113
10117
  export {
10114
10118
  Rc as BackAndNextButton,
10115
- Dt as BusinessRuleCard,
10119
+ Nt as BusinessRuleCard,
10116
10120
  _r as BusinessRuleCardNew,
10117
10121
  Rn as BusinessRuleView,
10118
10122
  Pr as BusinessRuleViewNew,
@@ -10120,16 +10124,16 @@ export {
10120
10124
  wc as BusinessRulesNew,
10121
10125
  Tc as BusinessRulesWithGroup,
10122
10126
  Rr as Checkpicker,
10123
- jt as DecisionConditionRender,
10127
+ Gt as DecisionConditionRender,
10124
10128
  Un as DecisionConditionRenderNew,
10125
10129
  et as DecisionViewConditionRenderer,
10126
- Ot as DecisionViewConditionRendererNew,
10130
+ Rt as DecisionViewConditionRendererNew,
10127
10131
  Ic as DragAndDropBoxes,
10128
10132
  fr as DraggableList,
10129
10133
  bs as DropdownMenu,
10130
10134
  kc as DropdownMenuContainer,
10131
10135
  kr as DynamicField,
10132
- Gt as DynamicFieldNew,
10136
+ Bt as DynamicFieldNew,
10133
10137
  $o as DynamicViewField,
10134
10138
  Po as DynamicViewFieldNew,
10135
10139
  We as EFieldType,
@@ -10158,13 +10162,13 @@ export {
10158
10162
  Mr as filterByGroup,
10159
10163
  Lc as flatFromGroups,
10160
10164
  Cc as formatDecisionForBackend,
10161
- ze as formatValue,
10165
+ Ue as formatValue,
10162
10166
  Me as getConditionsByGroupNew,
10163
10167
  Dd as groupsRecordToArrayNew,
10164
10168
  Fc as mapByGroupNew,
10165
10169
  Vc as normalizeDecisionToNewShape,
10166
- zt as parseCurrencyString,
10167
- Ut as parsePercentageString,
10170
+ Ut as parseCurrencyString,
10171
+ jt as parsePercentageString,
10168
10172
  Dc as parseRangeFromString,
10169
10173
  Ea as percentageFormat,
10170
10174
  Nc as revertSortedDataSampleSwitchPlaces,