@isettingkit/business-rules 2.2.20 → 2.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.es.js +782 -786
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,17 +1,17 @@
1
- import { jsx as a, jsxs as b, Fragment as V } from "react/jsx-runtime";
2
- import { MdOutlineDelete as yt, MdClear as Qt, MdAdd as Ke, MdOutlineCreate as lr, MdExpandLess as sr, MdExpandMore as _t, MdInfo as dr, MdCached as cr, MdOutlineInfo as ur, MdClose as pr, MdOutlineFilterAltOff as hr, MdOutlineFilterAlt as _n, MdChevronRight as un, MdArrowRight as gr, MdOutlineArrowCircleLeft as fr, MdOutlineArrowCircleRight as mr, MdKeyboardArrowUp as br, MdKeyboardArrowDown as vr, MdOutlineArrowBack as yr } from "react-icons/md";
3
- import { inube as A, Stack as T, Divider as W, Icon as B, Text as R, SkeletonLine as ie, useMediaQuery as ae, Blanket as Jt, Button as Y, Grid as Se, Toggle as Tt, Checkbox as Zt, Date as Fe, Box as Tr, Tag as He, Tabs as Vn, SkeletonIcon as xr, Fieldset as Be, OptionList as wr, Checkpicker as Sr } from "@inubekit/inubekit";
4
- import N, { keyframes as Kt, ThemeContext as Cr } from "styled-components";
5
- import { ValueDataType as H, ValueHowToSetUp as P, DecisionConditionRender as ft, DecisionConditionRenderNew as pn } from "@isettingkit/input";
6
- import { DecisionViewConditionRenderer as Re, DecisionViewConditionRendererNew as st } from "@isettingkit/view";
7
- import { createPortal as en } from "react-dom";
8
- import { useFormik as tn } from "formik";
9
- import { string as be, mixed as we, object as Q, number as ge, lazy as Qe, date as Le } from "yup";
10
- import _, { useState as q, useRef as qe, useEffect as Je, useContext as Dr, useMemo as Pn } from "react";
1
+ import { jsx as a, jsxs as b, Fragment as _ } from "react/jsx-runtime";
2
+ import { MdOutlineDelete as vt, MdClear as Xt, MdAdd as Ke, MdOutlineCreate as lr, MdExpandLess as sr, MdExpandMore as jt, MdInfo as dr, MdCached as cr, MdOutlineInfo as ur, MdClose as pr, MdOutlineFilterAltOff as hr, MdOutlineFilterAlt as _n, MdChevronRight as un, MdArrowRight as gr, MdOutlineArrowCircleLeft as fr, MdOutlineArrowCircleRight as mr, MdKeyboardArrowUp as br, MdKeyboardArrowDown as vr, MdOutlineArrowBack as yr } from "react-icons/md";
3
+ import { inube as A, Stack as T, Divider as W, Icon as B, Text as R, SkeletonLine as oe, useMediaQuery as ie, Blanket as Qt, Button as Y, Grid as we, Toggle as yt, Checkbox as Jt, Date as Fe, Box as Tr, Tag as He, Tabs as Vn, SkeletonIcon as xr, Fieldset as Be, OptionList as wr, Checkpicker as Sr } from "@inubekit/inubekit";
4
+ import E, { keyframes as Zt, ThemeContext as Cr } from "styled-components";
5
+ import { ValueDataType as H, ValueHowToSetUp as P, DecisionConditionRender as gt, DecisionConditionRenderNew as pn } from "@isettingkit/input";
6
+ import { DecisionViewConditionRenderer as Re, DecisionViewConditionRendererNew as lt } from "@isettingkit/view";
7
+ import { createPortal as Kt } from "react-dom";
8
+ import { useFormik as en } from "formik";
9
+ import { string as me, mixed as xe, object as X, number as ge, lazy as Qe, date as Le } from "yup";
10
+ import j, { useState as q, useRef as qe, useEffect as Je, useContext as Dr, useMemo as Pn } from "react";
11
11
  import { Link as Un, useNavigate as Nr, useLocation as Er } from "react-router-dom";
12
12
  import kr from "axios";
13
13
  import { franc as Ar } from "franc-min";
14
- const $r = N.div`
14
+ const $r = E.div`
15
15
  border-radius: 8px;
16
16
  border: 1px solid
17
17
  ${({ theme: e }) => {
@@ -27,7 +27,7 @@ const $r = N.div`
27
27
  height: 100%;
28
28
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
29
29
  `;
30
- N.div`
30
+ E.div`
31
31
  width: 100%;
32
32
  height: 100%;
33
33
  overflow-y: auto;
@@ -50,7 +50,7 @@ const et = (e) => {
50
50
  const { children: t, controls: n = !0, handleDelete: r, id: o } = e;
51
51
  return /* @__PURE__ */ a($r, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "16px", padding: "12px 16px", children: [
52
52
  t,
53
- n && /* @__PURE__ */ b(V, { children: [
53
+ n && /* @__PURE__ */ b(_, { children: [
54
54
  /* @__PURE__ */ a(W, {}),
55
55
  /* @__PURE__ */ a(T, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ a(
56
56
  B,
@@ -58,7 +58,7 @@ const et = (e) => {
58
58
  cursorHover: !0,
59
59
  appearance: "danger",
60
60
  size: "24px",
61
- icon: /* @__PURE__ */ a(yt, {}),
61
+ icon: /* @__PURE__ */ a(vt, {}),
62
62
  onClick: () => {
63
63
  r(o);
64
64
  }
@@ -81,7 +81,7 @@ const _r = {
81
81
  }, We = (e) => {
82
82
  const t = e == null ? void 0 : e.value, n = typeof t == "object" && t !== null && !Array.isArray(t), r = _r[e == null ? void 0 : e.howToSetTheDecision] || Ir;
83
83
  return n && r(t) || t || void 0;
84
- }, hn = N.div`
84
+ }, hn = E.div`
85
85
  & > div {
86
86
  border-radius: 8px;
87
87
  border: 1px solid
@@ -90,7 +90,7 @@ const _r = {
90
90
  return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
91
91
  }};
92
92
  }
93
- `, gn = N.div`
93
+ `, gn = E.div`
94
94
  width: 100%;
95
95
  height: 100%;
96
96
  overflow-y: auto;
@@ -161,7 +161,7 @@ const _r = {
161
161
  }
162
162
  ) }) }, p.conditionName)),
163
163
  s.length > 0 && /* @__PURE__ */ a(W, { dashed: !0 }),
164
- u && /* @__PURE__ */ a(V, { children: r && /* @__PURE__ */ a(
164
+ u && /* @__PURE__ */ a(_, { children: r && /* @__PURE__ */ a(
165
165
  Re,
166
166
  {
167
167
  element: r.element,
@@ -175,12 +175,12 @@ const _r = {
175
175
  ) })
176
176
  ] }) : /* @__PURE__ */ b(T, { direction: "column", gap: "12px", children: [
177
177
  /* @__PURE__ */ b(T, { direction: "column", alignItems: "center", gap: "4px", children: [
178
- /* @__PURE__ */ a(ie, { animated: !0, width: "180px" }),
179
- /* @__PURE__ */ a(ie, { animated: !0, width: "85px" })
178
+ /* @__PURE__ */ a(oe, { animated: !0, width: "180px" }),
179
+ /* @__PURE__ */ a(oe, { animated: !0, width: "85px" })
180
180
  ] }, "loading"),
181
181
  /* @__PURE__ */ b(T, { direction: "column", gap: "12px", alignItems: "center", children: [
182
182
  /* @__PURE__ */ a(W, { dashed: !0 }),
183
- /* @__PURE__ */ a(ie, { animated: !0, width: "150px" })
183
+ /* @__PURE__ */ a(oe, { animated: !0, width: "150px" })
184
184
  ] }),
185
185
  /* @__PURE__ */ a(gn, { children: /* @__PURE__ */ a(
186
186
  T,
@@ -197,15 +197,15 @@ const _r = {
197
197
  alignItems: "start",
198
198
  padding: "8px",
199
199
  children: [
200
- /* @__PURE__ */ a(ie, { animated: !0, width: "180px" }),
201
- /* @__PURE__ */ a(ie, { animated: !0, width: "85px" })
200
+ /* @__PURE__ */ a(oe, { animated: !0, width: "180px" }),
201
+ /* @__PURE__ */ a(oe, { animated: !0, width: "85px" })
202
202
  ]
203
203
  }
204
204
  ) }, `condition-${d}`))
205
205
  }
206
206
  ) })
207
207
  ] });
208
- }, nn = (e) => {
208
+ }, tn = (e) => {
209
209
  var h;
210
210
  const { decision: t, loading: n = !1, textValues: r } = e, o = !!(t != null && t.effectiveFrom), i = !!(t != null && t.validUntil), c = o && i ? {
211
211
  element: {
@@ -258,12 +258,12 @@ const _r = {
258
258
  visibleConditions: l
259
259
  }
260
260
  );
261
- }, Pr = N.div`
261
+ }, Pr = E.div`
262
262
  position: relative;
263
263
  & > div {
264
264
  padding: 24px 16px;
265
265
  }
266
- `, Ur = N.div`
266
+ `, Ur = E.div`
267
267
  background-color: ${({ theme: e }) => {
268
268
  var t, n;
269
269
  return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N0) || A.palette.neutral.N0;
@@ -300,18 +300,18 @@ const _r = {
300
300
  throw new Error(
301
301
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
302
302
  );
303
- const c = ae("(max-width: 400px)");
304
- return en(
305
- /* @__PURE__ */ a(Pr, { smallScreen: c, children: /* @__PURE__ */ a(Jt, { children: /* @__PURE__ */ a(Ur, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
303
+ const c = ie("(max-width: 400px)");
304
+ return Kt(
305
+ /* @__PURE__ */ a(Pr, { smallScreen: c, children: /* @__PURE__ */ a(Qt, { children: /* @__PURE__ */ a(Ur, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
306
306
  /* @__PURE__ */ a(T, { direction: "column", gap: "24px", children: /* @__PURE__ */ b(T, { alignItems: "center", justifyContent: "space-between", children: [
307
307
  /* @__PURE__ */ a(R, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
308
- /* @__PURE__ */ a(Qt, { size: "24px", cursor: "pointer", onClick: r })
308
+ /* @__PURE__ */ a(Xt, { size: "24px", cursor: "pointer", onClick: r })
309
309
  ] }) }),
310
310
  t
311
311
  ] }) }) }) }),
312
312
  i
313
313
  );
314
- }, Gr = Kt`
314
+ }, Gr = Zt`
315
315
  from {
316
316
  opacity: 0;
317
317
  transform: translateY(20px);
@@ -321,7 +321,7 @@ const _r = {
321
321
  transform: translateY(0);
322
322
  }
323
323
  `;
324
- N.div`
324
+ E.div`
325
325
  border-radius: 8px;
326
326
  border: 1px solid
327
327
  ${({ theme: e }) => {
@@ -335,7 +335,7 @@ N.div`
335
335
  height: 100%;
336
336
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
337
337
  `;
338
- N.div`
338
+ E.div`
339
339
  & > div {
340
340
  border-radius: 8px;
341
341
  border: 1px solid
@@ -345,7 +345,7 @@ N.div`
345
345
  }};
346
346
  }
347
347
  `;
348
- const zn = N.div`
348
+ const zn = E.div`
349
349
  & > div {
350
350
  background-color: ${({ theme: e }) => {
351
351
  var t, n;
@@ -358,18 +358,18 @@ const zn = N.div`
358
358
  height: 100%;
359
359
  padding-bottom: 12px;
360
360
  cursor: pointer;
361
- `, tt = N.div`
361
+ `, tt = E.div`
362
362
  width: 100%;
363
363
  height: 100%;
364
364
  & > div {
365
365
  animation: ${Gr} 600ms ease-out;
366
366
  }
367
- `, zr = N.div`
367
+ `, zr = E.div`
368
368
  & > div > div {
369
369
  border-radius: 8px;
370
370
  box-sizing: border-box;
371
371
  }
372
- `, Hr = N.div`
372
+ `, Hr = E.div`
373
373
  & > div {
374
374
  width: 100%;
375
375
  height: 100%;
@@ -399,7 +399,7 @@ const zn = N.div`
399
399
  },
400
400
  handleView: () => n ? n() : null,
401
401
  controls: !1,
402
- children: /* @__PURE__ */ a(nn, { loading: !0 })
402
+ children: /* @__PURE__ */ a(tn, { loading: !0 })
403
403
  },
404
404
  `loading-card-${t}`
405
405
  );
@@ -414,7 +414,7 @@ const zn = N.div`
414
414
  handleDelete: () => o ? o(t.decisionId) : null,
415
415
  handleView: () => r ? r(t) : null,
416
416
  controls: n,
417
- children: /* @__PURE__ */ a(nn, { decision: t, textValues: i })
417
+ children: /* @__PURE__ */ a(tn, { decision: t, textValues: i })
418
418
  }
419
419
  )
420
420
  ] }) }, t.decisionId) : null;
@@ -452,7 +452,7 @@ const zn = N.div`
452
452
  loading: Br,
453
453
  decision: qr,
454
454
  add: Wr
455
- }, Vt = (e) => {
455
+ }, _t = (e) => {
456
456
  const { type: t } = e, n = Yr[t];
457
457
  return n ? n(e) : null;
458
458
  }, Xr = (e) => {
@@ -465,7 +465,7 @@ const zn = N.div`
465
465
  handleDelete: c,
466
466
  textValues: u
467
467
  } = e, l = o ? Array.from({ length: 3 }).map(
468
- (p, d) => Vt({
468
+ (p, d) => _t({
469
469
  type: "loading",
470
470
  index: d,
471
471
  controls: t,
@@ -476,7 +476,7 @@ const zn = N.div`
476
476
  textValues: u
477
477
  })
478
478
  ) : r == null ? void 0 : r.map(
479
- (p) => Vt({
479
+ (p) => _t({
480
480
  type: "decision",
481
481
  decision: p,
482
482
  controls: t,
@@ -504,7 +504,7 @@ const zn = N.div`
504
504
  handleSubmitForm: h,
505
505
  handleDelete: g,
506
506
  terms: f = !0
507
- } = e, m = ae("(max-width: 681px)"), v = ae("(max-width: 400px)"), { renderedCards: x, shouldRenderAddCard: w } = Xr({
507
+ } = e, m = ie("(max-width: 681px)"), v = ie("(max-width: 400px)"), { renderedCards: x, shouldRenderAddCard: w } = Xr({
508
508
  controls: t,
509
509
  customTitleContentAddCard: n,
510
510
  decisions: o,
@@ -512,9 +512,9 @@ const zn = N.div`
512
512
  handleOpenModal: p,
513
513
  handleDelete: g,
514
514
  textValues: i
515
- }), S = (o == null ? void 0 : o.length) === 0 && !s;
516
- return /* @__PURE__ */ b(V, { children: [
517
- /* @__PURE__ */ a(zr, { children: /* @__PURE__ */ a(Hr, { children: /* @__PURE__ */ a(T, { direction: "column", gap: "16px", padding: "6px", children: S ? /* @__PURE__ */ b(
515
+ }), C = (o == null ? void 0 : o.length) === 0 && !s;
516
+ return /* @__PURE__ */ b(_, { children: [
517
+ /* @__PURE__ */ a(zr, { children: /* @__PURE__ */ a(Hr, { children: /* @__PURE__ */ a(T, { direction: "column", gap: "16px", padding: "6px", children: C ? /* @__PURE__ */ b(
518
518
  T,
519
519
  {
520
520
  direction: "column",
@@ -524,7 +524,7 @@ const zn = N.div`
524
524
  justifyContent: "center",
525
525
  alignItems: "center",
526
526
  children: [
527
- /* @__PURE__ */ a(R, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ b(V, { children: [
527
+ /* @__PURE__ */ a(R, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ b(_, { children: [
528
528
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
529
529
  /* @__PURE__ */ b(
530
530
  R,
@@ -554,7 +554,7 @@ const zn = N.div`
554
554
  ]
555
555
  }
556
556
  ) : /* @__PURE__ */ b(
557
- Se,
557
+ we,
558
558
  {
559
559
  templateColumns: v ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
560
560
  autoFlow: "row dense",
@@ -567,7 +567,7 @@ const zn = N.div`
567
567
  height: m ? "auto" : "484px",
568
568
  children: [
569
569
  x,
570
- w && Vt({
570
+ w && _t({
571
571
  type: "add",
572
572
  index: o == null ? void 0 : o.length,
573
573
  controls: t,
@@ -577,7 +577,7 @@ const zn = N.div`
577
577
  handleOpenModal: p,
578
578
  handleDelete: g,
579
579
  textValues: i,
580
- shouldRenderEmptyMessage: S,
580
+ shouldRenderEmptyMessage: C,
581
581
  terms: f
582
582
  })
583
583
  ]
@@ -602,12 +602,12 @@ const zn = N.div`
602
602
  }
603
603
  )
604
604
  ] });
605
- }, Qr = N.div`
605
+ }, Qr = E.div`
606
606
  position: relative;
607
607
  & > div {
608
608
  padding: 24px 16px;
609
609
  }
610
- `, Jr = N.div`
610
+ `, Jr = E.div`
611
611
  background-color: ${({ theme: e }) => {
612
612
  var t, n;
613
613
  return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N0) || A.palette.neutral.N0;
@@ -644,18 +644,18 @@ const zn = N.div`
644
644
  throw new Error(
645
645
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
646
646
  );
647
- const c = ae("(max-width: 400px)");
648
- return en(
649
- /* @__PURE__ */ a(Qr, { $smallScreen: c, children: /* @__PURE__ */ a(Jt, { children: /* @__PURE__ */ a(Jr, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
647
+ const c = ie("(max-width: 400px)");
648
+ return Kt(
649
+ /* @__PURE__ */ a(Qr, { $smallScreen: c, children: /* @__PURE__ */ a(Qt, { children: /* @__PURE__ */ a(Jr, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
650
650
  /* @__PURE__ */ a(T, { direction: "column", gap: "24px", children: /* @__PURE__ */ b(T, { alignItems: "center", justifyContent: "space-between", children: [
651
651
  /* @__PURE__ */ a(R, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
652
- /* @__PURE__ */ a(Qt, { size: "24px", cursor: "pointer", onClick: r })
652
+ /* @__PURE__ */ a(Xt, { size: "24px", cursor: "pointer", onClick: r })
653
653
  ] }) }),
654
654
  t
655
655
  ] }) }) }) }),
656
656
  i
657
657
  );
658
- }, Kr = Kt`
658
+ }, Kr = Zt`
659
659
  from {
660
660
  opacity: 0;
661
661
  transform: translateY(20px);
@@ -665,7 +665,7 @@ const zn = N.div`
665
665
  transform: translateY(0);
666
666
  }
667
667
  `;
668
- N.div`
668
+ E.div`
669
669
  border-radius: 8px;
670
670
  border: 1px solid
671
671
  ${({ theme: e }) => {
@@ -679,7 +679,7 @@ N.div`
679
679
  height: 100%;
680
680
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
681
681
  `;
682
- N.div`
682
+ E.div`
683
683
  & > div {
684
684
  border-radius: 8px;
685
685
  border: 1px solid
@@ -689,7 +689,7 @@ N.div`
689
689
  }};
690
690
  }
691
691
  `;
692
- N.div`
692
+ E.div`
693
693
  & > div {
694
694
  background-color: ${({ theme: e }) => {
695
695
  var t, n;
@@ -703,19 +703,19 @@ N.div`
703
703
  padding-bottom: 12px;
704
704
  cursor: pointer;
705
705
  `;
706
- N.div`
706
+ E.div`
707
707
  width: 100%;
708
708
  height: 100%;
709
709
  & > div {
710
710
  animation: ${Kr} 600ms ease-out;
711
711
  }
712
712
  `;
713
- const eo = N.div`
713
+ const eo = E.div`
714
714
  & > div > div {
715
715
  border-radius: 8px;
716
716
  box-sizing: border-box;
717
717
  }
718
- `, to = N.div`
718
+ `, to = E.div`
719
719
  & > div {
720
720
  width: 100%;
721
721
  height: 100%;
@@ -745,7 +745,7 @@ const eo = N.div`
745
745
  },
746
746
  handleView: () => n ? n() : null,
747
747
  controls: !1,
748
- children: /* @__PURE__ */ a(nn, { loading: !0 })
748
+ children: /* @__PURE__ */ a(tn, { loading: !0 })
749
749
  },
750
750
  `loading-card-${t}`
751
751
  );
@@ -762,7 +762,7 @@ const eo = N.div`
762
762
  }, Ye = (e) => {
763
763
  const t = e == null ? void 0 : e.value, n = typeof t == "object" && t !== null && !Array.isArray(t), r = uo[e == null ? void 0 : e.howToSetTheDecision] || ro;
764
764
  return n && r(t) || t || void 0;
765
- }, fn = N.div`
765
+ }, fn = E.div`
766
766
  & > div {
767
767
  border-radius: 8px;
768
768
  border: 1px solid
@@ -771,7 +771,7 @@ const eo = N.div`
771
771
  return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
772
772
  }};
773
773
  }
774
- `, mn = N.div`
774
+ `, mn = E.div`
775
775
  width: 100%;
776
776
  height: 100%;
777
777
  overflow-y: auto;
@@ -842,7 +842,7 @@ const eo = N.div`
842
842
  }
843
843
  ) }) }, p.conditionName)),
844
844
  s.length > 0 && /* @__PURE__ */ a(W, { dashed: !0 }),
845
- u && /* @__PURE__ */ a(V, { children: r && /* @__PURE__ */ a(
845
+ u && /* @__PURE__ */ a(_, { children: r && /* @__PURE__ */ a(
846
846
  Re,
847
847
  {
848
848
  element: r.element,
@@ -856,12 +856,12 @@ const eo = N.div`
856
856
  ) })
857
857
  ] }) : /* @__PURE__ */ b(T, { direction: "column", gap: "12px", children: [
858
858
  /* @__PURE__ */ b(T, { direction: "column", alignItems: "center", gap: "4px", children: [
859
- /* @__PURE__ */ a(ie, { animated: !0, width: "180px" }),
860
- /* @__PURE__ */ a(ie, { animated: !0, width: "85px" })
859
+ /* @__PURE__ */ a(oe, { animated: !0, width: "180px" }),
860
+ /* @__PURE__ */ a(oe, { animated: !0, width: "85px" })
861
861
  ] }, "loading"),
862
862
  /* @__PURE__ */ b(T, { direction: "column", gap: "12px", alignItems: "center", children: [
863
863
  /* @__PURE__ */ a(W, { dashed: !0 }),
864
- /* @__PURE__ */ a(ie, { animated: !0, width: "150px" })
864
+ /* @__PURE__ */ a(oe, { animated: !0, width: "150px" })
865
865
  ] }),
866
866
  /* @__PURE__ */ a(mn, { children: /* @__PURE__ */ a(
867
867
  T,
@@ -878,8 +878,8 @@ const eo = N.div`
878
878
  alignItems: "start",
879
879
  padding: "8px",
880
880
  children: [
881
- /* @__PURE__ */ a(ie, { animated: !0, width: "180px" }),
882
- /* @__PURE__ */ a(ie, { animated: !0, width: "85px" })
881
+ /* @__PURE__ */ a(oe, { animated: !0, width: "180px" }),
882
+ /* @__PURE__ */ a(oe, { animated: !0, width: "85px" })
883
883
  ]
884
884
  }
885
885
  ) }, `condition-${d}`))
@@ -939,7 +939,7 @@ const eo = N.div`
939
939
  visibleConditions: l
940
940
  }
941
941
  );
942
- }, mo = N.div`
942
+ }, mo = E.div`
943
943
  border-radius: 8px;
944
944
  border: 1px solid
945
945
  ${({ theme: e }) => {
@@ -955,7 +955,7 @@ const eo = N.div`
955
955
  height: 100%;
956
956
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
957
957
  `;
958
- N.div`
958
+ E.div`
959
959
  width: 100%;
960
960
  height: 100%;
961
961
  overflow-y: auto;
@@ -978,7 +978,7 @@ const bo = (e) => {
978
978
  const { children: t, controls: n = !0, handleDelete: r, id: o } = e;
979
979
  return /* @__PURE__ */ a(mo, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "16px", padding: "12px 16px", children: [
980
980
  t,
981
- n && /* @__PURE__ */ b(V, { children: [
981
+ n && /* @__PURE__ */ b(_, { children: [
982
982
  /* @__PURE__ */ a(W, {}),
983
983
  /* @__PURE__ */ a(T, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ a(
984
984
  B,
@@ -986,7 +986,7 @@ const bo = (e) => {
986
986
  cursorHover: !0,
987
987
  appearance: "danger",
988
988
  size: "24px",
989
- icon: /* @__PURE__ */ a(yt, {}),
989
+ icon: /* @__PURE__ */ a(vt, {}),
990
990
  onClick: () => {
991
991
  r(o);
992
992
  }
@@ -1051,18 +1051,18 @@ const bo = (e) => {
1051
1051
  loading: no,
1052
1052
  decision: vo,
1053
1053
  add: yo
1054
- }, Pt = (e) => {
1054
+ }, Vt = (e) => {
1055
1055
  const { type: t } = e, n = To[t];
1056
1056
  return n ? n(e) : null;
1057
1057
  }, xo = (e) => ({
1058
- schema: be().required("Requerido").test(
1058
+ schema: me().required("Requerido").test(
1059
1059
  "non-empty",
1060
1060
  "El valor no puede estar vacío",
1061
1061
  (t) => t != null && t.trim() !== ""
1062
1062
  ),
1063
1063
  value: e
1064
1064
  }), wo = (e) => ({
1065
- schema: we().test(
1065
+ schema: xe().test(
1066
1066
  "isArrayOrString",
1067
1067
  "Debe ser un array de strings/numbers o un solo string",
1068
1068
  (t) => Array.isArray(t) ? t.every(
@@ -1071,7 +1071,7 @@ const bo = (e) => {
1071
1071
  ),
1072
1072
  value: e
1073
1073
  }), So = (e) => ({
1074
- schema: we().test(
1074
+ schema: xe().test(
1075
1075
  "isArrayOrString",
1076
1076
  "Debe ser un array de strings/numbers o un solo string ",
1077
1077
  (t) => Array.isArray(t) ? t.every(
@@ -1082,7 +1082,7 @@ const bo = (e) => {
1082
1082
  }), Co = (e) => {
1083
1083
  const t = (e == null ? void 0 : e.from) ?? 0, n = (e == null ? void 0 : e.to) ?? 0;
1084
1084
  return {
1085
- schema: Q({
1085
+ schema: X({
1086
1086
  from: ge().required("El campo 'Rango desde' es requerido").max(n, "'Rango desde' no puede ser mayor que 'Rango hasta'").min(0, "'Rango desde' no puede ser menor que 0"),
1087
1087
  to: ge().min(0, "El campo 'Rango hasta' debe ser mayor o igual a 0").required("El campo 'Rango hasta' es requerido").test(
1088
1088
  "is-greater",
@@ -1095,27 +1095,27 @@ const bo = (e) => {
1095
1095
  }),
1096
1096
  value: { from: t, to: n }
1097
1097
  };
1098
- }, Rt = (e, t) => t === H.PERCENTAGE ? {
1098
+ }, It = (e, t) => t === H.PERCENTAGE ? {
1099
1099
  schema: ge().required("El campo tipo porcentaje es requerido").min(0, "El campo tipo porcentaje no puede ser menor que 0").max(100, "El campo tipo porcentaje no puede ser mayor que 100"),
1100
1100
  value: e
1101
1101
  } : {
1102
- schema: be().required("Requerido"),
1102
+ schema: me().required("Requerido"),
1103
1103
  value: e
1104
1104
  }, Do = {
1105
1105
  [I.LIST_OF_VALUES]: wo,
1106
1106
  [I.LIST_OF_VALUES_MULTI]: So,
1107
1107
  [I.RANGE]: Co,
1108
- [I.GREATER_THAN]: Rt,
1109
- [I.LESS_THAN]: Rt,
1110
- [I.EQUAL]: Rt
1108
+ [I.GREATER_THAN]: It,
1109
+ [I.LESS_THAN]: It,
1110
+ [I.EQUAL]: It
1111
1111
  }, No = (e) => Do[e] || xo;
1112
- var rn = /* @__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))(rn || {});
1113
- const ht = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Array.isArray(e) || e.length > 0), Eo = (e, t) => {
1112
+ var nn = /* @__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))(nn || {});
1113
+ const pt = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Array.isArray(e) || e.length > 0), Eo = (e, t) => {
1114
1114
  var u;
1115
- const n = Object.entries((e == null ? void 0 : e.conditionsThatEstablishesTheDecision) ?? {}).filter(([, l]) => ht(l)).map(([l, s]) => ({ conditionName: l, value: s }));
1115
+ const n = Object.entries((e == null ? void 0 : e.conditionsThatEstablishesTheDecision) ?? {}).filter(([, l]) => pt(l)).map(([l, s]) => ({ conditionName: l, value: s }));
1116
1116
  let r = [];
1117
1117
  const o = (u = e == null ? void 0 : e.conditionGroups) == null ? void 0 : u.conditionsThatEstablishesTheDecision;
1118
- Array.isArray(o) ? r = o.filter((l) => ht(l == null ? void 0 : l.value)).map((l) => ({ conditionName: l == null ? void 0 : l.conditionName, value: l == null ? void 0 : l.value })) : o && typeof o == "object" && (r = Object.entries(o).filter(([, l]) => ht(l)).map(([l, s]) => ({ conditionName: l, value: s })));
1118
+ Array.isArray(o) ? r = o.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 })) : o && typeof o == "object" && (r = Object.entries(o).filter(([, l]) => pt(l)).map(([l, s]) => ({ conditionName: l, value: s })));
1119
1119
  const i = n.length ? n : r, c = new Map(
1120
1120
  (t ?? []).map((l) => [l == null ? void 0 : l.conditionName, l])
1121
1121
  );
@@ -1135,7 +1135,7 @@ function ko({
1135
1135
  textValues: n
1136
1136
  }) {
1137
1137
  var d, h;
1138
- const r = ((d = e.conditionGroups[0]) == null ? void 0 : d.conditionsThatEstablishesTheDecision) ?? [], o = r.reduce((g, f) => (ht(f.value) && (g[f.conditionName] = f.value), g), {}), i = Object.keys(o).length > 0, c = {
1138
+ const r = ((d = e.conditionGroups[0]) == null ? void 0 : d.conditionsThatEstablishesTheDecision) ?? [], o = r.reduce((g, f) => (pt(f.value) && (g[f.conditionName] = f.value), g), {}), i = Object.keys(o).length > 0, c = {
1139
1139
  ruleName: e.ruleName || "",
1140
1140
  decisionDataType: e.decisionDataType || H.ALPHABETICAL,
1141
1141
  howToSetTheDecision: e.howToSetTheDecision || "",
@@ -1153,14 +1153,14 @@ function ko({
1153
1153
  };
1154
1154
  let u;
1155
1155
  const l = {
1156
- ruleName: be().required("El nombre de la regla es requerido"),
1156
+ ruleName: me().required("El nombre de la regla es requerido"),
1157
1157
  value: Qe(() => No(
1158
1158
  u.values.howToSetTheDecision
1159
1159
  )(
1160
1160
  u.values.value,
1161
1161
  u.values.decisionDataType
1162
1162
  ).schema),
1163
- conditionsThatEstablishesTheDecision: Q().shape({})
1163
+ conditionsThatEstablishesTheDecision: X().shape({})
1164
1164
  };
1165
1165
  n.terms && (l.effectiveFrom = Le().required("La fecha de inicio es requerida"), l.validUntil = Le().when(
1166
1166
  "checkClosed",
@@ -1173,8 +1173,8 @@ function ko({
1173
1173
  }
1174
1174
  ) : f.notRequired()
1175
1175
  ));
1176
- const s = Q(l);
1177
- return u = tn({
1176
+ const s = X(l);
1177
+ return u = en({
1178
1178
  initialValues: c,
1179
1179
  validationSchema: s,
1180
1180
  validateOnBlur: !0,
@@ -1203,7 +1203,7 @@ function ko({
1203
1203
  void 0
1204
1204
  );
1205
1205
  else if (u.values.conditionsThatEstablishesTheDecision[f.conditionName] === void 0) {
1206
- const v = f.howToSetTheCondition === rn.LIST_OF_VALUES_MULTI ? [] : "";
1206
+ const v = f.howToSetTheCondition === nn.LIST_OF_VALUES_MULTI ? [] : "";
1207
1207
  u.setFieldValue(
1208
1208
  `conditionsThatEstablishesTheDecision.${f.conditionName}`,
1209
1209
  v
@@ -1212,7 +1212,7 @@ function ko({
1212
1212
  });
1213
1213
  } };
1214
1214
  }
1215
- const Ao = N.div`
1215
+ const Ao = E.div`
1216
1216
  & > div {
1217
1217
  border-radius: 8px;
1218
1218
  border: 1px solid
@@ -1221,7 +1221,7 @@ const Ao = N.div`
1221
1221
  return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
1222
1222
  }};
1223
1223
  }
1224
- `, $o = N.div`
1224
+ `, $o = E.div`
1225
1225
  width: 100%;
1226
1226
  height: 100%;
1227
1227
  overflow-y: auto;
@@ -1248,9 +1248,9 @@ const Ao = N.div`
1248
1248
  name: c,
1249
1249
  valueToggle: u = ""
1250
1250
  } = e, [l, s] = q(t);
1251
- return /* @__PURE__ */ b(V, { children: [
1251
+ return /* @__PURE__ */ b(_, { children: [
1252
1252
  /* @__PURE__ */ a(T, { children: /* @__PURE__ */ a(
1253
- Tt,
1253
+ yt,
1254
1254
  {
1255
1255
  checked: l,
1256
1256
  id: o,
@@ -1263,7 +1263,7 @@ const Ao = N.div`
1263
1263
  children: /* @__PURE__ */ a(R, { size: "medium", type: "label", weight: "bold", as: "span", children: i })
1264
1264
  }
1265
1265
  ) }),
1266
- l && /* @__PURE__ */ a(V, { children: n })
1266
+ l && /* @__PURE__ */ a(_, { children: n })
1267
1267
  ] });
1268
1268
  }, Ro = (e) => {
1269
1269
  const {
@@ -1280,14 +1280,14 @@ const Ao = N.div`
1280
1280
  messageEnd: d = "",
1281
1281
  statusStart: h = "pending",
1282
1282
  statusEnd: g = "pending"
1283
- } = e, [f, m] = q(c), [v, x] = q(l), [w, S] = q(s), D = ({ target: F }) => {
1283
+ } = e, [f, m] = q(c), [v, x] = q(l), [w, C] = q(s), N = ({ target: F }) => {
1284
1284
  m(F.checked), r && r(F.checked);
1285
- }, C = (F) => {
1285
+ }, D = (F) => {
1286
1286
  x(F.target.value), t(F);
1287
1287
  }, k = (F) => {
1288
- S(F.target.value), n(F);
1289
- }, L = ae("(max-width: 400px)");
1290
- return /* @__PURE__ */ b(V, { children: [
1288
+ C(F.target.value), n(F);
1289
+ }, L = ie("(max-width: 400px)");
1290
+ return /* @__PURE__ */ b(_, { children: [
1291
1291
  /* @__PURE__ */ b(T, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
1292
1292
  /* @__PURE__ */ a(
1293
1293
  R,
@@ -1308,10 +1308,10 @@ const Ao = N.div`
1308
1308
  wrap: "wrap",
1309
1309
  gap: "4px",
1310
1310
  children: /* @__PURE__ */ a(
1311
- Zt,
1311
+ Jt,
1312
1312
  {
1313
1313
  label: "Cerrada",
1314
- onChange: D,
1314
+ onChange: N,
1315
1315
  checked: f,
1316
1316
  value: ""
1317
1317
  }
@@ -1331,7 +1331,7 @@ const Ao = N.div`
1331
1331
  {
1332
1332
  id: "dateStart",
1333
1333
  label: o,
1334
- onChange: C,
1334
+ onChange: D,
1335
1335
  value: v,
1336
1336
  required: u,
1337
1337
  size: "compact",
@@ -1370,7 +1370,7 @@ const Ao = N.div`
1370
1370
  termEndStatus: p
1371
1371
  } = e;
1372
1372
  return /* @__PURE__ */ a("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
1373
- ft({
1373
+ gt({
1374
1374
  condition: i,
1375
1375
  formik: t,
1376
1376
  isDecision: !0
@@ -1393,7 +1393,7 @@ const Ao = N.div`
1393
1393
  children: [
1394
1394
  /* @__PURE__ */ a(R, { type: "title", size: "small", weight: "bold", appearance: "gray", children: n.factsThatConditionIt }),
1395
1395
  /* @__PURE__ */ a(
1396
- Tt,
1396
+ yt,
1397
1397
  {
1398
1398
  id: "toggleNone",
1399
1399
  onChange: () => c(!t.values.toggleNone),
@@ -1416,9 +1416,9 @@ const Ao = N.div`
1416
1416
  checked: !t.values.toggleNone && ((h = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : h[d.conditionName]) !== void 0,
1417
1417
  handleToggleChange: (g) => u(
1418
1418
  d.conditionName,
1419
- d.howToSetTheCondition === rn.LIST_OF_VALUES_MULTI
1419
+ d.howToSetTheCondition === nn.LIST_OF_VALUES_MULTI
1420
1420
  )(g.target.checked),
1421
- children: ft({ condition: d, formik: t })
1421
+ children: gt({ condition: d, formik: t })
1422
1422
  },
1423
1423
  d.conditionName
1424
1424
  );
@@ -1426,7 +1426,7 @@ const Ao = N.div`
1426
1426
  ]
1427
1427
  }
1428
1428
  ) }) }),
1429
- n.terms && /* @__PURE__ */ b(V, { children: [
1429
+ n.terms && /* @__PURE__ */ b(_, { children: [
1430
1430
  /* @__PURE__ */ a(W, { dashed: !0 }),
1431
1431
  /* @__PURE__ */ a(
1432
1432
  Ro,
@@ -1489,7 +1489,7 @@ const Ao = N.div`
1489
1489
  `conditionsThatEstablishesTheDecision.${m}`,
1490
1490
  !1,
1491
1491
  !1
1492
- ), Object.keys(i.touched).filter((S) => S.startsWith("conditionsThatEstablishesTheDecision.")).some((S) => i.touched[S] === !0) || c(!0);
1492
+ ), Object.keys(i.touched).filter((C) => C.startsWith("conditionsThatEstablishesTheDecision.")).some((C) => i.touched[C] === !0) || c(!0);
1493
1493
  else {
1494
1494
  const w = v ? [] : "";
1495
1495
  c(!1), i.setFieldValue(
@@ -1513,7 +1513,7 @@ const Ao = N.div`
1513
1513
  handleDelete: c,
1514
1514
  textValues: u
1515
1515
  } = e, l = o ? Array.from({ length: 3 }).map(
1516
- (p, d) => Pt({
1516
+ (p, d) => Vt({
1517
1517
  type: "loading",
1518
1518
  index: d,
1519
1519
  controls: t,
@@ -1524,7 +1524,7 @@ const Ao = N.div`
1524
1524
  textValues: u
1525
1525
  })
1526
1526
  ) : r == null ? void 0 : r.map(
1527
- (p, d) => Pt({
1527
+ (p, d) => Vt({
1528
1528
  index: d,
1529
1529
  type: "decision",
1530
1530
  decision: p,
@@ -1553,7 +1553,7 @@ const Ao = N.div`
1553
1553
  handleSubmitForm: h,
1554
1554
  handleDelete: g,
1555
1555
  terms: f = !0
1556
- } = e, m = ae("(max-width: 681px)"), v = ae("(max-width: 400px)"), { renderedCards: x, shouldRenderAddCard: w } = Lo({
1556
+ } = e, m = ie("(max-width: 681px)"), v = ie("(max-width: 400px)"), { renderedCards: x, shouldRenderAddCard: w } = Lo({
1557
1557
  controls: t,
1558
1558
  customTitleContentAddCard: n,
1559
1559
  decisions: o,
@@ -1561,9 +1561,9 @@ const Ao = N.div`
1561
1561
  handleOpenModal: p,
1562
1562
  handleDelete: g,
1563
1563
  textValues: i
1564
- }), S = (o == null ? void 0 : o.length) === 0 && !s;
1565
- return /* @__PURE__ */ b(V, { children: [
1566
- /* @__PURE__ */ a(eo, { children: /* @__PURE__ */ a(to, { children: /* @__PURE__ */ a(T, { direction: "column", gap: "16px", padding: "6px", children: S ? /* @__PURE__ */ b(
1564
+ }), C = (o == null ? void 0 : o.length) === 0 && !s;
1565
+ return /* @__PURE__ */ b(_, { children: [
1566
+ /* @__PURE__ */ a(eo, { children: /* @__PURE__ */ a(to, { children: /* @__PURE__ */ a(T, { direction: "column", gap: "16px", padding: "6px", children: C ? /* @__PURE__ */ b(
1567
1567
  T,
1568
1568
  {
1569
1569
  direction: "column",
@@ -1573,7 +1573,7 @@ const Ao = N.div`
1573
1573
  justifyContent: "center",
1574
1574
  alignItems: "center",
1575
1575
  children: [
1576
- /* @__PURE__ */ a(R, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ b(V, { children: [
1576
+ /* @__PURE__ */ a(R, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ b(_, { children: [
1577
1577
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
1578
1578
  /* @__PURE__ */ b(
1579
1579
  R,
@@ -1603,7 +1603,7 @@ const Ao = N.div`
1603
1603
  ]
1604
1604
  }
1605
1605
  ) : /* @__PURE__ */ b(
1606
- Se,
1606
+ we,
1607
1607
  {
1608
1608
  templateColumns: v ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
1609
1609
  autoFlow: "row dense",
@@ -1616,7 +1616,7 @@ const Ao = N.div`
1616
1616
  height: m ? "auto" : "484px",
1617
1617
  children: [
1618
1618
  x,
1619
- w && Pt({
1619
+ w && Vt({
1620
1620
  type: "add",
1621
1621
  index: o == null ? void 0 : o.length,
1622
1622
  controls: t,
@@ -1626,7 +1626,7 @@ const Ao = N.div`
1626
1626
  handleOpenModal: p,
1627
1627
  handleDelete: g,
1628
1628
  textValues: i,
1629
- shouldRenderEmptyMessage: S,
1629
+ shouldRenderEmptyMessage: C,
1630
1630
  terms: f
1631
1631
  })
1632
1632
  ]
@@ -1682,7 +1682,7 @@ const Ao = N.div`
1682
1682
  return t;
1683
1683
  }
1684
1684
  return typeof t == "object" && t !== null && !Array.isArray(t) ? "from" in t && "to" in t ? t : (zo[e == null ? void 0 : e.howToSetTheDecision] || Mo)(t) : t || void 0;
1685
- }, Ho = N.div`
1685
+ }, Ho = E.div`
1686
1686
  display: flex;
1687
1687
  justify-content: ${({ $justifyContent: e }) => e};
1688
1688
  align-items: ${({ $alignItems: e }) => e};
@@ -1705,7 +1705,7 @@ const Ao = N.div`
1705
1705
  border-radius: ${({ $borderRadius: e }) => e};
1706
1706
  box-sizing: ${({ $boxSizing: e }) => e};
1707
1707
  overflow-y: ${({ $scroll: e }) => e ? "scroll" : "none"};
1708
- `, pe = _.forwardRef(
1708
+ `, ue = j.forwardRef(
1709
1709
  (e, t) => {
1710
1710
  const {
1711
1711
  children: n,
@@ -1749,8 +1749,8 @@ const Ao = N.div`
1749
1749
  );
1750
1750
  }
1751
1751
  );
1752
- pe.displayName = "BorderStack";
1753
- N.div`
1752
+ ue.displayName = "BorderStack";
1753
+ E.div`
1754
1754
  & > div {
1755
1755
  border-radius: 8px;
1756
1756
  border: 1px solid
@@ -1760,7 +1760,7 @@ N.div`
1760
1760
  }};
1761
1761
  }
1762
1762
  `;
1763
- N.div`
1763
+ E.div`
1764
1764
  width: 100%;
1765
1765
  height: 100%;
1766
1766
  overflow-y: auto;
@@ -1779,19 +1779,19 @@ N.div`
1779
1779
  border-radius: 8px;
1780
1780
  }
1781
1781
  `;
1782
- const Bo = N.div`
1782
+ const Bo = E.div`
1783
1783
  cursor: pointer;
1784
- `, qo = N.div`
1784
+ `, qo = E.div`
1785
1785
  & > div > div > div > p {
1786
1786
  text-wrap-mode: nowrap;
1787
1787
  }
1788
- `, Wo = N.div`
1788
+ `, Wo = E.div`
1789
1789
  & > div {
1790
1790
  justify-content: auto;
1791
1791
  gap: 8px;
1792
1792
  }
1793
1793
  `;
1794
- var oe = /* @__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))(oe || {});
1794
+ var re = /* @__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))(re || {});
1795
1795
  const Yo = (e) => {
1796
1796
  const {
1797
1797
  controls: t,
@@ -1812,9 +1812,9 @@ const Yo = (e) => {
1812
1812
  tabs: v,
1813
1813
  selectedTab: x,
1814
1814
  onTabChange: w,
1815
- currentConditions: S,
1816
- hasMultipleGroups: D,
1817
- editionMode: C = "versioned"
1815
+ currentConditions: C,
1816
+ hasMultipleGroups: N,
1817
+ editionMode: D = "versioned"
1818
1818
  } = e;
1819
1819
  return i ? /* @__PURE__ */ b(T, { direction: "column", gap: "16px", children: [
1820
1820
  /* @__PURE__ */ a(Bo, { onClick: s, children: /* @__PURE__ */ b(
@@ -1834,19 +1834,19 @@ const Yo = (e) => {
1834
1834
  }
1835
1835
  ) }),
1836
1836
  /* @__PURE__ */ a(Wo, { children: /* @__PURE__ */ a(
1837
- st,
1837
+ lt,
1838
1838
  {
1839
1839
  element: o,
1840
1840
  valueData: Xe(
1841
1841
  o
1842
1842
  ),
1843
1843
  type: "decision",
1844
- editionMode: C
1844
+ editionMode: D
1845
1845
  }
1846
1846
  ) })
1847
1847
  ] }),
1848
1848
  /* @__PURE__ */ b(T, { gap: "12px", children: [
1849
- t && /* @__PURE__ */ b(V, { children: [
1849
+ t && /* @__PURE__ */ b(_, { children: [
1850
1850
  /* @__PURE__ */ a(
1851
1851
  B,
1852
1852
  {
@@ -1863,7 +1863,7 @@ const Yo = (e) => {
1863
1863
  B,
1864
1864
  {
1865
1865
  appearance: "danger",
1866
- icon: /* @__PURE__ */ a(yt, {}),
1866
+ icon: /* @__PURE__ */ a(vt, {}),
1867
1867
  size: "24px",
1868
1868
  cursorHover: !0,
1869
1869
  onClick: (k) => {
@@ -1876,7 +1876,7 @@ const Yo = (e) => {
1876
1876
  B,
1877
1877
  {
1878
1878
  appearance: "dark",
1879
- icon: l ? /* @__PURE__ */ a(sr, {}) : /* @__PURE__ */ a(_t, {}),
1879
+ icon: l ? /* @__PURE__ */ a(sr, {}) : /* @__PURE__ */ a(jt, {}),
1880
1880
  size: "24px",
1881
1881
  cursorHover: !0
1882
1882
  }
@@ -1886,9 +1886,9 @@ const Yo = (e) => {
1886
1886
  },
1887
1887
  r.ruleName
1888
1888
  ) }),
1889
- l && /* @__PURE__ */ b(V, { children: [
1889
+ l && /* @__PURE__ */ b(_, { children: [
1890
1890
  /* @__PURE__ */ a(W, { dashed: !0 }),
1891
- D ? /* @__PURE__ */ a(
1891
+ N ? /* @__PURE__ */ a(
1892
1892
  Vn,
1893
1893
  {
1894
1894
  tabs: v,
@@ -1914,61 +1914,61 @@ const Yo = (e) => {
1914
1914
  gap: "8px",
1915
1915
  justifyContent: n,
1916
1916
  children: [
1917
- S.map((k) => /* @__PURE__ */ a(
1918
- pe,
1917
+ C.map((k) => /* @__PURE__ */ a(
1918
+ ue,
1919
1919
  {
1920
1920
  direction: "column",
1921
1921
  padding: "6px 12px",
1922
1922
  borderRadius: "8px",
1923
1923
  background: !0,
1924
1924
  children: /* @__PURE__ */ a(
1925
- st,
1925
+ lt,
1926
1926
  {
1927
1927
  element: {
1928
1928
  ...k,
1929
1929
  value: k.value,
1930
- howToSetTheCondition: k.howToSetTheCondition === oe.LIST_OF_VALUES ? oe.LIST_OF_VALUES_MULTI : k.howToSetTheCondition
1930
+ howToSetTheCondition: k.howToSetTheCondition === re.LIST_OF_VALUES ? re.LIST_OF_VALUES_MULTI : k.howToSetTheCondition
1931
1931
  },
1932
1932
  valueData: Xe(
1933
1933
  k
1934
1934
  ),
1935
- editionMode: C
1935
+ editionMode: D
1936
1936
  }
1937
1937
  )
1938
1938
  },
1939
1939
  k.conditionName
1940
1940
  )),
1941
1941
  p && h && /* @__PURE__ */ a(
1942
- pe,
1942
+ ue,
1943
1943
  {
1944
1944
  direction: "column",
1945
1945
  padding: "6px 12px",
1946
1946
  borderRadius: "8px",
1947
1947
  background: !0,
1948
1948
  children: /* @__PURE__ */ a(
1949
- st,
1949
+ lt,
1950
1950
  {
1951
1951
  element: h.element,
1952
1952
  valueData: h.valueData,
1953
- editionMode: C
1953
+ editionMode: D
1954
1954
  },
1955
1955
  "effectiveFrom"
1956
1956
  )
1957
1957
  }
1958
1958
  ),
1959
1959
  d && g && /* @__PURE__ */ a(
1960
- pe,
1960
+ ue,
1961
1961
  {
1962
1962
  direction: "column",
1963
1963
  padding: "6px 12px",
1964
1964
  borderRadius: "8px",
1965
1965
  background: !0,
1966
1966
  children: /* @__PURE__ */ a(
1967
- st,
1967
+ lt,
1968
1968
  {
1969
1969
  element: g.element,
1970
1970
  valueData: g.valueData,
1971
- editionMode: C
1971
+ editionMode: D
1972
1972
  },
1973
1973
  "validUntil"
1974
1974
  )
@@ -1980,40 +1980,40 @@ const Yo = (e) => {
1980
1980
  ] })
1981
1981
  ] }) : /* @__PURE__ */ b(T, { justifyContent: "space-between", children: [
1982
1982
  /* @__PURE__ */ b(T, { alignItems: "center", gap: "8px", children: [
1983
- /* @__PURE__ */ a(ie, { animated: !0, width: "150px" }),
1984
- /* @__PURE__ */ a(ie, { animated: !0, width: "70px" })
1983
+ /* @__PURE__ */ a(oe, { animated: !0, width: "150px" }),
1984
+ /* @__PURE__ */ a(oe, { animated: !0, width: "70px" })
1985
1985
  ] }),
1986
1986
  /* @__PURE__ */ b(T, { alignItems: "center", gap: "8px", children: [
1987
- /* @__PURE__ */ a(ie, { animated: !0, width: "50px" }),
1987
+ /* @__PURE__ */ a(oe, { animated: !0, width: "50px" }),
1988
1988
  /* @__PURE__ */ a(xr, { animated: !0 })
1989
1989
  ] })
1990
1990
  ] });
1991
- }, bn = (e) => !e || typeof e != "object" || Array.isArray(e) ? !1 : Object.values(e).some(Array.isArray), gt = (e) => {
1991
+ }, bn = (e) => !e || typeof e != "object" || Array.isArray(e) ? !1 : Object.values(e).some(Array.isArray), ht = (e) => {
1992
1992
  const t = /* @__PURE__ */ new Set(), n = [];
1993
1993
  for (const r of e) {
1994
1994
  const o = String((r == null ? void 0 : r.conditionName) ?? "");
1995
1995
  t.has(o) || (t.add(o), n.push(r));
1996
1996
  }
1997
1997
  return n;
1998
- }, xe = (e) => {
1998
+ }, Te = (e) => {
1999
1999
  if (!e) return {};
2000
2000
  if (bn(e.conditionsThatEstablishesTheDecision)) {
2001
2001
  const t = e.conditionsThatEstablishesTheDecision;
2002
2002
  return Object.fromEntries(
2003
- Object.entries(t).map(([n, r]) => [n, gt(r)])
2003
+ Object.entries(t).map(([n, r]) => [n, ht(r)])
2004
2004
  );
2005
2005
  }
2006
2006
  if (Array.isArray(e.conditionGroups)) {
2007
2007
  const t = e.conditionGroups.map((n) => [
2008
2008
  n.ConditionGroupId,
2009
- gt(
2009
+ ht(
2010
2010
  Array.isArray(n.conditionsThatEstablishesTheDecision) ? n.conditionsThatEstablishesTheDecision : []
2011
2011
  )
2012
2012
  ]);
2013
2013
  return Object.fromEntries(t);
2014
2014
  }
2015
2015
  return bn(e) ? Object.fromEntries(
2016
- Object.entries(e).map(([t, n]) => [t, gt(n)])
2016
+ Object.entries(e).map(([t, n]) => [t, ht(n)])
2017
2017
  ) : {};
2018
2018
  }, Bn = (e, t) => Object.fromEntries(
2019
2019
  Object.entries(e).map(([n, r]) => [n, r.filter(t)])
@@ -2021,7 +2021,7 @@ const Yo = (e) => {
2021
2021
  Year: { label: "en años", labelView: "años" },
2022
2022
  Month: { label: "en meses", labelView: "meses" },
2023
2023
  Day: { label: "en días", labelView: "días" }
2024
- }, Ut = (e, t, n = !1) => {
2024
+ }, Pt = (e, t, n = !1) => {
2025
2025
  const r = Xo[t ?? ""];
2026
2026
  return r ? n ? `${e} ${r.labelView}` : `${e} ${r.label}` : e;
2027
2027
  }, Qo = (e, t) => {
@@ -2041,7 +2041,7 @@ const Yo = (e) => {
2041
2041
  default:
2042
2042
  return String(n);
2043
2043
  }
2044
- }, dt = (e) => {
2044
+ }, st = (e) => {
2045
2045
  if (e == null || e === "") return "";
2046
2046
  const t = [
2047
2047
  "Ene",
@@ -2066,7 +2066,7 @@ const Yo = (e) => {
2066
2066
  if (isNaN(r.getTime())) return "";
2067
2067
  const o = r.getUTCDate(), i = r.getUTCMonth(), c = r.getUTCFullYear(), u = String(o).padStart(2, "0"), l = t[i] ?? "";
2068
2068
  return l ? `${u}/${l}/${c}` : "";
2069
- }, Gt = (e) => {
2069
+ }, Ut = (e) => {
2070
2070
  if (e == null) return !1;
2071
2071
  if (typeof e == "number") return !Number.isNaN(e);
2072
2072
  if (typeof e == "string") return e.trim().length > 0;
@@ -2074,10 +2074,10 @@ const Yo = (e) => {
2074
2074
  if (typeof e == "object") {
2075
2075
  if (Object.keys(e).length === 0) return !1;
2076
2076
  const n = e.from ?? e.min ?? e.start, r = e.to ?? e.max ?? e.end;
2077
- return n !== void 0 || r !== void 0 ? Gt(n) || Gt(r) : !0;
2077
+ return n !== void 0 || r !== void 0 ? Ut(n) || Ut(r) : !0;
2078
2078
  }
2079
2079
  return !1;
2080
- }, Jo = (e) => Gt(e == null ? void 0 : e.value), mt = (e, t) => e === "group-primary" ? "Condición principal" : `Condición alterna N° ${String(t).padStart(2, "0")}`, Zo = (e) => {
2080
+ }, Jo = (e) => Ut(e == null ? void 0 : e.value), ft = (e, t) => e === "group-primary" ? "Condición principal" : `Condición alterna N° ${String(t).padStart(2, "0")}`, Zo = (e) => {
2081
2081
  var i, c;
2082
2082
  const t = ((i = e.listOfPossibleValues) == null ? void 0 : i.list) ?? [], n = e.value, r = Array.isArray(n) ? n : [n];
2083
2083
  return { list: ((c = t.filter((u) => r.includes(u.value)).map((u, l) => ({
@@ -2086,7 +2086,7 @@ const Yo = (e) => {
2086
2086
  value: u.label
2087
2087
  }))[0]) == null ? void 0 : c.label) ?? "" };
2088
2088
  }, qn = (e) => {
2089
- var At, $t, Pe;
2089
+ var kt, At, Pe;
2090
2090
  const {
2091
2091
  cardTitle: t = !0,
2092
2092
  decision: n,
@@ -2102,100 +2102,100 @@ const Yo = (e) => {
2102
2102
  } = e, h = !!(n != null && n.effectiveFrom), g = !!(n != null && n.validUntil), f = h ? {
2103
2103
  element: {
2104
2104
  labelName: o == null ? void 0 : o.effectiveFrom,
2105
- value: dt(n.effectiveFrom),
2105
+ value: st(n.effectiveFrom),
2106
2106
  howToSetTheDecision: P.EQUAL,
2107
2107
  decisionDataType: H.DATE
2108
2108
  },
2109
2109
  valueData: Xe({
2110
2110
  labelName: o == null ? void 0 : o.effectiveFrom,
2111
- value: dt(n.effectiveFrom),
2111
+ value: st(n.effectiveFrom),
2112
2112
  howToSetTheDecision: P.EQUAL,
2113
2113
  decisionDataType: H.DATE
2114
2114
  })
2115
2115
  } : null, m = g ? {
2116
2116
  element: {
2117
2117
  labelName: o == null ? void 0 : o.validUntil,
2118
- value: dt(n.validUntil),
2118
+ value: st(n.validUntil),
2119
2119
  howToSetTheDecision: P.EQUAL,
2120
2120
  decisionDataType: H.DATE
2121
2121
  },
2122
2122
  valueData: Xe({
2123
2123
  labelName: o == null ? void 0 : o.validUntil,
2124
- value: dt(n.validUntil),
2124
+ value: st(n.validUntil),
2125
2125
  howToSetTheDecision: P.EQUAL,
2126
2126
  decisionDataType: H.DATE
2127
2127
  })
2128
- } : null, v = (n == null ? void 0 : n.howToSetTheDecision) || P.EQUAL, x = v === P.LIST_OF_VALUES || v === P.LIST_OF_VALUES_MULTI, w = n && (x ? Zo(n).list : n.i18nValue ?? Xe(n)), S = n ? {
2128
+ } : null, v = (n == null ? void 0 : n.howToSetTheDecision) || P.EQUAL, x = v === P.LIST_OF_VALUES || v === P.LIST_OF_VALUES_MULTI, w = n && (x ? Zo(n).list : n.i18nValue ?? Xe(n)), C = n ? {
2129
2129
  labelName: t && n.labelName || "",
2130
2130
  decisionDataType: n.decisionDataType || H.ALPHABETICAL,
2131
2131
  value: w,
2132
2132
  howToSetTheDecision: n.i18nValue ? P.EQUAL : v,
2133
2133
  validUntil: n.validUntil
2134
- } : null, D = _.useMemo(
2135
- () => n ? xe(n) : {},
2134
+ } : null, N = j.useMemo(
2135
+ () => n ? Te(n) : {},
2136
2136
  [n]
2137
- ), C = (($t = (At = n == null ? void 0 : n.conditionGroups) == null ? void 0 : At.map((M) => M == null ? void 0 : M.ConditionGroupId)) == null ? void 0 : $t.filter(Boolean)) || Object.keys(D), k = C[0] || "group-primary", L = _.useMemo(() => {
2138
- const M = {}, $ = D[k] || [], O = D["group-primary"] || [];
2137
+ ), D = ((At = (kt = n == null ? void 0 : n.conditionGroups) == null ? void 0 : kt.map((M) => M == null ? void 0 : M.ConditionGroupId)) == null ? void 0 : At.filter(Boolean)) || Object.keys(N), k = D[0] || "group-primary", L = j.useMemo(() => {
2138
+ const M = {}, $ = N[k] || [], O = N["group-primary"] || [];
2139
2139
  M["group-primary"] = k === "group-primary" ? O : [...$, ...O];
2140
- for (const E of C)
2141
- !E || E === k || E !== "group-primary" && D[E] && (M[E] = D[E]);
2142
- for (const E of Object.keys(D))
2143
- E === "group-primary" || E === k || E in M || (M[E] = D[E]);
2140
+ for (const S of D)
2141
+ !S || S === k || S !== "group-primary" && N[S] && (M[S] = N[S]);
2142
+ for (const S of Object.keys(N))
2143
+ S === "group-primary" || S === k || S in M || (M[S] = N[S]);
2144
2144
  return M;
2145
- }, [D, k, C]), F = _.useMemo(() => {
2145
+ }, [N, k, D]), F = j.useMemo(() => {
2146
2146
  const M = {};
2147
2147
  return Object.keys(L).forEach(($) => {
2148
2148
  const O = L[$];
2149
- O && Array.isArray(O) ? M[$] = O.map((E) => {
2150
- let j = E.labelName;
2151
- E.timeUnit && E.labelName && (j = Ut(E.labelName, E.timeUnit));
2152
- let U = E.value;
2153
- return (E == null ? void 0 : E.howToSetTheCondition) !== void 0 && (E == null ? void 0 : E.howToSetTheCondition) !== null && (E == null ? void 0 : E.value) !== void 0 && (E == null ? void 0 : E.value) !== null && (E == null ? void 0 : E.value) !== "" && (U = Qo(
2154
- E.value,
2155
- E.howToSetTheCondition
2149
+ O && Array.isArray(O) ? M[$] = O.map((S) => {
2150
+ let z = S.labelName;
2151
+ S.timeUnit && S.labelName && (z = Pt(S.labelName, S.timeUnit));
2152
+ let U = S.value;
2153
+ return (S == null ? void 0 : S.howToSetTheCondition) !== void 0 && (S == null ? void 0 : S.howToSetTheCondition) !== null && (S == null ? void 0 : S.value) !== void 0 && (S == null ? void 0 : S.value) !== null && (S == null ? void 0 : S.value) !== "" && (U = Qo(
2154
+ S.value,
2155
+ S.howToSetTheCondition
2156
2156
  )), {
2157
- ...E,
2158
- labelName: j,
2157
+ ...S,
2158
+ labelName: z,
2159
2159
  value: U
2160
2160
  };
2161
2161
  }) : M[$] = O;
2162
2162
  }), M;
2163
- }, [L]), se = Bn(
2163
+ }, [L]), le = Bn(
2164
2164
  F,
2165
2165
  (M) => !M.hidden
2166
- ), ee = _.useMemo(() => {
2167
- const M = Object.entries(se).map(
2168
- ([O, E]) => [O, E.filter(Jo)]
2166
+ ), K = j.useMemo(() => {
2167
+ const M = Object.entries(le).map(
2168
+ ([O, S]) => [O, S.filter(Jo)]
2169
2169
  ), $ = {};
2170
- for (const [O, E] of M)
2171
- E.length > 0 && ($[O] = E);
2170
+ for (const [O, S] of M)
2171
+ S.length > 0 && ($[O] = S);
2172
2172
  return $;
2173
- }, [se]), de = _.useMemo(() => {
2174
- const M = Object.keys(ee);
2173
+ }, [le]), se = j.useMemo(() => {
2174
+ const M = Object.keys(K);
2175
2175
  return M.includes("group-primary") ? ["group-primary", ...M.filter(($) => $ !== "group-primary")] : M;
2176
- }, [ee]), Ie = {};
2177
- let Dt = 1;
2178
- const nt = de.map((M) => {
2179
- const $ = M === "group-primary" ? "mainCondition" : `alternateCondition-${Dt++}`;
2176
+ }, [K]), Ie = {};
2177
+ let Ct = 1;
2178
+ const nt = se.map((M) => {
2179
+ const $ = M === "group-primary" ? "mainCondition" : `alternateCondition-${Ct++}`;
2180
2180
  return Ie[$] = M, {
2181
2181
  id: $,
2182
- label: M === "group-primary" ? mt(M, 0) : mt(M, Number($.split("-").at(-1))),
2182
+ label: M === "group-primary" ? ft(M, 0) : ft(M, Number($.split("-").at(-1))),
2183
2183
  isDisabled: !1
2184
2184
  };
2185
- }), [_e, Nt] = _.useState(
2185
+ }), [_e, Dt] = j.useState(
2186
2186
  ((Pe = nt[0]) == null ? void 0 : Pe.id) ?? "mainCondition"
2187
- ), Et = (M) => Nt(M), rt = Ie[_e] ?? de[0] ?? "group-primary", ot = ee[rt] ?? [], it = de.length > 1, kt = Array.from({ length: 5 }), Ve = !!(!r && n && o && S), dn = ot.length < 2 ? "start" : "space-between", cn = `N° ${String((i ?? 0) + 1).padStart(2, "0")}`;
2187
+ ), Nt = (M) => Dt(M), rt = Ie[_e] ?? se[0] ?? "group-primary", ot = K[rt] ?? [], it = se.length > 1, Et = Array.from({ length: 5 }), Ve = !!(!r && n && o && C), sn = ot.length < 2 ? "start" : "space-between", dn = `N° ${String((i ?? 0) + 1).padStart(2, "0")}`;
2188
2188
  return /* @__PURE__ */ a(
2189
2189
  Yo,
2190
2190
  {
2191
- conditionsAlignment: dn,
2191
+ conditionsAlignment: sn,
2192
2192
  controls: p,
2193
2193
  decision: n,
2194
- decisionMapper: S,
2194
+ decisionMapper: C,
2195
2195
  loading: Ve,
2196
- skeleton: kt,
2196
+ skeleton: Et,
2197
2197
  textValues: o,
2198
- tagLabel: cn,
2198
+ tagLabel: dn,
2199
2199
  isOpen: c,
2200
2200
  onToggle: u,
2201
2201
  hasEffectiveFrom: h,
@@ -2206,13 +2206,13 @@ const Yo = (e) => {
2206
2206
  onDelete: s,
2207
2207
  tabs: nt,
2208
2208
  selectedTab: _e,
2209
- onTabChange: Et,
2209
+ onTabChange: Nt,
2210
2210
  currentConditions: ot,
2211
2211
  hasMultipleGroups: it,
2212
2212
  editionMode: d
2213
2213
  }
2214
2214
  );
2215
- }, Ko = Kt`
2215
+ }, Ko = Zt`
2216
2216
  from {
2217
2217
  opacity: 0;
2218
2218
  transform: translateY(20px);
@@ -2222,7 +2222,7 @@ const Yo = (e) => {
2222
2222
  transform: translateY(0);
2223
2223
  }
2224
2224
  `;
2225
- N.div`
2225
+ E.div`
2226
2226
  border-radius: 8px;
2227
2227
  border: 1px solid
2228
2228
  ${({ theme: e }) => {
@@ -2236,7 +2236,7 @@ N.div`
2236
2236
  height: 100%;
2237
2237
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
2238
2238
  `;
2239
- N.div`
2239
+ E.div`
2240
2240
  & > div {
2241
2241
  border-radius: 8px;
2242
2242
  border: 1px solid
@@ -2246,7 +2246,7 @@ N.div`
2246
2246
  }};
2247
2247
  }
2248
2248
  `;
2249
- const ei = N.div`
2249
+ const ei = E.div`
2250
2250
  & > div {
2251
2251
  box-shadow: 0px 2px 3px 0px
2252
2252
  ${({ theme: e }) => {
@@ -2255,18 +2255,18 @@ const ei = N.div`
2255
2255
  }};
2256
2256
  cursor: pointer;
2257
2257
  }
2258
- `, ti = N.div`
2258
+ `, ti = E.div`
2259
2259
  width: 100%;
2260
2260
  height: 100%;
2261
2261
  & > div {
2262
2262
  animation: ${Ko} 600ms ease-out;
2263
2263
  }
2264
- `, ni = N.div`
2264
+ `, ni = E.div`
2265
2265
  & > div > div {
2266
2266
  border-radius: 8px;
2267
2267
  box-sizing: border-box;
2268
2268
  }
2269
- `, ri = N.div`
2269
+ `, ri = E.div`
2270
2270
  & > div {
2271
2271
  width: 100%;
2272
2272
  height: 100%;
@@ -2348,7 +2348,7 @@ const ei = N.div`
2348
2348
  {
2349
2349
  onClick: () => r ? r() : null,
2350
2350
  children: /* @__PURE__ */ a(
2351
- pe,
2351
+ ue,
2352
2352
  {
2353
2353
  direction: "column",
2354
2354
  gap: "4px",
@@ -2384,7 +2384,7 @@ const ei = N.div`
2384
2384
  loading: oi,
2385
2385
  decision: ii,
2386
2386
  add: ai
2387
- }, zt = (e) => {
2387
+ }, Gt = (e) => {
2388
2388
  const { type: t } = e, n = li[t];
2389
2389
  return n ? n(e) : null;
2390
2390
  }, si = (e) => {
@@ -2401,7 +2401,7 @@ const ei = N.div`
2401
2401
  toggleAt: p,
2402
2402
  editionMode: d
2403
2403
  } = e, h = i ? Array.from({ length: 3 }).map(
2404
- (f, m) => zt({
2404
+ (f, m) => Gt({
2405
2405
  type: "loading",
2406
2406
  index: m,
2407
2407
  controls: n,
@@ -2413,7 +2413,7 @@ const ei = N.div`
2413
2413
  editionMode: d
2414
2414
  })
2415
2415
  ) : o == null ? void 0 : o.map(
2416
- (f, m) => zt({
2416
+ (f, m) => Gt({
2417
2417
  cardTitle: t,
2418
2418
  type: "decision",
2419
2419
  decision: f,
@@ -2430,13 +2430,13 @@ const ei = N.div`
2430
2430
  })
2431
2431
  ), g = ((o == null ? void 0 : o.length) === 0 || o.length < Math.floor(window.innerWidth / 300)) && !i && n;
2432
2432
  return { renderedCards: h, shouldRenderAddCard: g };
2433
- }, di = N.div`
2433
+ }, di = E.div`
2434
2434
  position: relative;
2435
2435
  & > div {
2436
2436
  padding: 24px 16px;
2437
2437
  place-items: unset;
2438
2438
  }
2439
- `, ci = N.div`
2439
+ `, ci = E.div`
2440
2440
  background-color: ${({ theme: e }) => {
2441
2441
  var t, n;
2442
2442
  return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N0) || A.palette.neutral.N0;
@@ -2474,9 +2474,9 @@ const ei = N.div`
2474
2474
  throw new Error(
2475
2475
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
2476
2476
  );
2477
- const u = ae("(max-width: 400px)");
2478
- return en(
2479
- /* @__PURE__ */ a(di, { smallScreen: u, children: /* @__PURE__ */ a(Jt, { children: /* @__PURE__ */ a(ci, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
2477
+ const u = ie("(max-width: 400px)");
2478
+ return Kt(
2479
+ /* @__PURE__ */ a(di, { smallScreen: u, children: /* @__PURE__ */ a(Qt, { children: /* @__PURE__ */ a(ci, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
2480
2480
  /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
2481
2481
  /* @__PURE__ */ b(T, { alignItems: "center", justifyContent: "space-between", children: [
2482
2482
  /* @__PURE__ */ b(T, { direction: "column", gap: "8px", children: [
@@ -2492,7 +2492,7 @@ const ei = N.div`
2492
2492
  ),
2493
2493
  /* @__PURE__ */ a(R, { size: "medium", appearance: "gray", children: n })
2494
2494
  ] }),
2495
- /* @__PURE__ */ a(Qt, { size: "24px", cursor: "pointer", onClick: o })
2495
+ /* @__PURE__ */ a(Xt, { size: "24px", cursor: "pointer", onClick: o })
2496
2496
  ] }),
2497
2497
  /* @__PURE__ */ a(W, { dashed: !0 })
2498
2498
  ] }),
@@ -2501,14 +2501,14 @@ const ei = N.div`
2501
2501
  c
2502
2502
  );
2503
2503
  }, pi = (e) => ({
2504
- schema: be().required("Requerido").test(
2504
+ schema: me().required("Requerido").test(
2505
2505
  "non-empty",
2506
2506
  "El valor no puede estar vacío",
2507
2507
  (t) => t != null && t.trim() !== ""
2508
2508
  ),
2509
2509
  value: e
2510
2510
  }), hi = (e) => ({
2511
- schema: we().test(
2511
+ schema: xe().test(
2512
2512
  "isArrayOrString",
2513
2513
  "Por favor selecciona una opcion",
2514
2514
  (t) => Array.isArray(t) ? t.every(
@@ -2517,7 +2517,7 @@ const ei = N.div`
2517
2517
  ),
2518
2518
  value: e
2519
2519
  }), gi = (e) => ({
2520
- schema: we().test(
2520
+ schema: xe().test(
2521
2521
  "isArrayOrString",
2522
2522
  "Por favor selecciona al menos una opcion",
2523
2523
  (t) => Array.isArray(t) ? t.every(
@@ -2525,28 +2525,28 @@ const ei = N.div`
2525
2525
  ) : typeof t == "string"
2526
2526
  ),
2527
2527
  value: e
2528
- }), ct = "Por favor escribe un valor", vn = "Por favor escribe un valor mayor que 0", fi = "El valor desde no puede ser mayor que el valor hasta", mi = "El valor hasta debe ser mayor que el valor desde", yn = (e, t) => {
2528
+ }), dt = "Por favor escribe un valor", vn = "Por favor escribe un valor mayor que 0", fi = "El valor desde no puede ser mayor que el valor hasta", mi = "El valor hasta debe ser mayor que el valor desde", yn = (e, t) => {
2529
2529
  if (t !== "")
2530
2530
  return e;
2531
2531
  }, bi = (e) => {
2532
2532
  const t = (e == null ? void 0 : e.from) ?? 0, n = (e == null ? void 0 : e.to) ?? 0;
2533
2533
  return {
2534
- schema: Q({
2535
- from: ge().transform(yn).typeError(ct).required(ct).moreThan(0, vn).test("from<=to", fi, function(r) {
2534
+ schema: X({
2535
+ from: ge().transform(yn).typeError(dt).required(dt).moreThan(0, vn).test("from<=to", fi, function(r) {
2536
2536
  const { to: o } = this.parent;
2537
2537
  return r === void 0 || o === void 0 ? !0 : r <= o;
2538
2538
  }),
2539
- to: ge().transform(yn).typeError(ct).required(ct).moreThan(0, vn).test("to>from", mi, function(r) {
2539
+ to: ge().transform(yn).typeError(dt).required(dt).moreThan(0, vn).test("to>from", mi, function(r) {
2540
2540
  const { from: o } = this.parent;
2541
2541
  return o === void 0 || r === void 0 ? !0 : r > o;
2542
2542
  })
2543
2543
  }),
2544
2544
  value: { from: t, to: n }
2545
2545
  };
2546
- }, Tn = (e) => e && typeof e == "object" && !Array.isArray(e) && "value" in e && e.value !== "" && e.value != null, Ot = (e, t) => {
2546
+ }, Tn = (e) => e && typeof e == "object" && !Array.isArray(e) && "value" in e && e.value !== "" && e.value != null, Rt = (e, t) => {
2547
2547
  if (Tn(e))
2548
2548
  return {
2549
- schema: we().test(
2549
+ schema: xe().test(
2550
2550
  "required-option",
2551
2551
  "Por favor selecciona una opcion",
2552
2552
  (n) => Tn(n)
@@ -2556,15 +2556,15 @@ const ei = N.div`
2556
2556
  if (e && typeof e == "object" && "from" in e && "to" in e) {
2557
2557
  const n = e;
2558
2558
  return t === H.PERCENTAGE ? {
2559
- schema: Q({
2559
+ schema: X({
2560
2560
  from: ge().required("El campo desde es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100"),
2561
2561
  to: ge().required("El campo hasta es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100")
2562
2562
  }),
2563
2563
  value: n
2564
2564
  } : {
2565
- schema: Q({
2566
- from: be().required("Requerido"),
2567
- to: be().required("Requerido")
2565
+ schema: X({
2566
+ from: me().required("Requerido"),
2567
+ to: me().required("Requerido")
2568
2568
  }),
2569
2569
  value: n
2570
2570
  };
@@ -2573,20 +2573,20 @@ const ei = N.div`
2573
2573
  schema: ge().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"),
2574
2574
  value: e
2575
2575
  } : {
2576
- schema: we().test("required", "Requerido", (n) => n == null ? !1 : typeof n == "string" ? n.trim().length > 0 : typeof n == "number" ? !Number.isNaN(n) : !1),
2576
+ schema: xe().test("required", "Requerido", (n) => n == null ? !1 : typeof n == "string" ? n.trim().length > 0 : typeof n == "number" ? !Number.isNaN(n) : !1),
2577
2577
  value: e
2578
2578
  };
2579
2579
  }, vi = {
2580
2580
  [I.LIST_OF_VALUES]: hi,
2581
2581
  [I.LIST_OF_VALUES_MULTI]: gi,
2582
2582
  [I.RANGE]: bi,
2583
- [I.GREATER_THAN]: Ot,
2584
- [I.LESS_THAN]: Ot,
2585
- [I.EQUAL]: Ot
2583
+ [I.GREATER_THAN]: Rt,
2584
+ [I.LESS_THAN]: Rt,
2585
+ [I.EQUAL]: Rt
2586
2586
  }, xn = (e) => vi[e] || pi, wn = (e) => {
2587
2587
  var t;
2588
2588
  return Array.isArray((t = e == null ? void 0 : e.listOfPossibleValues) == null ? void 0 : t.list) && e.listOfPossibleValues.list.length > 0;
2589
- }, Ht = we().test(
2589
+ }, zt = xe().test(
2590
2590
  "required-option",
2591
2591
  "Por favor selecciona una opcion",
2592
2592
  (e) => {
@@ -2597,11 +2597,11 @@ const ei = N.div`
2597
2597
  }
2598
2598
  return typeof e == "string" ? e.trim().length > 0 : typeof e == "number" ? !Number.isNaN(e) : !1;
2599
2599
  }
2600
- ), yi = Q({
2601
- from: Ht,
2602
- to: Ht
2603
- }), Bt = (e) => e && typeof e == "object" && "value" in e ? e.value : e, Sn = (e) => {
2604
- const t = Bt(e);
2600
+ ), yi = X({
2601
+ from: zt,
2602
+ to: zt
2603
+ }), Ht = (e) => e && typeof e == "object" && "value" in e ? e.value : e, Sn = (e) => {
2604
+ const t = Ht(e);
2605
2605
  return t == null ? !1 : typeof t == "string" ? t.trim().length > 0 : typeof t == "number" ? !Number.isNaN(t) : Array.isArray(t) ? t.length > 0 : typeof t == "object" ? Object.keys(t).length > 0 : !0;
2606
2606
  };
2607
2607
  function Ti({
@@ -2609,13 +2609,13 @@ function Ti({
2609
2609
  onSubmitEvent: t,
2610
2610
  textValues: n
2611
2611
  }) {
2612
- const r = xe(e) || {}, o = () => Object.entries(r).flatMap(
2612
+ const r = Te(e) || {}, o = () => Object.entries(r).flatMap(
2613
2613
  ([h, g]) => g.map((f) => ({ group: h, cond: f }))
2614
2614
  ), i = Object.fromEntries(
2615
2615
  Object.entries(r).map(([h, g]) => {
2616
2616
  const f = {};
2617
2617
  return g.forEach((m) => {
2618
- const v = m.conditionName, x = m.value !== void 0 && m.value !== null && m.value !== "", w = m.howToSetTheCondition === oe.LIST_OF_VALUES_MULTI ? [] : "";
2618
+ const v = m.conditionName, x = m.value !== void 0 && m.value !== null && m.value !== "", w = m.howToSetTheCondition === re.LIST_OF_VALUES_MULTI ? [] : "";
2619
2619
  f[v] = {
2620
2620
  ...m,
2621
2621
  value: x ? m.value : w
@@ -2625,10 +2625,10 @@ function Ti({
2625
2625
  ), c = Object.entries(r).map(
2626
2626
  ([h, g]) => {
2627
2627
  const f = i[h] || {}, m = g.map((v) => {
2628
- const x = v.conditionName, w = f[x], S = w && typeof w == "object" && "value" in w ? w.value : v.value;
2628
+ const x = v.conditionName, w = f[x], C = w && typeof w == "object" && "value" in w ? w.value : v.value;
2629
2629
  return {
2630
2630
  ...v,
2631
- value: S
2631
+ value: C
2632
2632
  };
2633
2633
  });
2634
2634
  return {
@@ -2651,43 +2651,43 @@ function Ti({
2651
2651
  };
2652
2652
  let l;
2653
2653
  const s = {
2654
- ruleName: be().required("El nombre de la decision es requerido"),
2654
+ ruleName: me().required("El nombre de la decision es requerido"),
2655
2655
  value: Qe(() => {
2656
2656
  const h = l.values.howToSetTheDecision;
2657
- return h === oe.RANGE && wn(e) ? yi : wn(e) ? Ht : xn(h)(
2657
+ return h === re.RANGE && wn(e) ? yi : wn(e) ? zt : xn(h)(
2658
2658
  l.values.value,
2659
2659
  l.values.decisionDataType
2660
2660
  ).schema;
2661
2661
  }),
2662
2662
  conditionsThatEstablishesTheDecision: Qe((h, { parent: g }) => {
2663
- const f = xe(e) || {};
2663
+ const f = Te(e) || {};
2664
2664
  if (!(Object.keys(f).length > 0))
2665
- return Q().shape({});
2665
+ return X().shape({});
2666
2666
  const v = g && g.conditionsThatEstablishesTheDecision && typeof g.conditionsThatEstablishesTheDecision == "object" && Object.keys(g.conditionsThatEstablishesTheDecision).length > 0;
2667
- if ((g == null ? void 0 : g.toggleNone) && v) return Q().shape({});
2667
+ if ((g == null ? void 0 : g.toggleNone) && v) return X().shape({});
2668
2668
  const w = {};
2669
- for (const [S, D] of Object.entries(f)) {
2670
- const C = {};
2671
- D.forEach((k) => {
2672
- var se, ee;
2673
- const L = (ee = (se = g == null ? void 0 : g.conditionsThatEstablishesTheDecision) == null ? void 0 : se[S]) == null ? void 0 : ee[k.conditionName], F = Bt(L);
2669
+ for (const [C, N] of Object.entries(f)) {
2670
+ const D = {};
2671
+ N.forEach((k) => {
2672
+ var le, K;
2673
+ const L = (K = (le = g == null ? void 0 : g.conditionsThatEstablishesTheDecision) == null ? void 0 : le[C]) == null ? void 0 : K[k.conditionName], F = Ht(L);
2674
2674
  if (F !== void 0) {
2675
- const de = xn(
2675
+ const se = xn(
2676
2676
  k.howToSetTheCondition
2677
2677
  );
2678
- C[k.conditionName] = de(
2678
+ D[k.conditionName] = se(
2679
2679
  F,
2680
2680
  k.conditionDataType
2681
2681
  ).schema;
2682
2682
  }
2683
- }), w[S] = Q(C);
2683
+ }), w[C] = X(D);
2684
2684
  }
2685
- return Q(w).test(
2685
+ return X(w).test(
2686
2686
  "at-least-one-condition",
2687
2687
  "Debe existir al menos una condición para que la decisión se valide correctamente.",
2688
- (S) => !S || typeof S != "object" ? !1 : Object.values(S).some(
2689
- (D) => D && typeof D == "object" && Object.values(D).some(
2690
- (C) => Sn(C)
2688
+ (C) => !C || typeof C != "object" ? !1 : Object.values(C).some(
2689
+ (N) => N && typeof N == "object" && Object.values(N).some(
2690
+ (D) => Sn(D)
2691
2691
  )
2692
2692
  )
2693
2693
  );
@@ -2706,22 +2706,22 @@ function Ti({
2706
2706
  }
2707
2707
  ) : g.notRequired()
2708
2708
  ));
2709
- const p = Q(s);
2710
- return l = tn({
2709
+ const p = X(s);
2710
+ return l = en({
2711
2711
  initialValues: u,
2712
2712
  validationSchema: p,
2713
2713
  validateOnBlur: !0,
2714
2714
  onSubmit: (h) => {
2715
2715
  const g = Object.fromEntries(
2716
2716
  Object.entries(r).map(([m, v]) => {
2717
- var S;
2718
- const x = ((S = h.conditionsThatEstablishesTheDecision) == null ? void 0 : S[m]) || {}, w = v.map((D) => {
2719
- const C = D.conditionName, k = x[C], L = Bt(k);
2717
+ var C;
2718
+ const x = ((C = h.conditionsThatEstablishesTheDecision) == null ? void 0 : C[m]) || {}, w = v.map((N) => {
2719
+ const D = N.conditionName, k = x[D], L = Ht(k);
2720
2720
  return {
2721
- ...D,
2721
+ ...N,
2722
2722
  value: L
2723
2723
  };
2724
- }).filter((D) => Sn(D.value));
2724
+ }).filter((N) => Sn(N.value));
2725
2725
  return [m, w];
2726
2726
  })
2727
2727
  ), f = {
@@ -2742,7 +2742,7 @@ function Ti({
2742
2742
  if (h)
2743
2743
  l.setFieldValue(m, void 0);
2744
2744
  else {
2745
- const v = f.howToSetTheCondition === oe.LIST_OF_VALUES_MULTI ? [] : "";
2745
+ const v = f.howToSetTheCondition === re.LIST_OF_VALUES_MULTI ? [] : "";
2746
2746
  l.setFieldValue(
2747
2747
  m,
2748
2748
  {
@@ -2755,7 +2755,7 @@ function Ti({
2755
2755
  });
2756
2756
  } };
2757
2757
  }
2758
- N.div`
2758
+ E.div`
2759
2759
  & > div {
2760
2760
  border-radius: 8px;
2761
2761
  border: 1px solid
@@ -2765,7 +2765,7 @@ N.div`
2765
2765
  }};
2766
2766
  }
2767
2767
  `;
2768
- N.div`
2768
+ E.div`
2769
2769
  width: 100%;
2770
2770
  height: 100%;
2771
2771
  overflow-y: auto;
@@ -2783,7 +2783,7 @@ N.div`
2783
2783
  border-radius: 8px;
2784
2784
  }
2785
2785
  `;
2786
- const xi = N.div`
2786
+ const xi = E.div`
2787
2787
  display: flex;
2788
2788
  width: -webkit-fill-available;
2789
2789
  align-items: center;
@@ -2808,21 +2808,21 @@ const xi = N.div`
2808
2808
  messageEnd: d = "",
2809
2809
  statusStart: h = "pending",
2810
2810
  statusEnd: g = "pending"
2811
- } = e, [f, m] = q(c), [v, x] = q(l), [w, S] = q(s), D = ({ target: F }) => {
2811
+ } = e, [f, m] = q(c), [v, x] = q(l), [w, C] = q(s), N = ({ target: F }) => {
2812
2812
  m(F.checked), r && r(F.checked);
2813
- }, C = (F) => {
2813
+ }, D = (F) => {
2814
2814
  x(F.target.value), t(F);
2815
2815
  }, k = (F) => {
2816
- S(F.target.value), n(F);
2817
- }, L = ae("(max-width: 400px)");
2816
+ C(F.target.value), n(F);
2817
+ }, L = ie("(max-width: 400px)");
2818
2818
  return /* @__PURE__ */ b(T, { direction: "column", width: "100%", gap: "20px", children: [
2819
2819
  /* @__PURE__ */ b(T, { justifyContent: "space-between", children: [
2820
2820
  /* @__PURE__ */ a(R, { appearance: "dark", size: "large", type: "label", children: "¿La vigencia para este decisión es cerrada?" }),
2821
2821
  /* @__PURE__ */ a(
2822
- Zt,
2822
+ Jt,
2823
2823
  {
2824
2824
  label: "Cerrada",
2825
- onChange: D,
2825
+ onChange: N,
2826
2826
  checked: f,
2827
2827
  value: ""
2828
2828
  }
@@ -2840,7 +2840,7 @@ const xi = N.div`
2840
2840
  {
2841
2841
  id: "dateStart",
2842
2842
  label: o,
2843
- onChange: C,
2843
+ onChange: D,
2844
2844
  value: v,
2845
2845
  required: u,
2846
2846
  size: "compact",
@@ -2888,7 +2888,7 @@ const xi = N.div`
2888
2888
  onCloseRedefineConfirm: x,
2889
2889
  onConfirmRedefine: w
2890
2890
  } = e;
2891
- return /* @__PURE__ */ b(V, { children: [
2891
+ return /* @__PURE__ */ b(_, { children: [
2892
2892
  /* @__PURE__ */ a("form", { onSubmit: o.handleSubmit, children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", width: "100%", children: [
2893
2893
  /* @__PURE__ */ a(Be, { legend: "Decisión N° 01", spacing: "wide", children: /* @__PURE__ */ b(
2894
2894
  T,
@@ -2938,29 +2938,29 @@ const xi = N.div`
2938
2938
  }
2939
2939
  )
2940
2940
  ] }),
2941
- /* @__PURE__ */ a(T, { direction: "column", gap: "20px", children: r == null ? void 0 : r.map((S) => {
2942
- const D = S.__scopedName ?? `${S.groupKey}.${S.conditionName}`;
2941
+ /* @__PURE__ */ a(T, { direction: "column", gap: "20px", children: r == null ? void 0 : r.map((C) => {
2942
+ const N = C.__scopedName ?? `${C.groupKey}.${C.conditionName}`;
2943
2943
  return /* @__PURE__ */ b(T, { gap: "16px", alignItems: "center", children: [
2944
2944
  /* @__PURE__ */ b(xi, { children: [
2945
2945
  /* @__PURE__ */ a(
2946
2946
  pn,
2947
2947
  {
2948
- condition: S,
2948
+ condition: C,
2949
2949
  formik: o
2950
2950
  }
2951
2951
  ),
2952
- S.timeUnit && /* @__PURE__ */ a(R, { as: "span", size: "medium", padding: "0 0 0 16px", children: S.__unitAfterInput })
2952
+ C.timeUnit && /* @__PURE__ */ a(R, { as: "span", size: "medium", padding: "0 0 0 16px", children: C.__unitAfterInput })
2953
2953
  ] }),
2954
2954
  /* @__PURE__ */ a(
2955
2955
  B,
2956
2956
  {
2957
- icon: /* @__PURE__ */ a(yt, {}),
2957
+ icon: /* @__PURE__ */ a(vt, {}),
2958
2958
  appearance: "danger",
2959
2959
  cursorHover: !0,
2960
- onClick: () => u(D)
2960
+ onClick: () => u(N)
2961
2961
  }
2962
2962
  )
2963
- ] }, D);
2963
+ ] }, N);
2964
2964
  }) }),
2965
2965
  s && /* @__PURE__ */ a(R, { type: "label", size: "medium", appearance: "danger", children: n ?? "Existen errores en el formulario, por favor revísalos." })
2966
2966
  ] }) }),
@@ -2975,10 +2975,10 @@ const xi = N.div`
2975
2975
  messageEnd: o.errors.validUntil,
2976
2976
  statusStart: h,
2977
2977
  statusEnd: d,
2978
- onHandleStartChange: (S) => o.setFieldValue("effectiveFrom", S.target.value),
2979
- onHandleEndChange: (S) => o.setFieldValue("validUntil", S.target.value),
2980
- onCheckClosedChange: (S) => {
2981
- o.setFieldValue("checkClosed", S), S && o.setFieldValue("validUntil", "");
2978
+ onHandleStartChange: (C) => o.setFieldValue("effectiveFrom", C.target.value),
2979
+ onHandleEndChange: (C) => o.setFieldValue("validUntil", C.target.value),
2980
+ onCheckClosedChange: (C) => {
2981
+ o.setFieldValue("checkClosed", C), C && o.setFieldValue("validUntil", "");
2982
2982
  },
2983
2983
  checkedClosed: o.values.checkClosed
2984
2984
  }
@@ -3071,15 +3071,15 @@ function Ri(e) {
3071
3071
  const Ue = (e) => {
3072
3072
  if (typeof e == "string") {
3073
3073
  const t = e.toLowerCase();
3074
- if (t.includes("equal")) return oe.EQUAL;
3075
- if (t.includes("greater")) return oe.GREATER_THAN;
3076
- if (t.includes("less")) return oe.LESS_THAN;
3077
- if (t.includes("range") || t.includes("between")) return oe.RANGE;
3078
- if (t.includes("multi")) return oe.LIST_OF_VALUES_MULTI;
3074
+ if (t.includes("equal")) return re.EQUAL;
3075
+ if (t.includes("greater")) return re.GREATER_THAN;
3076
+ if (t.includes("less")) return re.LESS_THAN;
3077
+ if (t.includes("range") || t.includes("between")) return re.RANGE;
3078
+ if (t.includes("multi")) return re.LIST_OF_VALUES_MULTI;
3079
3079
  if (t.includes("list_of_values") || t.includes("among") || t.includes("in"))
3080
- return oe.LIST_OF_VALUES;
3080
+ return re.LIST_OF_VALUES;
3081
3081
  }
3082
- return e ?? oe.EQUAL;
3082
+ return e ?? re.EQUAL;
3083
3083
  }, Ge = (e) => {
3084
3084
  switch (e) {
3085
3085
  case P.LIST_OF_VALUES_MULTI:
@@ -3119,7 +3119,7 @@ const Ue = (e) => {
3119
3119
  decision: t,
3120
3120
  onSubmitEvent: n,
3121
3121
  textValues: r
3122
- }), p = u ?? t, d = xe(p), h = xe(t), g = Bn(
3122
+ }), p = u ?? t, d = Te(p), h = Te(t), g = Bn(
3123
3123
  h,
3124
3124
  ($) => !$.hidden
3125
3125
  ), f = Object.keys(g), m = [
@@ -3131,191 +3131,187 @@ const Ue = (e) => {
3131
3131
  const O = $ === "group-primary" ? "mainCondition" : `alternateCondition-${x++}`;
3132
3132
  return v[O] = $, {
3133
3133
  id: O,
3134
- label: $ === "group-primary" ? mt($, 0) : mt($, Number(O.split("-").at(-1))),
3134
+ label: $ === "group-primary" ? ft($, 0) : ft($, Number(O.split("-").at(-1))),
3135
3135
  isDisabled: !1
3136
3136
  };
3137
- }), [S, D] = _.useState(
3137
+ }), [C, N] = j.useState(
3138
3138
  ((Pe = w[0]) == null ? void 0 : Pe.id) ?? "mainCondition"
3139
- ), C = ($) => D($), k = v[S] ?? "group-primary";
3140
- _.useEffect(() => {
3139
+ ), D = ($) => N($), k = v[C] ?? "group-primary";
3140
+ j.useEffect(() => {
3141
3141
  var U;
3142
3142
  const $ = (U = l.values) == null ? void 0 : U.conditionsThatEstablishesTheDecision;
3143
3143
  let O = !1;
3144
3144
  if ($ && typeof $ == "object" && (O = Object.values($).some(
3145
- (X) => X && typeof X == "object" && Object.keys(X).length > 0
3145
+ (V) => V && typeof V == "object" && Object.keys(V).length > 0
3146
3146
  )), O) return;
3147
- const E = xe(t);
3148
- if (!E || Object.keys(E).length === 0)
3147
+ const S = Te(t);
3148
+ if (!S || Object.keys(S).length === 0)
3149
3149
  return;
3150
- const j = Object.fromEntries(
3151
- Object.entries(E).map(([X, G]) => {
3152
- const ye = Object.fromEntries(
3153
- G.map((ce) => {
3154
- const fe = Ue(ce.howToSetTheCondition), Ce = ce.value ?? Ge(fe);
3155
- return [ce.conditionName, Ce];
3150
+ const z = Object.fromEntries(
3151
+ Object.entries(S).map(([V, he]) => {
3152
+ const ve = Object.fromEntries(
3153
+ he.map((ee) => {
3154
+ const Se = Ue(ee.howToSetTheCondition), Ce = ee.value ?? Ge(Se);
3155
+ return [ee.conditionName, Ce];
3156
3156
  })
3157
3157
  );
3158
- return [X, ye];
3158
+ return [V, ve];
3159
3159
  })
3160
3160
  );
3161
3161
  l.setFieldValue(
3162
3162
  "conditionsThatEstablishesTheDecision",
3163
- j,
3163
+ z,
3164
3164
  !1
3165
3165
  );
3166
- }, [t]), _.useEffect(() => {
3167
- var G;
3168
- const $ = (G = l.values) == null ? void 0 : G.conditionsThatEstablishesTheDecision;
3166
+ }, [t]), j.useEffect(() => {
3167
+ var he;
3168
+ const $ = (he = l.values) == null ? void 0 : he.conditionsThatEstablishesTheDecision;
3169
3169
  if (!$ || typeof $ != "object") return;
3170
- const O = xe(p), E = Object.entries($).map(
3171
- ([ye, ce]) => {
3172
- const fe = O[ye] || [], Ce = Object.keys(ce).map((Te) => {
3173
- const z = ce[Te], te = fe.find((ar) => ar.conditionName === Te) || {}, It = Ue(
3174
- te.howToSetTheCondition ?? (z == null ? void 0 : z.howToSetTheCondition)
3175
- ), at = te.value ?? Ge(It), lt = z && typeof z == "object" && "value" in z ? z.value : z;
3170
+ const O = Te(p), S = Object.entries($).map(
3171
+ ([ve, ee]) => {
3172
+ const Se = O[ve] || [], Ce = Object.keys(ee).map((ye) => {
3173
+ const G = ee[ye], de = Se.find((ar) => ar.conditionName === ye) || {}, at = Ue(
3174
+ de.howToSetTheCondition ?? (G == null ? void 0 : G.howToSetTheCondition)
3175
+ ), $t = de.value ?? Ge(at), cn = G && typeof G == "object" && "value" in G ? G.value : G;
3176
3176
  return {
3177
- ...te,
3178
- ...typeof z == "object" && !Array.isArray(z) ? z : {},
3179
- conditionName: Te,
3180
- value: lt !== void 0 ? lt : at
3177
+ ...de,
3178
+ ...typeof G == "object" && !Array.isArray(G) ? G : {},
3179
+ conditionName: ye,
3180
+ value: cn !== void 0 ? cn : $t
3181
3181
  };
3182
3182
  });
3183
3183
  return {
3184
- ConditionGroupId: ye,
3184
+ ConditionGroupId: ve,
3185
3185
  conditionsThatEstablishesTheDecision: Ce
3186
3186
  };
3187
3187
  }
3188
- ), j = l.values.conditionGroups, U = JSON.stringify(E), X = JSON.stringify(j ?? []);
3189
- U !== X && l.setFieldValue("conditionGroups", E, !1);
3188
+ ), z = l.values.conditionGroups, U = JSON.stringify(S), V = JSON.stringify(z ?? []);
3189
+ U !== V && l.setFieldValue("conditionGroups", S, !1);
3190
3190
  }, [(M = l.values) == null ? void 0 : M.conditionsThatEstablishesTheDecision, p]);
3191
- const L = _.useMemo(() => {
3192
- const $ = [
3191
+ const L = j.useMemo(() => {
3192
+ const O = [
3193
3193
  ...Object.keys(g).filter(
3194
- (j) => j === "group-primary"
3194
+ (S) => S === "group-primary"
3195
3195
  ),
3196
3196
  ...Object.keys(g).filter(
3197
- (j) => j !== "group-primary"
3197
+ (S) => S !== "group-primary"
3198
3198
  )
3199
- ];
3200
- let O = !1;
3201
- const E = $.map((j) => {
3202
- const X = (g[j] ?? []).map((G, ye) => {
3203
- const ce = !O && j === "group-primary" && ye === 0;
3204
- ce && (O = !0);
3205
- const fe = Ue(G.howToSetTheCondition), Ce = Ci({
3206
- label: G.labelName || "",
3207
- howToSet: fe,
3208
- isFirst: ce
3209
- }), Te = G.timeUnit ? Ut("", G.timeUnit, !0).trim() : "", z = `${j}.${G.conditionName}`, te = Oi(
3199
+ ].map((S) => {
3200
+ const U = (g[S] ?? []).map((V, he) => {
3201
+ const ve = he === 0, ee = Ue(V.howToSetTheCondition), Se = Ci({
3202
+ label: V.labelName || "",
3203
+ howToSet: ee,
3204
+ isFirst: ve
3205
+ }), Ce = V.timeUnit ? Pt("", V.timeUnit, !0).trim() : "", ye = `${S}.${V.conditionName}`, G = Oi(
3210
3206
  l.values,
3211
- j,
3212
- G.conditionName
3213
- ), It = Fi(
3207
+ S,
3208
+ V.conditionName
3209
+ ), de = Fi(
3214
3210
  l.values,
3215
- j,
3216
- G.conditionName
3217
- ), at = te !== void 0 ? te : It, lt = at !== void 0 ? at : Ge(fe);
3211
+ S,
3212
+ V.conditionName
3213
+ ), at = G !== void 0 ? G : de, $t = at !== void 0 ? at : Ge(ee);
3218
3214
  return {
3219
- ...G,
3220
- __originalConditionName: G.conditionName,
3221
- __groupKey: j,
3222
- __howToSet: fe,
3223
- __scopedName: z,
3224
- conditionName: G.conditionName,
3225
- groupKey: j,
3226
- labelName: Ce,
3227
- __unitAfterInput: Te,
3228
- value: lt
3215
+ ...V,
3216
+ __originalConditionName: V.conditionName,
3217
+ __groupKey: S,
3218
+ __howToSet: ee,
3219
+ __scopedName: ye,
3220
+ conditionName: V.conditionName,
3221
+ groupKey: S,
3222
+ labelName: Se,
3223
+ __unitAfterInput: Ce,
3224
+ value: $t
3229
3225
  };
3230
3226
  });
3231
- return [j, X];
3227
+ return [S, U];
3232
3228
  });
3233
- return Object.fromEntries(E);
3234
- }, [g, l.values]), F = L[k] ?? [], se = L["group-primary"] ?? [], ee = {
3229
+ return Object.fromEntries(O);
3230
+ }, [g, l.values]), F = L[k] ?? [], le = L["group-primary"] ?? [], K = {
3235
3231
  decisionDataType: t.decisionDataType,
3236
3232
  howToSetTheCondition: t.howToSetTheDecision,
3237
3233
  labelName: t.labelName,
3238
3234
  listOfPossibleValues: t.listOfPossibleValues,
3239
3235
  ruleName: t.ruleName,
3240
- timeUnit: t.timeUnit ? Ut("", t.timeUnit, !0).trim() : ""
3241
- }, de = l.submitCount > 0 || !!l.touched.effectiveFrom, Ie = l.submitCount > 0 || !!l.touched.validUntil, Dt = de ? l.errors.effectiveFrom ? "invalid" : "valid" : void 0, nt = Ie ? l.errors.validUntil ? "invalid" : "valid" : void 0, _e = _.useMemo(() => {
3236
+ timeUnit: t.timeUnit ? Pt("", t.timeUnit, !0).trim() : ""
3237
+ }, se = l.submitCount > 0 || !!l.touched.effectiveFrom, Ie = l.submitCount > 0 || !!l.touched.validUntil, Ct = se ? l.errors.effectiveFrom ? "invalid" : "valid" : void 0, nt = Ie ? l.errors.validUntil ? "invalid" : "valid" : void 0, _e = j.useMemo(() => {
3242
3238
  const $ = l.errors.conditionsThatEstablishesTheDecision;
3243
3239
  if (!$) return;
3244
3240
  if (typeof $ == "string") return $;
3245
- const O = (E) => {
3246
- if (E) {
3247
- if (typeof E == "string") return E;
3248
- if (Array.isArray(E))
3249
- for (const j of E) {
3250
- const U = O(j);
3241
+ const O = (S) => {
3242
+ if (S) {
3243
+ if (typeof S == "string") return S;
3244
+ if (Array.isArray(S))
3245
+ for (const z of S) {
3246
+ const U = O(z);
3251
3247
  if (U) return U;
3252
3248
  }
3253
- else if (typeof E == "object")
3254
- for (const j of Object.values(E)) {
3255
- const U = O(j);
3249
+ else if (typeof S == "object")
3250
+ for (const z of Object.values(S)) {
3251
+ const U = O(z);
3256
3252
  if (U) return U;
3257
3253
  }
3258
3254
  }
3259
3255
  };
3260
3256
  return O($);
3261
- }, [l.errors.conditionsThatEstablishesTheDecision]), Nt = l.submitCount > 0 && !!_e, Et = ($) => {
3257
+ }, [l.errors.conditionsThatEstablishesTheDecision]), Dt = l.submitCount > 0 && !!_e, Nt = ($) => {
3262
3258
  const O = ($ == null ? void 0 : $.__howToSet) ?? Ue($ == null ? void 0 : $.howToSetTheCondition);
3263
3259
  return Ge(O);
3264
- }, rt = ($, O, E) => {
3265
- var G, ye, ce, fe, Ce;
3266
- const j = `conditionsThatEstablishesTheDecision.${$}.${O}`, U = (ce = (ye = (G = l.values) == null ? void 0 : G.conditionsThatEstablishesTheDecision) == null ? void 0 : ye[$]) == null ? void 0 : ce[O];
3267
- U && typeof U == "object" && !Array.isArray(U) ? l.setFieldValue(`${j}.value`, E, !1) : l.setFieldValue(j, E, !1);
3268
- const X = (fe = l.values) == null ? void 0 : fe.conditionGroups;
3269
- if (Array.isArray(X)) {
3270
- const Te = X.findIndex((z) => (z == null ? void 0 : z.ConditionGroupId) === $);
3271
- if (Te >= 0) {
3272
- const z = (Ce = X[Te].conditionsThatEstablishesTheDecision) == null ? void 0 : Ce.findIndex(
3273
- (te) => (te == null ? void 0 : te.conditionName) === O
3260
+ }, rt = ($, O, S) => {
3261
+ var he, ve, ee, Se, Ce;
3262
+ const z = `conditionsThatEstablishesTheDecision.${$}.${O}`, U = (ee = (ve = (he = l.values) == null ? void 0 : he.conditionsThatEstablishesTheDecision) == null ? void 0 : ve[$]) == null ? void 0 : ee[O];
3263
+ U && typeof U == "object" && !Array.isArray(U) ? l.setFieldValue(`${z}.value`, S, !1) : l.setFieldValue(z, S, !1);
3264
+ const V = (Se = l.values) == null ? void 0 : Se.conditionGroups;
3265
+ if (Array.isArray(V)) {
3266
+ const ye = V.findIndex((G) => (G == null ? void 0 : G.ConditionGroupId) === $);
3267
+ if (ye >= 0) {
3268
+ const G = (Ce = V[ye].conditionsThatEstablishesTheDecision) == null ? void 0 : Ce.findIndex(
3269
+ (de) => (de == null ? void 0 : de.conditionName) === O
3274
3270
  );
3275
- if (z >= 0) {
3276
- const te = JSON.parse(JSON.stringify(X));
3277
- te[Te].conditionsThatEstablishesTheDecision[z].value = E, l.setFieldValue("conditionGroups", te, !1);
3271
+ if (G >= 0) {
3272
+ const de = JSON.parse(JSON.stringify(V));
3273
+ de[ye].conditionsThatEstablishesTheDecision[G].value = S, l.setFieldValue("conditionGroups", de, !1);
3278
3274
  }
3279
3275
  }
3280
3276
  }
3281
3277
  }, ot = ($) => {
3282
- const [O, ...E] = $.split("."), j = E.join("."), U = Object.values(d).flat().find((G) => G.conditionName === j), X = Et(U || {});
3283
- rt(O, j, X), l.setFieldTouched(
3284
- `conditionsThatEstablishesTheDecision.${O}.${j}`,
3278
+ const [O, ...S] = $.split("."), z = S.join("."), U = Object.values(d).flat().find((he) => he.conditionName === z), V = Nt(U || {});
3279
+ rt(O, z, V), l.setFieldTouched(
3280
+ `conditionsThatEstablishesTheDecision.${O}.${z}`,
3285
3281
  !1,
3286
3282
  !1
3287
3283
  );
3288
3284
  }, it = () => {
3289
3285
  (d[k] ?? []).forEach((O) => {
3290
- const E = Ue(O == null ? void 0 : O.howToSetTheCondition), j = Ge(E);
3291
- rt(k, O.conditionName, j);
3286
+ const S = Ue(O == null ? void 0 : O.howToSetTheCondition), z = Ge(S);
3287
+ rt(k, O.conditionName, z);
3292
3288
  });
3293
- }, [kt, Ve] = _.useState(!1);
3289
+ }, [Et, Ve] = j.useState(!1);
3294
3290
  return /* @__PURE__ */ a(
3295
3291
  Si,
3296
3292
  {
3297
- activeTab: S,
3293
+ activeTab: C,
3298
3294
  conditionsErrorText: _e,
3299
3295
  currentConditions: F,
3300
3296
  decision: t,
3301
3297
  formik: l,
3302
- normalizedDecision: ee,
3298
+ normalizedDecision: K,
3303
3299
  onCancel: o,
3304
3300
  onRedefineCurrentTab: it,
3305
- onTabChange: C,
3301
+ onTabChange: D,
3306
3302
  onClearCondition: ($) => {
3307
3303
  ot($), i == null || i($);
3308
3304
  },
3309
- showConditionsError: Nt,
3305
+ showConditionsError: Dt,
3310
3306
  tabs: w,
3311
3307
  termEndStatus: nt,
3312
- termStartStatus: Dt,
3308
+ termStartStatus: Ct,
3313
3309
  textValues: r,
3314
- visibleConditions: se,
3310
+ visibleConditions: le,
3315
3311
  visibleConditionsByGroup: L,
3316
3312
  handleToggleNoneChange: s,
3317
3313
  portalId: "redefine-confirm-portal",
3318
- showRedefineConfirm: kt,
3314
+ showRedefineConfirm: Et,
3319
3315
  onOpenRedefineConfirm: () => Ve(!0),
3320
3316
  onCloseRedefineConfirm: () => Ve(!1),
3321
3317
  onConfirmRedefine: () => {
@@ -3347,9 +3343,9 @@ const Ue = (e) => {
3347
3343
  terms: v = !0,
3348
3344
  onRemoveCondition: x,
3349
3345
  onRestoreConditions: w,
3350
- baseDecisionTemplate: S,
3351
- shouldRenderEmptyMessage: D = !0
3352
- } = e, [C, k] = q(null), L = ae("(max-width: 681px)"), { renderedCards: F, shouldRenderAddCard: se } = si({
3346
+ baseDecisionTemplate: C,
3347
+ shouldRenderEmptyMessage: N = !0
3348
+ } = e, [D, k] = q(null), L = ie("(max-width: 681px)"), { renderedCards: F, shouldRenderAddCard: le } = si({
3353
3349
  cardTitle: t,
3354
3350
  controls: n,
3355
3351
  customTitleContentAddCard: r,
@@ -3358,12 +3354,12 @@ const Ue = (e) => {
3358
3354
  handleOpenModal: h,
3359
3355
  handleDelete: m,
3360
3356
  textValues: c,
3361
- isOpenFor: (de) => C === de,
3362
- toggleAt: (de) => k((Ie) => Ie === de ? null : de),
3357
+ isOpenFor: (se) => D === se,
3358
+ toggleAt: (se) => k((Ie) => Ie === se ? null : se),
3363
3359
  editionMode: l
3364
- }), ee = (i == null ? void 0 : i.length) === 0 && !d;
3365
- return /* @__PURE__ */ b(V, { children: [
3366
- /* @__PURE__ */ a(ni, { children: /* @__PURE__ */ a(ri, { children: /* @__PURE__ */ a(T, { direction: "column", gap: "16px", padding: "6px", children: D && (ee ? /* @__PURE__ */ a(Be, { legend: "Decisiones", children: /* @__PURE__ */ b(
3360
+ }), K = (i == null ? void 0 : i.length) === 0 && !d;
3361
+ return /* @__PURE__ */ b(_, { children: [
3362
+ /* @__PURE__ */ a(ni, { children: /* @__PURE__ */ a(ri, { children: /* @__PURE__ */ a(T, { direction: "column", gap: "16px", padding: "6px", children: N && (K ? /* @__PURE__ */ a(Be, { legend: "Decisiones", children: /* @__PURE__ */ b(
3367
3363
  T,
3368
3364
  {
3369
3365
  direction: "column",
@@ -3390,14 +3386,14 @@ const Ue = (e) => {
3390
3386
  children: "Sin decisiones"
3391
3387
  }
3392
3388
  ),
3393
- /* @__PURE__ */ a(R, { as: "span", size: "medium", appearance: "gray", children: o || /* @__PURE__ */ b(V, { children: [
3389
+ /* @__PURE__ */ a(R, { as: "span", size: "medium", appearance: "gray", children: o || /* @__PURE__ */ b(_, { children: [
3394
3390
  "Aun no tienes decisiones definidas, para empezar haz clic en",
3395
3391
  r || ' "Agregar decisión"'
3396
3392
  ] }) })
3397
3393
  ]
3398
3394
  }
3399
3395
  ) }) : /* @__PURE__ */ b(
3400
- Se,
3396
+ we,
3401
3397
  {
3402
3398
  templateColumns: "1fr",
3403
3399
  autoFlow: "row dense",
@@ -3410,7 +3406,7 @@ const Ue = (e) => {
3410
3406
  height: L ? "auto" : "484px",
3411
3407
  children: [
3412
3408
  F,
3413
- se && zt({
3409
+ le && Gt({
3414
3410
  type: "add",
3415
3411
  index: i == null ? void 0 : i.length,
3416
3412
  controls: n,
@@ -3420,7 +3416,7 @@ const Ue = (e) => {
3420
3416
  handleOpenModal: h,
3421
3417
  handleDelete: m,
3422
3418
  textValues: c,
3423
- shouldRenderEmptyMessage: D,
3419
+ shouldRenderEmptyMessage: N,
3424
3420
  terms: v,
3425
3421
  editionMode: l
3426
3422
  })
@@ -3438,7 +3434,7 @@ const Ue = (e) => {
3438
3434
  Li,
3439
3435
  {
3440
3436
  decision: p || u,
3441
- fullTemplate: S ?? u,
3437
+ fullTemplate: C ?? u,
3442
3438
  onSubmitEvent: f,
3443
3439
  textValues: c,
3444
3440
  onCancel: () => g ? g() : () => {
@@ -3454,7 +3450,7 @@ const Ue = (e) => {
3454
3450
  border: {
3455
3451
  color: A.palette.neutral.N40
3456
3452
  }
3457
- }, ji = N.div`
3453
+ }, ji = E.div`
3458
3454
  border-width: 1px;
3459
3455
  border-style: solid;
3460
3456
  border-color: ${({ theme: e }) => {
@@ -3494,15 +3490,15 @@ const Vi = (e, t) => {
3494
3490
  return Je(() => {
3495
3491
  if (!e.current || !l.current) return;
3496
3492
  const s = e.current, p = l.current, d = () => {
3497
- var S;
3493
+ var C;
3498
3494
  const g = s.clientWidth, f = Array.from(
3499
3495
  p.querySelectorAll('[data-filter-tag="true"]')
3500
3496
  ), m = 48;
3501
3497
  let v = 0;
3502
3498
  const x = [], w = [];
3503
- for (let D = 0; D < t.length; D++) {
3504
- const C = ((S = f[D]) == null ? void 0 : S.offsetWidth) ?? 0;
3505
- v + C + m <= g ? (x.push(t[D]), v += C) : w.push(t[D]);
3499
+ for (let N = 0; N < t.length; N++) {
3500
+ const D = ((C = f[N]) == null ? void 0 : C.offsetWidth) ?? 0;
3501
+ v + D + m <= g ? (x.push(t[N]), v += D) : w.push(t[N]);
3506
3502
  }
3507
3503
  r(x), i(w), u(w.length > 0);
3508
3504
  }, h = new ResizeObserver(() => {
@@ -3511,26 +3507,26 @@ const Vi = (e, t) => {
3511
3507
  return h.observe(s), () => h.disconnect();
3512
3508
  }, [t, e]), { visible: n, hidden: o, showOverflowIndicator: c, measurementRef: l };
3513
3509
  };
3514
- N.div`
3510
+ E.div`
3515
3511
  & > div {
3516
3512
  width: 100%;
3517
3513
  }
3518
3514
  `;
3519
- const Pi = N.div`
3515
+ const Pi = E.div`
3520
3516
  position: absolute;
3521
3517
  top: calc(100% + 4px);
3522
3518
  right: 0;
3523
3519
  z-index: 1000;
3524
3520
  width: 170px;
3525
- `, Ui = N.div`
3521
+ `, Ui = E.div`
3526
3522
  position: absolute;
3527
3523
  visibility: hidden;
3528
3524
  pointer-events: none;
3529
3525
  height: 0;
3530
3526
  overflow: hidden;
3531
- `, Gi = N.div`
3527
+ `, Gi = E.div`
3532
3528
  cursor: pointer;
3533
- `, qt = {
3529
+ `, Bt = {
3534
3530
  border: {
3535
3531
  color: {
3536
3532
  regular: A.palette.neutral.N40,
@@ -3566,7 +3562,7 @@ const Pi = N.div`
3566
3562
  hover: A.palette.neutral.N30
3567
3563
  }
3568
3564
  }
3569
- }, zi = N.li`
3565
+ }, zi = E.li`
3570
3566
  display: flex;
3571
3567
  align-items: center;
3572
3568
  align-self: stretch;
@@ -3581,12 +3577,12 @@ const Pi = N.div`
3581
3577
  &:hover {
3582
3578
  background-color: ${({ theme: e }) => {
3583
3579
  var t, n, r;
3584
- return ((r = (n = (t = e == null ? void 0 : e.input) == null ? void 0 : t.background) == null ? void 0 : n.color) == null ? void 0 : r.regular) || qt.background.color.regular;
3580
+ return ((r = (n = (t = e == null ? void 0 : e.input) == null ? void 0 : t.background) == null ? void 0 : n.color) == null ? void 0 : r.regular) || Bt.background.color.regular;
3585
3581
  }};
3586
3582
  }
3587
3583
  `, Hi = (e) => {
3588
3584
  var h, g, f, m, v, x;
3589
- const { id: t, label: n, leadingIcon: r, onClose: o } = e, [i, c] = q(!1), u = () => c(!0), l = () => c(!1), s = Dr(Cr), p = ((f = (g = (h = s == null ? void 0 : s.input) == null ? void 0 : h.option) == null ? void 0 : g.appearance) == null ? void 0 : f.hover) ?? qt.option.appearance.hover, d = ((x = (v = (m = s == null ? void 0 : s.input) == null ? void 0 : m.option) == null ? void 0 : v.appearance) == null ? void 0 : x.regular) ?? qt.option.appearance.regular;
3585
+ const { id: t, label: n, leadingIcon: r, onClose: o } = e, [i, c] = q(!1), u = () => c(!0), l = () => c(!1), s = Dr(Cr), p = ((f = (g = (h = s == null ? void 0 : s.input) == null ? void 0 : h.option) == null ? void 0 : g.appearance) == null ? void 0 : f.hover) ?? Bt.option.appearance.hover, d = ((x = (v = (m = s == null ? void 0 : s.input) == null ? void 0 : m.option) == null ? void 0 : v.appearance) == null ? void 0 : x.regular) ?? Bt.option.appearance.regular;
3590
3586
  return /* @__PURE__ */ a(
3591
3587
  zi,
3592
3588
  {
@@ -3597,7 +3593,7 @@ const Pi = N.div`
3597
3593
  w.stopPropagation();
3598
3594
  },
3599
3595
  children: /* @__PURE__ */ b(
3600
- Se,
3596
+ we,
3601
3597
  {
3602
3598
  alignItems: "center",
3603
3599
  gap: "8px",
@@ -3651,41 +3647,41 @@ const Pi = N.div`
3651
3647
  hidden: d,
3652
3648
  showOverflowIndicator: h,
3653
3649
  measurementRef: g
3654
- } = Vi(u, t), [f, m] = q(!1), v = (C) => {
3655
- C.stopPropagation(), m((k) => !k);
3650
+ } = Vi(u, t), [f, m] = q(!1), v = (D) => {
3651
+ D.stopPropagation(), m((k) => !k);
3656
3652
  };
3657
3653
  Je(() => {
3658
- const C = (k) => {
3659
- var se, ee;
3654
+ const D = (k) => {
3655
+ var le, K;
3660
3656
  const L = k.target;
3661
- !((se = l.current) != null && se.contains(L)) && !((ee = s.current) != null && ee.contains(L)) && m(!1);
3657
+ !((le = l.current) != null && le.contains(L)) && !((K = s.current) != null && K.contains(L)) && m(!1);
3662
3658
  };
3663
- return f && window.addEventListener("mousedown", C), () => window.removeEventListener("mousedown", C);
3659
+ return f && window.addEventListener("mousedown", D), () => window.removeEventListener("mousedown", D);
3664
3660
  }, [f]);
3665
- const x = t.length === 0, w = f && d.length > 0, S = d.map((C) => ({
3666
- id: C.label,
3667
- value: C.label,
3668
- label: C.label,
3669
- icon: C.icon
3670
- })), D = (C) => {
3661
+ const x = t.length === 0, w = f && d.length > 0, C = d.map((D) => ({
3662
+ id: D.label,
3663
+ value: D.label,
3664
+ label: D.label,
3665
+ icon: D.icon
3666
+ })), N = (D) => {
3671
3667
  var k, L;
3672
- (L = (k = d.find((F) => F.label === C)) == null ? void 0 : k.onClose) == null || L.call(k), m(!1);
3668
+ (L = (k = d.find((F) => F.label === D)) == null ? void 0 : k.onClose) == null || L.call(k), m(!1);
3673
3669
  };
3674
3670
  return /* @__PURE__ */ b(_i, { borderRadius: "8px", width: "100%", children: [
3675
- /* @__PURE__ */ a(Ui, { ref: g, children: t.map((C) => /* @__PURE__ */ a("div", { "data-filter-tag": "true", children: /* @__PURE__ */ a(
3671
+ /* @__PURE__ */ a(Ui, { ref: g, children: t.map((D) => /* @__PURE__ */ a("div", { "data-filter-tag": "true", children: /* @__PURE__ */ a(
3676
3672
  He,
3677
3673
  {
3678
3674
  appearance: "primary",
3679
3675
  displayIcon: !0,
3680
3676
  removable: !0,
3681
- icon: C.icon,
3682
- label: C.label,
3683
- onClose: C.onClose
3677
+ icon: D.icon,
3678
+ label: D.label,
3679
+ onClose: D.onClose
3684
3680
  }
3685
- ) }, C.label)) }),
3686
- /* @__PURE__ */ b(Se, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
3681
+ ) }, D.label)) }),
3682
+ /* @__PURE__ */ b(we, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
3687
3683
  /* @__PURE__ */ a(
3688
- pe,
3684
+ ue,
3689
3685
  {
3690
3686
  ref: u,
3691
3687
  background: !0,
@@ -3696,19 +3692,19 @@ const Pi = N.div`
3696
3692
  alignItems: "center",
3697
3693
  padding: "0px 8px",
3698
3694
  border: !0,
3699
- children: x ? /* @__PURE__ */ a(R, { size: "small", type: "label", appearance: "gray", children: o }) : /* @__PURE__ */ b(V, { children: [
3700
- p.map((C) => /* @__PURE__ */ a(
3695
+ children: x ? /* @__PURE__ */ a(R, { size: "small", type: "label", appearance: "gray", children: o }) : /* @__PURE__ */ b(_, { children: [
3696
+ p.map((D) => /* @__PURE__ */ a(
3701
3697
  He,
3702
3698
  {
3703
3699
  "data-filter-tag": "true",
3704
3700
  appearance: "primary",
3705
3701
  displayIcon: !0,
3706
3702
  removable: !0,
3707
- icon: C.icon,
3708
- label: C.label,
3709
- onClose: C.onClose
3703
+ icon: D.icon,
3704
+ label: D.label,
3705
+ onClose: D.onClose
3710
3706
  },
3711
- C.label
3707
+ D.label
3712
3708
  )),
3713
3709
  h && /* @__PURE__ */ b(
3714
3710
  "div",
@@ -3726,20 +3722,20 @@ const Pi = N.div`
3726
3722
  w && /* @__PURE__ */ a(Pi, { ref: l, children: /* @__PURE__ */ a(
3727
3723
  wr,
3728
3724
  {
3729
- options: S,
3730
- onOptionClick: D,
3731
- children: d.map((C) => /* @__PURE__ */ a(
3725
+ options: C,
3726
+ onOptionClick: N,
3727
+ children: d.map((D) => /* @__PURE__ */ a(
3732
3728
  Hi,
3733
3729
  {
3734
- id: C.label,
3735
- label: C.label,
3736
- leadingIcon: C.icon,
3730
+ id: D.label,
3731
+ label: D.label,
3732
+ leadingIcon: D.icon,
3737
3733
  onClose: () => {
3738
3734
  var k;
3739
- (k = C.onClose) == null || k.call(C), m(!1);
3735
+ (k = D.onClose) == null || k.call(D), m(!1);
3740
3736
  }
3741
3737
  },
3742
- C.label
3738
+ D.label
3743
3739
  ))
3744
3740
  }
3745
3741
  ) })
@@ -3773,13 +3769,13 @@ const Pi = N.div`
3773
3769
  ] })
3774
3770
  ] });
3775
3771
  }, ms = (e) => {
3776
- const { appliedFilters: t, fields: n, onChange: r, noFiltersLabel: o } = e, i = ae("(max-width: 768px)"), c = !t || t.length === 0;
3772
+ const { appliedFilters: t, fields: n, onChange: r, noFiltersLabel: o } = e, i = ie("(max-width: 768px)"), c = !t || t.length === 0;
3777
3773
  return /* @__PURE__ */ b(T, { direction: "column", gap: "16px", children: [
3778
- i && /* @__PURE__ */ b(V, { children: [
3774
+ i && /* @__PURE__ */ b(_, { children: [
3779
3775
  /* @__PURE__ */ b(T, { gap: "6px", width: "100%", alignItems: "center", children: [
3780
3776
  /* @__PURE__ */ a(B, { appearance: "gray", icon: /* @__PURE__ */ a(_n, {}) }),
3781
3777
  /* @__PURE__ */ a(
3782
- pe,
3778
+ ue,
3783
3779
  {
3784
3780
  background: !0,
3785
3781
  borderRadius: "8px",
@@ -3897,14 +3893,14 @@ const Pi = N.div`
3897
3893
  } : n;
3898
3894
  });
3899
3895
  }, qi = (e) => ({
3900
- schema: be().required("Requerido").test(
3896
+ schema: me().required("Requerido").test(
3901
3897
  "non-empty",
3902
3898
  "El valor no puede estar vacío",
3903
3899
  (t) => t != null && t.trim() !== ""
3904
3900
  ),
3905
3901
  value: e
3906
3902
  }), Wi = (e) => ({
3907
- schema: we().test(
3903
+ schema: xe().test(
3908
3904
  "isArrayOrString",
3909
3905
  "Debe ser un array de strings/numbers o un solo string",
3910
3906
  (t) => Array.isArray(t) ? t.every(
@@ -3913,7 +3909,7 @@ const Pi = N.div`
3913
3909
  ),
3914
3910
  value: e
3915
3911
  }), Yi = (e) => ({
3916
- schema: we().test(
3912
+ schema: xe().test(
3917
3913
  "isArrayOrString",
3918
3914
  "Debe ser un array de strings/numbers o un solo string ",
3919
3915
  (t) => Array.isArray(t) ? t.every(
@@ -3924,7 +3920,7 @@ const Pi = N.div`
3924
3920
  }), Xi = (e) => {
3925
3921
  const t = (e == null ? void 0 : e.from) ?? 0, n = (e == null ? void 0 : e.to) ?? 0;
3926
3922
  return {
3927
- schema: Q({
3923
+ schema: X({
3928
3924
  from: ge().required("El campo 'Rango desde' es requerido").max(n, "'Rango desde' no puede ser mayor que 'Rango hasta'").min(0, "'Rango desde' no puede ser menor que 0"),
3929
3925
  to: ge().min(0, "El campo 'Rango hasta' debe ser mayor o igual a 0").required("El campo 'Rango hasta' es requerido").test(
3930
3926
  "is-greater",
@@ -3937,19 +3933,19 @@ const Pi = N.div`
3937
3933
  }),
3938
3934
  value: { from: t, to: n }
3939
3935
  };
3940
- }, Ft = (e, t) => t === H.PERCENTAGE ? {
3936
+ }, Ot = (e, t) => t === H.PERCENTAGE ? {
3941
3937
  schema: ge().required("El campo tipo porcentaje es requerido").min(0, "El campo tipo porcentaje no puede ser menor que 0").max(100, "El campo tipo porcentaje no puede ser mayor que 100"),
3942
3938
  value: e
3943
3939
  } : {
3944
- schema: be().required("Requerido"),
3940
+ schema: me().required("Requerido"),
3945
3941
  value: e
3946
3942
  }, Qi = {
3947
3943
  [I.LIST_OF_VALUES]: Wi,
3948
3944
  [I.LIST_OF_VALUES_MULTI]: Yi,
3949
3945
  [I.RANGE]: Xi,
3950
- [I.GREATER_THAN]: Ft,
3951
- [I.LESS_THAN]: Ft,
3952
- [I.EQUAL]: Ft
3946
+ [I.GREATER_THAN]: Ot,
3947
+ [I.LESS_THAN]: Ot,
3948
+ [I.EQUAL]: Ot
3953
3949
  }, Cn = (e) => Qi[e] || qi;
3954
3950
  function Ji({
3955
3951
  decision: e,
@@ -3970,7 +3966,7 @@ function Ji({
3970
3966
  };
3971
3967
  let o;
3972
3968
  const i = {
3973
- ruleName: be().required("El nombre de la regla es requerido"),
3969
+ ruleName: me().required("El nombre de la regla es requerido"),
3974
3970
  value: Qe(() => Cn(
3975
3971
  o.values.howToSetTheDecision
3976
3972
  )(
@@ -4016,7 +4012,7 @@ function Ji({
4016
4012
  // }),
4017
4013
  conditionsThatEstablishesTheDecision: Qe((l, { parent: s }) => {
4018
4014
  var h;
4019
- if ((s == null ? void 0 : s.toggleNone) && Object.keys(s.conditionsThatEstablishesTheDecision || {}).length > 0) return Q().shape({});
4015
+ if ((s == null ? void 0 : s.toggleNone) && Object.keys(s.conditionsThatEstablishesTheDecision || {}).length > 0) return X().shape({});
4020
4016
  const d = ((h = e.conditionsThatEstablishesTheDecision) == null ? void 0 : h.reduce(
4021
4017
  (g, f) => {
4022
4018
  if (o.values.conditionsThatEstablishesTheDecision[f.conditionName] !== void 0) {
@@ -4032,7 +4028,7 @@ function Ji({
4032
4028
  },
4033
4029
  {}
4034
4030
  )) ?? {};
4035
- return Q(d);
4031
+ return X(d);
4036
4032
  })
4037
4033
  };
4038
4034
  n.terms && (i.effectiveFrom = Le().required(
@@ -4048,8 +4044,8 @@ function Ji({
4048
4044
  }
4049
4045
  ) : s.notRequired()
4050
4046
  ));
4051
- const c = Q(i);
4052
- return o = tn({
4047
+ const c = X(i);
4048
+ return o = en({
4053
4049
  initialValues: r,
4054
4050
  validationSchema: c,
4055
4051
  validateOnBlur: !0,
@@ -4091,7 +4087,7 @@ function Ji({
4091
4087
  });
4092
4088
  } };
4093
4089
  }
4094
- const Zi = N.div`
4090
+ const Zi = E.div`
4095
4091
  & > div {
4096
4092
  border-radius: 8px;
4097
4093
  border: 1px solid
@@ -4100,7 +4096,7 @@ const Zi = N.div`
4100
4096
  return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
4101
4097
  }};
4102
4098
  }
4103
- `, Ki = N.div`
4099
+ `, Ki = E.div`
4104
4100
  width: 100%;
4105
4101
  height: 100%;
4106
4102
  overflow-y: auto;
@@ -4131,9 +4127,9 @@ const Zi = N.div`
4131
4127
  };
4132
4128
  return Je(() => {
4133
4129
  s(t);
4134
- }, [t]), /* @__PURE__ */ b(V, { children: [
4130
+ }, [t]), /* @__PURE__ */ b(_, { children: [
4135
4131
  /* @__PURE__ */ a(T, { children: /* @__PURE__ */ a(
4136
- Tt,
4132
+ yt,
4137
4133
  {
4138
4134
  checked: l,
4139
4135
  id: o,
@@ -4144,7 +4140,7 @@ const Zi = N.div`
4144
4140
  children: /* @__PURE__ */ a(R, { size: "medium", type: "label", weight: "bold", children: i })
4145
4141
  }
4146
4142
  ) }),
4147
- l && /* @__PURE__ */ a(V, { children: n })
4143
+ l && /* @__PURE__ */ a(_, { children: n })
4148
4144
  ] });
4149
4145
  }, ta = (e) => {
4150
4146
  const {
@@ -4161,14 +4157,14 @@ const Zi = N.div`
4161
4157
  messageEnd: d = "",
4162
4158
  statusStart: h = "pending",
4163
4159
  statusEnd: g = "pending"
4164
- } = e, [f, m] = q(c), [v, x] = q(l), [w, S] = q(s), D = ({ target: F }) => {
4160
+ } = e, [f, m] = q(c), [v, x] = q(l), [w, C] = q(s), N = ({ target: F }) => {
4165
4161
  m(F.checked), r && r(F.checked);
4166
- }, C = (F) => {
4162
+ }, D = (F) => {
4167
4163
  x(F.target.value), t(F);
4168
4164
  }, k = (F) => {
4169
- S(F.target.value), n(F);
4170
- }, L = ae("(max-width: 400px)");
4171
- return /* @__PURE__ */ b(V, { children: [
4165
+ C(F.target.value), n(F);
4166
+ }, L = ie("(max-width: 400px)");
4167
+ return /* @__PURE__ */ b(_, { children: [
4172
4168
  /* @__PURE__ */ b(T, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
4173
4169
  /* @__PURE__ */ a(
4174
4170
  R,
@@ -4189,10 +4185,10 @@ const Zi = N.div`
4189
4185
  wrap: "wrap",
4190
4186
  gap: "4px",
4191
4187
  children: /* @__PURE__ */ a(
4192
- Zt,
4188
+ Jt,
4193
4189
  {
4194
4190
  label: "Cerrada",
4195
- onChange: D,
4191
+ onChange: N,
4196
4192
  checked: f,
4197
4193
  value: ""
4198
4194
  }
@@ -4212,7 +4208,7 @@ const Zi = N.div`
4212
4208
  {
4213
4209
  id: "dateStart",
4214
4210
  label: o,
4215
- onChange: C,
4211
+ onChange: D,
4216
4212
  value: v,
4217
4213
  required: u,
4218
4214
  size: "compact",
@@ -4251,7 +4247,7 @@ const Zi = N.div`
4251
4247
  termEndStatus: p
4252
4248
  } = e;
4253
4249
  return /* @__PURE__ */ a("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
4254
- ft({
4250
+ gt({
4255
4251
  condition: i,
4256
4252
  formik: t,
4257
4253
  isDecision: !0
@@ -4274,7 +4270,7 @@ const Zi = N.div`
4274
4270
  children: [
4275
4271
  /* @__PURE__ */ a(R, { type: "title", size: "small", weight: "bold", appearance: "gray", children: n.factsThatConditionIt }),
4276
4272
  /* @__PURE__ */ a(
4277
- Tt,
4273
+ yt,
4278
4274
  {
4279
4275
  id: "toggleNone",
4280
4276
  onChange: () => c(!t.values.toggleNone),
@@ -4297,14 +4293,14 @@ const Zi = N.div`
4297
4293
  d.conditionName,
4298
4294
  d.howToSetTheCondition === I.LIST_OF_VALUES_MULTI
4299
4295
  )(h.target.checked),
4300
- children: ft({ condition: d, formik: t })
4296
+ children: gt({ condition: d, formik: t })
4301
4297
  },
4302
4298
  d.conditionName
4303
4299
  )) })
4304
4300
  ]
4305
4301
  }
4306
4302
  ) }) }),
4307
- n.terms && /* @__PURE__ */ b(V, { children: [
4303
+ n.terms && /* @__PURE__ */ b(_, { children: [
4308
4304
  /* @__PURE__ */ a(W, { dashed: !0 }),
4309
4305
  /* @__PURE__ */ a(
4310
4306
  ta,
@@ -4433,7 +4429,7 @@ const Zi = N.div`
4433
4429
  color: A.palette.neutral.N0
4434
4430
  }
4435
4431
  }
4436
- }, oa = N.div`
4432
+ }, oa = E.div`
4437
4433
  & > div {
4438
4434
  border: 1px solid
4439
4435
  ${({ theme: e, $active: t }) => {
@@ -4449,27 +4445,27 @@ const Zi = N.div`
4449
4445
  return ((o = (r = (n = e == null ? void 0 : e.menu) == null ? void 0 : n.item) == null ? void 0 : r.background) == null ? void 0 : o.hover) || De.item.background.hover;
4450
4446
  }};
4451
4447
  }
4452
- `, Dn = N.div`
4448
+ `, Dn = E.div`
4453
4449
  display: flex;
4454
4450
  align-items: center;
4455
4451
  gap: 12px;
4456
4452
  width: 100%;
4457
4453
  outline: none;
4458
4454
  cursor: pointer;
4459
- `, ia = N.div`
4455
+ `, ia = E.div`
4460
4456
  display: flex;
4461
4457
  align-items: center;
4462
4458
  outline: none;
4463
4459
  cursor: pointer;
4464
- `, aa = N(Un)`
4460
+ `, aa = E(Un)`
4465
4461
  display: flex;
4466
4462
  align-items: center;
4467
4463
  text-decoration: none;
4468
- `, la = N(Un)`
4464
+ `, la = E(Un)`
4469
4465
  display: block;
4470
4466
  text-decoration: none;
4471
4467
  color: inherit;
4472
- `, sa = N.div`
4468
+ `, sa = E.div`
4473
4469
  & > div {
4474
4470
  border-bottom: 1px solid
4475
4471
  ${({ theme: e, $active: t }) => {
@@ -4478,7 +4474,7 @@ const Zi = N.div`
4478
4474
  }};
4479
4475
  border-radius: 8px 8px 0 0;
4480
4476
  }
4481
- `, Wn = N.div`
4477
+ `, Wn = E.div`
4482
4478
  display: block;
4483
4479
  text-decoration: none;
4484
4480
  background-color: ${({ theme: e, $active: t }) => {
@@ -4496,7 +4492,7 @@ const Zi = N.div`
4496
4492
  return ((i = (o = (r = t == null ? void 0 : t.menu) == null ? void 0 : r.item) == null ? void 0 : o.background) == null ? void 0 : i.hover) || De.item.background.hover;
4497
4493
  }};
4498
4494
  }
4499
- `, da = N.div`
4495
+ `, da = E.div`
4500
4496
  display: flex;
4501
4497
  flex-direction: column;
4502
4498
 
@@ -4510,13 +4506,13 @@ const Zi = N.div`
4510
4506
  x.preventDefault(), x.stopPropagation(), r();
4511
4507
  }, h = (x) => {
4512
4508
  (x.key === "Enter" || x.key === " ") && (x.preventDefault(), x.stopPropagation(), r());
4513
- }, g = _.useCallback(
4509
+ }, g = j.useCallback(
4514
4510
  async (x, w) => {
4515
4511
  l && !await l(x, w) || s(x);
4516
4512
  },
4517
4513
  [s, l]
4518
- ), f = t || u ? "primary" : "dark", m = t || u ? "bold" : "normal", v = _.useId();
4519
- return /* @__PURE__ */ a(oa, { $active: t, children: /* @__PURE__ */ b(pe, { border: !0, borderRadius: "8px", width: "100%", children: [
4514
+ ), f = t || u ? "primary" : "dark", m = t || u ? "bold" : "normal", v = j.useId();
4515
+ return /* @__PURE__ */ a(oa, { $active: t, children: /* @__PURE__ */ b(ue, { border: !0, borderRadius: "8px", width: "100%", children: [
4520
4516
  /* @__PURE__ */ a(
4521
4517
  sa,
4522
4518
  {
@@ -4532,7 +4528,7 @@ const Zi = N.div`
4532
4528
  label: o
4533
4529
  });
4534
4530
  }, children: /* @__PURE__ */ b(
4535
- pe,
4531
+ ue,
4536
4532
  {
4537
4533
  alignItems: "center",
4538
4534
  borderRadius: "8px",
@@ -4545,7 +4541,7 @@ const Zi = N.div`
4545
4541
  {
4546
4542
  appearance: f,
4547
4543
  cursorHover: !0,
4548
- icon: t && n.length > 0 ? /* @__PURE__ */ a(_t, {}) : /* @__PURE__ */ a(un, {})
4544
+ icon: t && n.length > 0 ? /* @__PURE__ */ a(jt, {}) : /* @__PURE__ */ a(un, {})
4549
4545
  }
4550
4546
  ),
4551
4547
  /* @__PURE__ */ a(Dn, { children: /* @__PURE__ */ a(
@@ -4562,7 +4558,7 @@ const Zi = N.div`
4562
4558
  ]
4563
4559
  }
4564
4560
  ) }) : /* @__PURE__ */ b(
4565
- pe,
4561
+ ue,
4566
4562
  {
4567
4563
  alignItems: "center",
4568
4564
  borderRadius: "8px",
@@ -4575,7 +4571,7 @@ const Zi = N.div`
4575
4571
  {
4576
4572
  appearance: f,
4577
4573
  cursorHover: !0,
4578
- icon: t && n.length > 0 ? /* @__PURE__ */ a(_t, {}) : /* @__PURE__ */ a(un, {})
4574
+ icon: t && n.length > 0 ? /* @__PURE__ */ a(jt, {}) : /* @__PURE__ */ a(un, {})
4579
4575
  }
4580
4576
  ),
4581
4577
  /* @__PURE__ */ a(Dn, { children: /* @__PURE__ */ a(
@@ -4606,8 +4602,8 @@ const Zi = N.div`
4606
4602
  ),
4607
4603
  t && n.length > 0 && /* @__PURE__ */ a(da, { id: v, children: n.map((x) => {
4608
4604
  const w = x.id === i;
4609
- return /* @__PURE__ */ a(la, { to: x.path, onClick: async (S) => {
4610
- S.preventDefault(), S.stopPropagation(), await g(x.path, x);
4605
+ return /* @__PURE__ */ a(la, { to: x.path, onClick: async (C) => {
4606
+ C.preventDefault(), C.stopPropagation(), await g(x.path, x);
4611
4607
  }, children: /* @__PURE__ */ a(Wn, { $active: w, children: /* @__PURE__ */ b(
4612
4608
  T,
4613
4609
  {
@@ -4632,7 +4628,7 @@ const Zi = N.div`
4632
4628
  ) }) }, x.id);
4633
4629
  }) })
4634
4630
  ] }) });
4635
- }, ua = N.div`
4631
+ }, ua = E.div`
4636
4632
  & > div {
4637
4633
  background: ${({ $background: e, theme: t }) => {
4638
4634
  var n, r, o, i;
@@ -4646,17 +4642,17 @@ const Zi = N.div`
4646
4642
  if (r.path && (e === r.path || e.startsWith(r.path + "/")) || (n = r.links) != null && n.some((o) => o.path === e)) return r.id;
4647
4643
  return null;
4648
4644
  }, Ss = (e) => {
4649
- const { collapseOnNavigate: t = !1, defaultOpenId: n = null, groups: r, onBeforeNavigate: o } = e, i = Er(), [c, u] = _.useState(n), l = _.useRef(i.pathname), s = _.useCallback(
4645
+ const { collapseOnNavigate: t = !1, defaultOpenId: n = null, groups: r, onBeforeNavigate: o } = e, i = Er(), [c, u] = j.useState(n), l = j.useRef(i.pathname), s = j.useCallback(
4650
4646
  (d) => {
4651
4647
  var h;
4652
4648
  return (h = d.find((g) => g.path === i.pathname)) == null ? void 0 : h.id;
4653
4649
  },
4654
4650
  [i.pathname]
4655
- ), p = _.useCallback(
4651
+ ), p = j.useCallback(
4656
4652
  (d) => !!d && (i.pathname === d || i.pathname.startsWith(d + "/")),
4657
4653
  [i.pathname]
4658
4654
  );
4659
- return _.useEffect(() => {
4655
+ return j.useEffect(() => {
4660
4656
  if (!(l.current !== i.pathname)) return;
4661
4657
  if (l.current = i.pathname, t) {
4662
4658
  u(null);
@@ -4683,7 +4679,7 @@ const Zi = N.div`
4683
4679
  d.id
4684
4680
  )) }) });
4685
4681
  };
4686
- function Z(e) {
4682
+ function J(e) {
4687
4683
  e.preventDefault();
4688
4684
  }
4689
4685
  function ke(e) {
@@ -4730,9 +4726,9 @@ function je(e) {
4730
4726
  return { x: e.clientX, y: e.clientY };
4731
4727
  }
4732
4728
  Array();
4733
- var on = typeof window < "u", J = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap();
4729
+ var rn = typeof window < "u", Q = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap();
4734
4730
  function Zn() {
4735
- if (!on) return !1;
4731
+ if (!rn) return !1;
4736
4732
  if ("userAgentData" in navigator)
4737
4733
  return navigator.userAgentData.mobile === !0;
4738
4734
  const e = navigator.userAgent, t = /android|iphone|ipod/i.test(e), n = /iPad/.test(e) || e.includes("Macintosh") && navigator.maxTouchPoints > 1;
@@ -4772,7 +4768,7 @@ var ga = {
4772
4768
  scrollDebounceTimeout: void 0,
4773
4769
  frameIdX: void 0,
4774
4770
  frameIdY: void 0
4775
- }, y = ga, Ee = !1, Nn, Lt;
4771
+ }, y = ga, Ee = !1, Nn, Ft;
4776
4772
  function fa() {
4777
4773
  y.scrollDebounceTimeout && clearTimeout(y.scrollDebounceTimeout), y.longPressTimeout && clearTimeout(y.longPressTimeout), y.frameIdX !== void 0 && cancelAnimationFrame(y.frameIdX), y.frameIdY !== void 0 && cancelAnimationFrame(y.frameIdY), y = { ...{
4778
4774
  affectedNodes: [],
@@ -4821,33 +4817,33 @@ function ma() {
4821
4817
  y.activeState && $e(y.activeState.parent, void 0, y), y.selectedState && Ae(y.selectedState.nodes, y.selectedState.parent, y), y.selectedState = y.activeState = void 0;
4822
4818
  }
4823
4819
  function ba() {
4824
- if (y.pointerDown && (y.pointerDown.node.el.draggable = !0), y.pointerDown = void 0, !le(y)) return;
4820
+ if (y.pointerDown && (y.pointerDown.node.el.draggable = !0), y.pointerDown = void 0, !ae(y)) return;
4825
4821
  const e = y.currentParent.data.config;
4826
- le(y) && e.handleEnd(y);
4822
+ ae(y) && e.handleEnd(y);
4827
4823
  }
4828
4824
  function va(e) {
4829
4825
  e.key === "Escape" && (y.selectedState && Ae(y.selectedState.nodes, y.selectedState.parent, y), y.activeState && $e(y.activeState.parent, void 0, y), y.selectedState = y.activeState = void 0);
4830
4826
  }
4831
4827
  function ya(e) {
4832
- if (!K(y)) return;
4828
+ if (!Z(y)) return;
4833
4829
  Ee = !0;
4834
4830
  const t = y.initialParent.data.config.handleEnd;
4835
4831
  t(y);
4836
4832
  }
4837
4833
  function Ta(e) {
4838
- if (!K(y)) return;
4839
- Z(e);
4834
+ if (!Z(y)) return;
4835
+ J(e);
4840
4836
  const { x: t, y: n } = je(e);
4841
- K(y) && St({ x: t, y: n }, e, y);
4837
+ Z(y) && wt({ x: t, y: n }, e, y);
4842
4838
  }
4843
4839
  function xa(e) {
4844
4840
  if (!y.pointerDown || !y.pointerDown.validated) return;
4845
4841
  const t = y.pointerDown.parent.data.config;
4846
4842
  if (!(e.pointerType === "mouse" && !Zn()))
4847
- if (le(y))
4848
- le(y) && En(e, y);
4843
+ if (ae(y))
4844
+ ae(y) && En(e, y);
4849
4845
  else {
4850
- if (Z(e), t.longPress && !y.longPress) {
4846
+ if (J(e), t.longPress && !y.longPress) {
4851
4847
  clearTimeout(y.longPressTimeout), y.longPress = !1;
4852
4848
  return;
4853
4849
  }
@@ -4871,20 +4867,20 @@ function wa({
4871
4867
  config: r = {}
4872
4868
  }) {
4873
4869
  var l, s, p;
4874
- if (!on) return;
4875
- Nn || (Nn = bt(document, {
4870
+ if (!rn) return;
4871
+ Nn || (Nn = mt(document, {
4876
4872
  dragover: Ta,
4877
4873
  pointerdown: ma,
4878
4874
  pointerup: ba,
4879
4875
  keydown: va,
4880
4876
  drop: ya,
4881
4877
  pointermove: xa,
4882
- pointercancel: ne(r.handlePointercancel),
4878
+ pointercancel: te(r.handlePointercancel),
4883
4879
  touchmove: (d) => {
4884
- K(y) && d.cancelable && Z(d);
4880
+ Z(y) && d.cancelable && J(d);
4885
4881
  },
4886
4882
  contextmenu: (d) => {
4887
- le(y) && Z(d);
4883
+ ae(y) && J(d);
4888
4884
  }
4889
4885
  })), tr(e);
4890
4886
  const [o, i] = Yn(), c = {
@@ -4937,7 +4933,7 @@ function wa({
4937
4933
  on: i,
4938
4934
  emit: o
4939
4935
  };
4940
- new MutationObserver(Ra).observe(e, { childList: !0 }), J.set(e, c), (l = r.plugins) == null || l.forEach((d) => {
4936
+ new MutationObserver(Ra).observe(e, { childList: !0 }), Q.set(e, c), (l = r.plugins) == null || l.forEach((d) => {
4941
4937
  var h, g;
4942
4938
  (g = (h = d(e)) == null ? void 0 : h.tearDown) == null || g.call(h);
4943
4939
  }), (s = r.plugins) == null || s.forEach((d) => {
@@ -4946,7 +4942,7 @@ function wa({
4946
4942
  }), (p = r.plugins) == null || p.forEach((d) => {
4947
4943
  var h, g;
4948
4944
  (g = (h = d(e)) == null ? void 0 : h.setup) == null || g.call(h);
4949
- }), Ea(e, c), xt(e, !0);
4945
+ }), Ea(e, c), Tt(e, !0);
4950
4946
  }
4951
4947
  function er(e, t, n, r, o, i) {
4952
4948
  const { x: c, y: u } = je(n), l = e.el.getBoundingClientRect();
@@ -4988,11 +4984,11 @@ function Sa({
4988
4984
  draggedNodes: t,
4989
4985
  targetNodes: n
4990
4986
  }) {
4991
- xt(e.el);
4987
+ Tt(e.el);
4992
4988
  const r = t.map((l) => l.data.value), o = Me(e.el, e.data), i = t[0].data.index, c = [...e.data.enabledNodes], u = [
4993
4989
  ...o.filter((l) => !r.some((s) => Ze(l, s)))
4994
4990
  ];
4995
- u.splice(n[0].data.index, 0, ...r), "draggedNode" in y && (y.currentTargetValue = n[0].data.value), Wt(e.el, e.data, [...u]), e.data.config.onSort && e.data.config.onSort({
4991
+ u.splice(n[0].data.index, 0, ...r), "draggedNode" in y && (y.currentTargetValue = n[0].data.value), qt(e.el, e.data, [...u]), e.data.config.onSort && e.data.config.onSort({
4996
4992
  parent: {
4997
4993
  el: e.el,
4998
4994
  data: e.data
@@ -5032,7 +5028,7 @@ function Ae(e, t, n) {
5032
5028
  c !== -1 && n.selectedState.nodes.splice(c, 1);
5033
5029
  }
5034
5030
  }
5035
- function ut(e, t, n, r, o = !1) {
5031
+ function ct(e, t, n, r, o = !1) {
5036
5032
  r.pointerSelection = o;
5037
5033
  for (const i of t)
5038
5034
  i.el.setAttribute("aria-selected", "true"), Oe([i.el], e.data.config.selectedClass, !0);
@@ -5054,14 +5050,14 @@ function Da({
5054
5050
  targetNodes: i,
5055
5051
  state: c
5056
5052
  }) {
5057
- xt(n.el);
5053
+ Tt(n.el);
5058
5054
  const u = r.map((h) => h.data.value), l = [
5059
5055
  ...Me(e.el, e.data).filter(
5060
5056
  (h) => !u.some((g) => Ze(h, g))
5061
5057
  )
5062
5058
  ], s = Me(t.el, t.data), p = n.el === t.el && t.data.config.sortable === !1;
5063
5059
  let d;
5064
- i.length ? (p ? d = o : t.data.config.sortable === !1 ? d = t.data.enabledNodes.length : d = i[0].data.index, s.splice(d, 0, ...u)) : (d = p ? o : t.data.enabledNodes.length, s.splice(d, 0, ...u)), Wt(e.el, e.data, l), Wt(t.el, t.data, s), t.data.config.onTransfer && t.data.config.onTransfer({
5060
+ i.length ? (p ? d = o : t.data.config.sortable === !1 ? d = t.data.enabledNodes.length : d = i[0].data.index, s.splice(d, 0, ...u)) : (d = p ? o : t.data.enabledNodes.length, s.splice(d, 0, ...u)), qt(e.el, e.data, l), qt(t.el, t.data, s), t.data.config.onTransfer && t.data.config.onTransfer({
5065
5061
  sourceParent: e,
5066
5062
  targetParent: t,
5067
5063
  initialParent: n,
@@ -5082,7 +5078,7 @@ function Da({
5082
5078
  function Me(e, t) {
5083
5079
  return [...t.getValues(e)];
5084
5080
  }
5085
- function Wt(e, t, n) {
5081
+ function qt(e, t, n) {
5086
5082
  t.setValues(n, e);
5087
5083
  }
5088
5084
  function Na(e, t) {
@@ -5091,44 +5087,44 @@ function Na(e, t) {
5091
5087
  n(t);
5092
5088
  }
5093
5089
  function tr(e) {
5094
- const t = J.get(e);
5090
+ const t = Q.get(e);
5095
5091
  t && t.abortControllers.mainParent && t.abortControllers.mainParent.abort();
5096
5092
  }
5097
- function K(e) {
5093
+ function Z(e) {
5098
5094
  return "draggedNode" in e && !!e.draggedNode;
5099
5095
  }
5100
- function le(e) {
5096
+ function ae(e) {
5101
5097
  return "synthDragging" in e && !!e.synthDragging;
5102
5098
  }
5103
5099
  function Ea(e, t) {
5104
- t.abortControllers.mainParent = bt(e, {
5105
- dragover: pt(t.config.handleParentDragover),
5100
+ t.abortControllers.mainParent = mt(e, {
5101
+ dragover: ut(t.config.handleParentDragover),
5106
5102
  handleParentPointerover: t.config.handleParentPointerover,
5107
- scroll: pt(t.config.handleParentScroll),
5108
- drop: pt(t.config.handleParentDrop),
5103
+ scroll: ut(t.config.handleParentScroll),
5104
+ drop: ut(t.config.handleParentDrop),
5109
5105
  hasNestedParent: (n) => {
5110
- const r = J.get(n.target);
5106
+ const r = Q.get(n.target);
5111
5107
  r && (r.nestedParent = n.detail.parent);
5112
5108
  },
5113
- focus: pt(t.config.handleParentFocus)
5114
- }), t.config.externalDragHandle && t.config.externalDragHandle.el && t.config.externalDragHandle.callback && (t.abortControllers.externalDragHandle = bt(
5109
+ focus: ut(t.config.handleParentFocus)
5110
+ }), t.config.externalDragHandle && t.config.externalDragHandle.el && t.config.externalDragHandle.callback && (t.abortControllers.externalDragHandle = mt(
5115
5111
  t.config.externalDragHandle.el,
5116
5112
  {
5117
5113
  pointerdown: (n) => {
5118
5114
  if (!t.config.externalDragHandle || !t.config.externalDragHandle.callback)
5119
5115
  return;
5120
5116
  const r = t.config.externalDragHandle.callback();
5121
- if (!Ct(r)) {
5117
+ if (!St(r)) {
5122
5118
  console.warn(
5123
5119
  "No draggable item found from external drag handle callback"
5124
5120
  );
5125
5121
  return;
5126
5122
  }
5127
- const o = ve.get(r);
5123
+ const o = be.get(r);
5128
5124
  if (!o) return;
5129
5125
  const i = r.parentNode;
5130
5126
  if (!(i instanceof HTMLElement)) return;
5131
- const c = J.get(i);
5127
+ const c = Q.get(i);
5132
5128
  c && (y.pointerDown = {
5133
5129
  parent: {
5134
5130
  el: i,
@@ -5147,25 +5143,25 @@ function Ea(e, t) {
5147
5143
  function ka(e) {
5148
5144
  var n;
5149
5145
  const t = e.parent.data.config;
5150
- e.node.data.abortControllers.mainNode = bt(e.node.el, {
5151
- keydown: ne(t.handleNodeKeydown),
5152
- dragstart: ne(t.handleDragstart),
5153
- dragover: ne(t.handleNodeDragover),
5154
- dragenter: ne(t.handleNodeDragenter),
5155
- dragleave: ne(t.handleNodeDragleave),
5156
- dragend: ne(t.handleDragend),
5157
- drop: ne(t.handleNodeDrop),
5158
- focus: ne(t.handleNodeFocus),
5159
- blur: ne(t.handleNodeBlur),
5160
- pointerup: ne(t.handleNodePointerup),
5161
- pointercancel: ne(t.handlePointercancel),
5162
- pointerdown: ne(t.handleNodePointerdown),
5146
+ e.node.data.abortControllers.mainNode = mt(e.node.el, {
5147
+ keydown: te(t.handleNodeKeydown),
5148
+ dragstart: te(t.handleDragstart),
5149
+ dragover: te(t.handleNodeDragover),
5150
+ dragenter: te(t.handleNodeDragenter),
5151
+ dragleave: te(t.handleNodeDragleave),
5152
+ dragend: te(t.handleDragend),
5153
+ drop: te(t.handleNodeDrop),
5154
+ focus: te(t.handleNodeFocus),
5155
+ blur: te(t.handleNodeBlur),
5156
+ pointerup: te(t.handleNodePointerup),
5157
+ pointercancel: te(t.handlePointercancel),
5158
+ pointerdown: te(t.handleNodePointerdown),
5163
5159
  handleNodePointerover: t.handleNodePointerover,
5164
5160
  touchmove: (r) => {
5165
- K(y) && r.cancelable && Z(r);
5161
+ Z(y) && r.cancelable && J(r);
5166
5162
  },
5167
5163
  contextmenu: (r) => {
5168
- le(y) && Z(r);
5164
+ ae(y) && J(r);
5169
5165
  }
5170
5166
  }), e.node.el.draggable = !0, t.reapplyDragClasses(e.node.el, e.parent.data), (n = e.parent.data.config.plugins) == null || n.forEach((r) => {
5171
5167
  var o, i;
@@ -5174,14 +5170,14 @@ function ka(e) {
5174
5170
  }
5175
5171
  function nr(e) {
5176
5172
  var t;
5177
- ve.set(e.node.el, e.node.data), (t = e.parent.data.config.plugins) == null || t.forEach((n) => {
5173
+ be.set(e.node.el, e.node.data), (t = e.parent.data.config.plugins) == null || t.forEach((n) => {
5178
5174
  var r, o;
5179
5175
  (o = (r = n(e.parent.el)) == null ? void 0 : r.setupNodeRemap) == null || o.call(r, e);
5180
5176
  });
5181
5177
  }
5182
5178
  function Aa(e, t) {
5183
- if (!K(y)) return;
5184
- const n = le(y) ? t.config.synthDropZoneClass : t.config.dropZoneClass;
5179
+ if (!Z(y)) return;
5180
+ const n = ae(y) ? t.config.synthDropZoneClass : t.config.dropZoneClass;
5185
5181
  y.draggedNode.el === e && Oe([e], n, !0);
5186
5182
  }
5187
5183
  function $a(e) {
@@ -5202,18 +5198,18 @@ function Ra(e) {
5202
5198
  if (e.length === 1 && e[0].addedNodes.length === 1 && !(e[0].addedNodes[0] instanceof HTMLElement))
5203
5199
  return;
5204
5200
  const t = e[0].target;
5205
- !(t instanceof HTMLElement) || !J.get(t) || xt(t);
5201
+ !(t instanceof HTMLElement) || !Q.get(t) || Tt(t);
5206
5202
  }
5207
- function xt(e, t) {
5203
+ function Tt(e, t) {
5208
5204
  var u;
5209
- const n = J.get(e);
5205
+ const n = Q.get(e);
5210
5206
  if (!n) return;
5211
5207
  n.privateClasses = Array.from(e.classList);
5212
5208
  const r = [], o = n.config;
5213
5209
  for (let l = 0; l < e.children.length; l++) {
5214
5210
  const s = e.children[l];
5215
- if (!Ct(s) || s.id === "dnd-dragged-node-clone") continue;
5216
- const p = ve.get(s);
5211
+ if (!St(s) || s.id === "dnd-dragged-node-clone") continue;
5212
+ const p = be.get(s);
5217
5213
  (t || !p) && o.tearDownNode({
5218
5214
  parent: {
5219
5215
  el: e,
@@ -5233,7 +5229,7 @@ function xt(e, t) {
5233
5229
  }
5234
5230
  const i = n.getValues(e), c = [];
5235
5231
  for (let l = 0; l < r.length; l++) {
5236
- const s = r[l], p = ve.get(s);
5232
+ const s = r[l], p = be.get(s);
5237
5233
  if (o.draggableValue && !o.draggableValue(i[l])) continue;
5238
5234
  const d = Object.assign(
5239
5235
  p ?? {
@@ -5245,7 +5241,7 @@ function xt(e, t) {
5245
5241
  index: l
5246
5242
  }
5247
5243
  );
5248
- if (!K(y) && y.activeState && Ze(y.activeState.node.data.value, d.value) && $e(
5244
+ if (!Z(y) && y.activeState && Ze(y.activeState.node.data.value, d.value) && $e(
5249
5245
  {
5250
5246
  data: n,
5251
5247
  el: e
@@ -5255,7 +5251,7 @@ function xt(e, t) {
5255
5251
  data: d
5256
5252
  },
5257
5253
  y
5258
- ), K(y) && Ze(y.draggedNode.data.value, d.value)) {
5254
+ ), Z(y) && Ze(y.draggedNode.data.value, d.value)) {
5259
5255
  y.draggedNode.data = d, y.draggedNode.el = s;
5260
5256
  const h = y.draggedNodes.find(
5261
5257
  (g) => g.data.value === d.value
@@ -5285,7 +5281,7 @@ function xt(e, t) {
5285
5281
  }
5286
5282
  });
5287
5283
  }
5288
- J.set(e, { ...n, enabledNodes: c }), o.remapFinished(n), (u = n.config.plugins) == null || u.forEach((l) => {
5284
+ Q.set(e, { ...n, enabledNodes: c }), o.remapFinished(n), (u = n.config.plugins) == null || u.forEach((l) => {
5289
5285
  var s, p;
5290
5286
  (p = (s = l(e)) == null ? void 0 : s.remapFinished) == null || p.call(s);
5291
5287
  });
@@ -5310,7 +5306,7 @@ function La(e) {
5310
5306
  return [];
5311
5307
  }
5312
5308
  function Ma(e) {
5313
- K(y) && (y.emit("scrollStarted", y), !le(y) && (y.preventEnter = !0, Lt && clearTimeout(Lt), Lt = setTimeout(() => {
5309
+ Z(y) && (y.emit("scrollStarted", y), !ae(y) && (y.preventEnter = !0, Ft && clearTimeout(Ft), Ft = setTimeout(() => {
5314
5310
  y.preventEnter = !1, y.emit("scrollEnded", y);
5315
5311
  }, 100)));
5316
5312
  }
@@ -5322,7 +5318,7 @@ function ja(e, t) {
5322
5318
  node: e.targetData.node,
5323
5319
  config: n
5324
5320
  })) {
5325
- Z(e.e);
5321
+ J(e.e);
5326
5322
  return;
5327
5323
  }
5328
5324
  let r = n.draggedNodes({
@@ -5368,7 +5364,7 @@ function _a(e, t) {
5368
5364
  (p) => p.el === c.el
5369
5365
  ) === -1 ? r = [...t.selectedState.nodes, c] : r = t.selectedState.nodes.filter(
5370
5366
  (p) => p.el !== c.el
5371
- ) : r = [c], ut(
5367
+ ) : r = [c], ct(
5372
5368
  e.targetData.parent,
5373
5369
  r,
5374
5370
  e.targetData.node,
@@ -5397,7 +5393,7 @@ function _a(e, t) {
5397
5393
  else
5398
5394
  for (let p = 0; p <= c.data.index; p++)
5399
5395
  r.push(s[p]);
5400
- ut(
5396
+ ct(
5401
5397
  e.targetData.parent,
5402
5398
  r,
5403
5399
  e.targetData.node,
@@ -5408,13 +5404,13 @@ function _a(e, t) {
5408
5404
  }
5409
5405
  (l = (u = t.selectedState) == null ? void 0 : u.nodes) != null && l.length ? t.selectedState.nodes.findIndex(
5410
5406
  (p) => p.el === e.targetData.node.el
5411
- ) === -1 && (t.selectedState.parent.el !== e.targetData.parent.el ? Ae(t.selectedState.nodes, e.targetData.parent, t) : n.config.multiDrag && Zn() ? r.push(...t.selectedState.nodes) : Ae(t.selectedState.nodes, e.targetData.parent, t), ut(
5407
+ ) === -1 && (t.selectedState.parent.el !== e.targetData.parent.el ? Ae(t.selectedState.nodes, e.targetData.parent, t) : n.config.multiDrag && Zn() ? r.push(...t.selectedState.nodes) : Ae(t.selectedState.nodes, e.targetData.parent, t), ct(
5412
5408
  e.targetData.parent,
5413
5409
  r,
5414
5410
  e.targetData.node,
5415
5411
  t,
5416
5412
  !0
5417
- )) : ut(
5413
+ )) : ct(
5418
5414
  e.targetData.parent,
5419
5415
  [e.targetData.node],
5420
5416
  e.targetData.node,
@@ -5516,7 +5512,7 @@ function rr({
5516
5512
  function Ua(e) {
5517
5513
  }
5518
5514
  function Ga(e) {
5519
- e.detail.targetData.parent.el === e.detail.state.currentParent.el ? ir(e.detail, e.detail.state) : wt(e.detail, e.detail.state);
5515
+ e.detail.targetData.parent.el === e.detail.state.currentParent.el ? ir(e.detail, e.detail.state) : xt(e.detail, e.detail.state);
5520
5516
  }
5521
5517
  function za(e, t) {
5522
5518
  const n = e.targetData.parent.data.config;
@@ -5531,7 +5527,7 @@ function Ba(e) {
5531
5527
  function qa(e, t) {
5532
5528
  const n = e.targetData.parent.data.config;
5533
5529
  if (n.nativeDrag) {
5534
- if (Z(e.e), ke(e.e), Ee) {
5530
+ if (J(e.e), ke(e.e), Ee) {
5535
5531
  Ee = !1;
5536
5532
  return;
5537
5533
  }
@@ -5540,12 +5536,12 @@ function qa(e, t) {
5540
5536
  }
5541
5537
  function Wa(e, t) {
5542
5538
  var r;
5543
- if (!le(t)) return;
5544
- if (Z(e.e), Ee) {
5539
+ if (!ae(t)) return;
5540
+ if (J(e.e), Ee) {
5545
5541
  Ee = !1;
5546
5542
  return;
5547
5543
  }
5548
- const n = (r = J.get(t.initialParent.el)) == null ? void 0 : r.config;
5544
+ const n = (r = Q.get(t.initialParent.el)) == null ? void 0 : r.config;
5549
5545
  n != null && n.onDragend && n.onDragend({
5550
5546
  parent: t.currentParent,
5551
5547
  values: Me(t.currentParent.el, t.currentParent.data),
@@ -5557,8 +5553,8 @@ function Wa(e, t) {
5557
5553
  function Ya(e) {
5558
5554
  var p, d, h, g, f;
5559
5555
  e.draggedNode && (e.draggedNode.el.draggable = !0);
5560
- const t = e.draggedNodes.map((m) => m.el), n = e.initialParent.data, r = le(e), o = (p = J.get(e.initialParent.el)) == null ? void 0 : p.config, i = r ? o == null ? void 0 : o.synthDropZoneClass : o == null ? void 0 : o.dropZoneClass, c = (d = n == null ? void 0 : n.config) == null ? void 0 : d.longPressClass, u = 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;
5561
- le(e) && (e.clonedDraggedNode && e.clonedDraggedNode.remove(), e.longPressTimeout && clearTimeout(e.longPressTimeout)), Yt(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(() => {
5556
+ const t = e.draggedNodes.map((m) => m.el), n = e.initialParent.data, r = ae(e), o = (p = Q.get(e.initialParent.el)) == null ? void 0 : p.config, i = r ? o == null ? void 0 : o.synthDropZoneClass : o == null ? void 0 : o.dropZoneClass, c = (d = n == null ? void 0 : n.config) == null ? void 0 : d.longPressClass, u = 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;
5557
+ ae(e) && (e.clonedDraggedNode && e.clonedDraggedNode.remove(), e.longPressTimeout && clearTimeout(e.longPressTimeout)), Wt(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(() => {
5562
5558
  Ne(t, i), Ne(t, c), Ne(t, u);
5563
5559
  }), Ae(e.draggedNodes, e.currentParent, e), $e(e.currentParent, void 0, e);
5564
5560
  const s = { ...e };
@@ -5579,7 +5575,7 @@ function Xa(e, t) {
5579
5575
  t.pointerSelection = !1, "longPressTimeout" in t && t.longPressTimeout && clearTimeout(t.longPressTimeout), t.longPress = !1, Ne(
5580
5576
  e.targetData.parent.data.enabledNodes.map((r) => r.el),
5581
5577
  n.longPressClass
5582
- ), K(t) && n.handleEnd(t);
5578
+ ), Z(t) && n.handleEnd(t);
5583
5579
  }
5584
5580
  function Qa(e, t, n, r, o, i) {
5585
5581
  var f, m;
@@ -5615,8 +5611,8 @@ function Qa(e, t, n, r, o, i) {
5615
5611
  "overflow"
5616
5612
  ], p = (v, x) => {
5617
5613
  const w = window.getComputedStyle(v);
5618
- s.forEach((S) => {
5619
- x.style[S] = w[S];
5614
+ s.forEach((C) => {
5615
+ x.style[C] = w[C];
5620
5616
  });
5621
5617
  }, d = (v, x = {}) => {
5622
5618
  Object.assign(v.style, {
@@ -5667,10 +5663,10 @@ function Qa(e, t, n, r, o, i) {
5667
5663
  function Ja(e, t, n) {
5668
5664
  const r = e.targetData.parent.data.config;
5669
5665
  t.longPressTimeout = setTimeout(() => {
5670
- t && (t.longPress = !0, r.longPressClass && e.e.cancelable && Oe([n.el], r.longPressClass), Z(e.e));
5666
+ t && (t.longPress = !0, r.longPressClass && e.e.cancelable && Oe([n.el], r.longPressClass), J(e.e));
5671
5667
  }, r.longPressDuration || 1e3);
5672
5668
  }
5673
- function Yt(e, t = !0, n = !0) {
5669
+ function Wt(e, t = !0, n = !0) {
5674
5670
  t && (e.frameIdX !== void 0 && (cancelAnimationFrame(e.frameIdX), e.frameIdX = void 0), e.lastScrollDirectionX = void 0), n && (e.frameIdY !== void 0 && (cancelAnimationFrame(e.frameIdY), e.frameIdY = void 0), e.lastScrollDirectionY = void 0), !e.frameIdX && !e.frameIdY && (e.preventEnter = !1);
5675
5671
  }
5676
5672
  function or(e, t = !1) {
@@ -5684,7 +5680,7 @@ function or(e, t = !1) {
5684
5680
  function En(e, t, n = !1) {
5685
5681
  const r = je(e);
5686
5682
  t.coordinates.x = r.x, t.coordinates.y = r.y, or(t, n), t.scrollDebounceTimeout && (clearTimeout(t.scrollDebounceTimeout), t.scrollDebounceTimeout = void 0), t.scrollDebounceTimeout = setTimeout(() => {
5687
- le(t) && St(t.coordinates, e, t);
5683
+ ae(t) && wt(t.coordinates, e, t);
5688
5684
  }, 16);
5689
5685
  const o = ll(r);
5690
5686
  if (!o) {
@@ -5717,16 +5713,16 @@ function Za(e, t) {
5717
5713
  var i;
5718
5714
  if (!e.targetData.parent.data.config.nativeDrag) return;
5719
5715
  const { x: r, y: o } = je(e.e);
5720
- t.coordinates.y = o, t.coordinates.x = r, Z(e.e), ke(e.e), K(t) && St({ x: r, y: o }, e.e, t), e.targetData.parent.el === ((i = t.currentParent) == null ? void 0 : i.el) ? ir(e, t) : wt(e, t);
5716
+ t.coordinates.y = o, t.coordinates.x = r, J(e.e), ke(e.e), Z(t) && wt({ x: r, y: o }, e.e, t), e.targetData.parent.el === ((i = t.currentParent) == null ? void 0 : i.el) ? ir(e, t) : xt(e, t);
5721
5717
  }
5722
5718
  function Ka(e, t) {
5723
5719
  if (!e.targetData.parent.data.config.nativeDrag) return;
5724
- Z(e.e), ke(e.e);
5720
+ J(e.e), ke(e.e);
5725
5721
  const { x: r, y: o } = je(e.e);
5726
- K(t) && St({ x: r, y: o }, e.e, t), wt(e, t);
5722
+ Z(t) && wt({ x: r, y: o }, e.e, t), xt(e, t);
5727
5723
  }
5728
5724
  function el(e) {
5729
- e.detail.targetData.parent.el !== e.detail.state.currentParent.el && wt(e.detail, e.detail.state);
5725
+ e.detail.targetData.parent.el !== e.detail.state.currentParent.el && xt(e.detail, e.detail.state);
5730
5726
  }
5731
5727
  function tl({
5732
5728
  currentParent: e,
@@ -5747,10 +5743,10 @@ function tl({
5747
5743
  ) : !(!i.group || i.group !== c.group);
5748
5744
  }
5749
5745
  function nl(e, t) {
5750
- Z(e.e);
5746
+ J(e.e);
5751
5747
  }
5752
5748
  function rl(e, t) {
5753
- Z(e.e);
5749
+ J(e.e);
5754
5750
  }
5755
5751
  function ol(e, t, n, r) {
5756
5752
  var p;
@@ -5799,11 +5795,11 @@ function ir(e, t) {
5799
5795
  targetNodes: [e.targetData.node]
5800
5796
  });
5801
5797
  }
5802
- function ne(e) {
5798
+ function te(e) {
5803
5799
  function t(n) {
5804
- const r = ve.get(n);
5800
+ const r = be.get(n);
5805
5801
  if (!r) return;
5806
- const o = J.get(n.parentNode);
5802
+ const o = Q.get(n.parentNode);
5807
5803
  if (o)
5808
5804
  return {
5809
5805
  node: {
@@ -5828,8 +5824,8 @@ function ne(e) {
5828
5824
  );
5829
5825
  };
5830
5826
  }
5831
- function wt(e, t) {
5832
- Z(e.e), tl({
5827
+ function xt(e, t) {
5828
+ J(e.e), tl({
5833
5829
  currentParent: t.currentParent,
5834
5830
  targetParent: e.targetData.parent,
5835
5831
  initialParent: t.initialParent,
@@ -5845,9 +5841,9 @@ function wt(e, t) {
5845
5841
  targetNodes: "node" in e.targetData ? [e.targetData.node] : []
5846
5842
  }), t.currentParent = e.targetData.parent, t.transferred = !0);
5847
5843
  }
5848
- function pt(e) {
5844
+ function ut(e) {
5849
5845
  function t(n) {
5850
- const r = J.get(n);
5846
+ const r = Q.get(n);
5851
5847
  if (r)
5852
5848
  return {
5853
5849
  parent: {
@@ -5870,10 +5866,10 @@ function pt(e) {
5870
5866
  }
5871
5867
  function Oe(e, t, n = !1) {
5872
5868
  function r(o, i) {
5873
- ve.set(o, i);
5869
+ be.set(o, i);
5874
5870
  }
5875
5871
  for (const o of e) {
5876
- const i = ve.get(o), c = il(o, t, i, n);
5872
+ const i = be.get(o), c = il(o, t, i, n);
5877
5873
  c && r(o, c);
5878
5874
  }
5879
5875
  }
@@ -5899,11 +5895,11 @@ function Ne(e, t) {
5899
5895
  const n = Jn(t);
5900
5896
  if (n.length)
5901
5897
  for (const r of e) {
5902
- if (!Ct(r)) {
5898
+ if (!St(r)) {
5903
5899
  r.classList.remove(...n);
5904
5900
  continue;
5905
5901
  }
5906
- const o = ve.get(r) || J.get(r);
5902
+ const o = be.get(r) || Q.get(r);
5907
5903
  if (o)
5908
5904
  for (const i of n)
5909
5905
  o.privateClasses.includes(i) || r.classList.remove(i);
@@ -5922,25 +5918,25 @@ function kn(e, t, n, r, o) {
5922
5918
  };
5923
5919
  }
5924
5920
  if ((f === "auto" || f === "scroll") && e !== document.body && e !== document.documentElement) {
5925
- const m = e[d], v = e[p], x = e[l], w = x > 0, S = x < m - v;
5921
+ const m = e[d], v = e[p], x = e[l], w = x > 0, C = x < m - v;
5926
5922
  return c ? {
5927
5923
  left: w && h < g + v * 0.075,
5928
- right: S && h > g + v * (1 - 0.075)
5924
+ right: C && h > g + v * (1 - 0.075)
5929
5925
  } : {
5930
5926
  up: w && h < g + v * 0.075,
5931
- down: S && h > g + v * (1 - 0.075)
5927
+ down: C && h > g + v * (1 - 0.075)
5932
5928
  };
5933
5929
  }
5934
5930
  return c ? { left: !1, right: !1 } : { up: !1, down: !1 };
5935
5931
  }
5936
5932
  function al(e, t, n, r) {
5937
- if (!K(n) || !n.draggedNode)
5933
+ if (!Z(n) || !n.draggedNode)
5938
5934
  return;
5939
5935
  n.preventEnter = !0;
5940
5936
  const o = r.axis === "x", i = r.direction === "positive" ? 1 : -1, c = 20, u = o ? "lastScrollDirectionX" : "lastScrollDirectionY", l = o ? "frameIdX" : "frameIdY";
5941
5937
  n[l] !== void 0 && (cancelAnimationFrame(n[l]), n[l] = void 0), n[u] = r.direction;
5942
5938
  const s = () => {
5943
- if (!K(n) || !n.draggedNode) {
5939
+ if (!Z(n) || !n.draggedNode) {
5944
5940
  n[l] !== void 0 && (cancelAnimationFrame(n[l]), n[l] = void 0);
5945
5941
  return;
5946
5942
  }
@@ -5949,7 +5945,7 @@ function al(e, t, n, r) {
5949
5945
  n[l] = void 0, n[u] = void 0;
5950
5946
  return;
5951
5947
  }
5952
- e[p] += c * i, le(n) && or(n), n[l] = requestAnimationFrame(s);
5948
+ e[p] += c * i, ae(n) && or(n), n[l] = requestAnimationFrame(s);
5953
5949
  };
5954
5950
  n[l] = requestAnimationFrame(s);
5955
5951
  }
@@ -5957,10 +5953,10 @@ function An(e, t, n) {
5957
5953
  const r = e.getBoundingClientRect();
5958
5954
  return t >= r.left && t <= r.right && n >= r.top && n <= r.bottom;
5959
5955
  }
5960
- function St(e, t, n) {
5961
- if (!K(n) || !n.draggedNode)
5956
+ function wt(e, t, n) {
5957
+ if (!Z(n) || !n.draggedNode)
5962
5958
  return;
5963
- Yt(n);
5959
+ Wt(n);
5964
5960
  const { x: r, y: o } = e;
5965
5961
  let i = !1;
5966
5962
  const c = (l, s, p) => {
@@ -5981,21 +5977,21 @@ function St(e, t, n) {
5981
5977
  const l = document.scrollingElement;
5982
5978
  l instanceof HTMLElement && u(l);
5983
5979
  }
5984
- i || Yt(n);
5980
+ i || Wt(n);
5985
5981
  }
5986
5982
  function ll(e) {
5987
5983
  let t = document.elementFromPoint(e.x, e.y);
5988
- if (!Ct(t)) return;
5984
+ if (!St(t)) return;
5989
5985
  let n, r = !0;
5990
5986
  for (; t && r; ) {
5991
- if (ve.has(t) || J.has(t)) {
5992
- r = !1, n = J.has(t);
5987
+ if (be.has(t) || Q.has(t)) {
5988
+ r = !1, n = Q.has(t);
5993
5989
  break;
5994
5990
  }
5995
5991
  t = t.parentNode;
5996
5992
  }
5997
5993
  if (n) {
5998
- const o = J.get(t);
5994
+ const o = Q.get(t);
5999
5995
  return o ? {
6000
5996
  parent: {
6001
5997
  el: t,
@@ -6003,9 +5999,9 @@ function ll(e) {
6003
5999
  }
6004
6000
  } : void 0;
6005
6001
  } else {
6006
- const o = ve.get(t);
6002
+ const o = be.get(t);
6007
6003
  if (!o) return;
6008
- const i = J.get(t.parentNode);
6004
+ const i = Q.get(t.parentNode);
6009
6005
  return i ? {
6010
6006
  node: {
6011
6007
  el: t,
@@ -6018,10 +6014,10 @@ function ll(e) {
6018
6014
  } : void 0;
6019
6015
  }
6020
6016
  }
6021
- function Ct(e) {
6017
+ function St(e) {
6022
6018
  return e instanceof HTMLElement && e.parentNode instanceof HTMLElement;
6023
6019
  }
6024
- function bt(e, t) {
6020
+ function mt(e, t) {
6025
6021
  const n = new AbortController();
6026
6022
  for (const r in t) {
6027
6023
  const o = t[r];
@@ -6043,22 +6039,22 @@ function dl(e, t) {
6043
6039
  const n = sl(e);
6044
6040
  n && t(n);
6045
6041
  }
6046
- var vt = /* @__PURE__ */ new WeakMap();
6042
+ var bt = /* @__PURE__ */ new WeakMap();
6047
6043
  function cl(e) {
6048
- const t = vt.get(e);
6044
+ const t = bt.get(e);
6049
6045
  return t ? t[0] : (console.warn("No values found for parent element"), []);
6050
6046
  }
6051
6047
  function ul(e, t) {
6052
- const n = vt.get(t);
6053
- n && n[1](e), vt.set(t, [e, n[1]]);
6048
+ const n = bt.get(t);
6049
+ n && n[1](e), bt.set(t, [e, n[1]]);
6054
6050
  }
6055
6051
  function pl(e, t) {
6056
6052
  return (n) => {
6057
- vt.set(n, t), wa({ parent: n, getValues: cl, setValues: ul, config: e });
6053
+ bt.set(n, t), wa({ parent: n, getValues: cl, setValues: ul, config: e });
6058
6054
  };
6059
6055
  }
6060
6056
  function $n(e) {
6061
- on && (Array.isArray(e) || (e = [e]), e.forEach((t) => {
6057
+ rn && (Array.isArray(e) || (e = [e]), e.forEach((t) => {
6062
6058
  const { parent: n, state: r, ...o } = t;
6063
6059
  dl(n, pl(o, r));
6064
6060
  }));
@@ -6083,7 +6079,7 @@ const In = {
6083
6079
  color: A.palette.neutral.N40
6084
6080
  }
6085
6081
  }
6086
- }, gl = N.ul`
6082
+ }, gl = E.ul`
6087
6083
  list-style: none;
6088
6084
  padding: 0;
6089
6085
  margin: 0;
@@ -6092,7 +6088,7 @@ const In = {
6092
6088
  gap: 12px;
6093
6089
  width: 100%;
6094
6090
  justify-content: ${({ $isEmpty: e }) => e ? "center" : "flex-start"};
6095
- `, fl = N.li`
6091
+ `, fl = E.li`
6096
6092
  & > div {
6097
6093
  border: 1px solid
6098
6094
  ${({ theme: e, $active: t }) => {
@@ -6100,7 +6096,7 @@ const In = {
6100
6096
  return t ? ((r = (n = e == null ? void 0 : e.border) == null ? void 0 : n.selected) == null ? void 0 : r.color) || In.border.selected.color : ((i = (o = e == null ? void 0 : e.border) == null ? void 0 : o.clear) == null ? void 0 : i.color) || In.border.clear.color;
6101
6097
  }};
6102
6098
  }
6103
- `, Mt = "dnd:draggingLabel", Rn = (e) => {
6099
+ `, Lt = "dnd:draggingLabel", Rn = (e) => {
6104
6100
  const {
6105
6101
  emptyMessage: t,
6106
6102
  id: n,
@@ -6110,40 +6106,40 @@ const In = {
6110
6106
  highlightFirst: c,
6111
6107
  onMove: u,
6112
6108
  locked: l = !1
6113
- } = e, s = _.useRef(null), p = l ? [s, i] : hl(i, { group: r }), [d, h] = p, [g, f] = _.useState(
6109
+ } = e, s = j.useRef(null), p = l ? [s, i] : hl(i, { group: r }), [d, h] = p, [g, f] = j.useState(
6114
6110
  null
6115
- ), m = _.useRef(i);
6116
- _.useEffect(() => {
6111
+ ), m = j.useRef(i);
6112
+ j.useEffect(() => {
6117
6113
  if (l) return;
6118
- const D = (C) => {
6119
- const k = C.detail ?? null;
6114
+ const N = (D) => {
6115
+ const k = D.detail ?? null;
6120
6116
  f(k);
6121
6117
  };
6122
- return window.addEventListener(Mt, D), () => window.removeEventListener(Mt, D);
6118
+ return window.addEventListener(Lt, N), () => window.removeEventListener(Lt, N);
6123
6119
  }, [l]);
6124
- const v = _.useCallback((D) => {
6120
+ const v = j.useCallback((N) => {
6125
6121
  l || window.dispatchEvent(
6126
- new CustomEvent(Mt, { detail: D })
6122
+ new CustomEvent(Lt, { detail: N })
6127
6123
  );
6128
- }, [l]), x = (D) => {
6124
+ }, [l]), x = (N) => {
6129
6125
  var F;
6130
6126
  if (l) return;
6131
- const C = D.target, k = (F = C == null ? void 0 : C.closest) == null ? void 0 : F.call(C, "li.dnd-item"), L = (k == null ? void 0 : k.getAttribute("data-label")) || null;
6127
+ const D = N.target, k = (F = D == null ? void 0 : D.closest) == null ? void 0 : F.call(D, "li.dnd-item"), L = (k == null ? void 0 : k.getAttribute("data-label")) || null;
6132
6128
  L && (f(L), v(L));
6133
- }, w = _.useCallback(() => {
6129
+ }, w = j.useCallback(() => {
6134
6130
  l || (f(null), v(null));
6135
6131
  }, [v, l]);
6136
- _.useEffect(() => {
6132
+ j.useEffect(() => {
6137
6133
  if (l) return;
6138
- const D = () => w();
6139
- return window.addEventListener("pointerup", D), window.addEventListener("blur", D), () => {
6140
- window.removeEventListener("pointerup", D), window.removeEventListener("blur", D);
6134
+ const N = () => w();
6135
+ return window.addEventListener("pointerup", N), window.addEventListener("blur", N), () => {
6136
+ window.removeEventListener("pointerup", N), window.removeEventListener("blur", N);
6141
6137
  };
6142
- }, [w, l]), _.useEffect(() => {
6138
+ }, [w, l]), j.useEffect(() => {
6143
6139
  if (l) return;
6144
- const D = m.current;
6145
- if (h.length !== D.length && h.length === D.length + 1) {
6146
- const C = new Set(D), k = h.find((L) => !C.has(L)) || null;
6140
+ const N = m.current;
6141
+ if (h.length !== N.length && h.length === N.length + 1) {
6142
+ const D = new Set(N), k = h.find((L) => !D.has(L)) || null;
6147
6143
  if (k) {
6148
6144
  const L = n === "left" ? "right" : "left";
6149
6145
  u == null || u({ item: k, from: L, to: n });
@@ -6151,7 +6147,7 @@ const In = {
6151
6147
  }
6152
6148
  m.current = h;
6153
6149
  }, [h, n, u, l]);
6154
- const S = h.length === 0;
6150
+ const C = h.length === 0;
6155
6151
  return /* @__PURE__ */ a(
6156
6152
  Be,
6157
6153
  {
@@ -6166,12 +6162,12 @@ const In = {
6166
6162
  onPointerDownCapture: l ? void 0 : x,
6167
6163
  onPointerUpCapture: l ? void 0 : w,
6168
6164
  onPointerCancelCapture: l ? void 0 : w,
6169
- $isEmpty: S,
6165
+ $isEmpty: C,
6170
6166
  $locked: l,
6171
6167
  "aria-disabled": l,
6172
6168
  "data-locked": l || void 0,
6173
- children: S ? /* @__PURE__ */ a(
6174
- pe,
6169
+ children: C ? /* @__PURE__ */ a(
6170
+ ue,
6175
6171
  {
6176
6172
  background: !0,
6177
6173
  borderRadius: "8px",
@@ -6180,16 +6176,16 @@ const In = {
6180
6176
  justifyContent: "center",
6181
6177
  children: /* @__PURE__ */ a(R, { type: "label", size: "medium", appearance: "gray", padding: "12px", children: t || "No hay elementos en esta lista" })
6182
6178
  }
6183
- ) : h.map((D, C) => {
6184
- const k = !l && g === D;
6179
+ ) : h.map((N, D) => {
6180
+ const k = !l && g === N;
6185
6181
  return /* @__PURE__ */ a(
6186
6182
  fl,
6187
6183
  {
6188
6184
  className: `dnd-item${k ? " is-dragging" : ""}`,
6189
- "data-label": D,
6190
- "data-first": !!(c && C === 0) || void 0,
6185
+ "data-label": N,
6186
+ "data-first": !!(c && D === 0) || void 0,
6191
6187
  $active: k,
6192
- children: /* @__PURE__ */ a(pe, { border: !0, borderRadius: "8px", width: "100%", children: /* @__PURE__ */ a(
6188
+ children: /* @__PURE__ */ a(ue, { border: !0, borderRadius: "8px", width: "100%", children: /* @__PURE__ */ a(
6193
6189
  R,
6194
6190
  {
6195
6191
  type: "title",
@@ -6197,11 +6193,11 @@ const In = {
6197
6193
  weight: k ? "bold" : "normal",
6198
6194
  size: "medium",
6199
6195
  padding: "6px 12px",
6200
- children: D
6196
+ children: N
6201
6197
  }
6202
6198
  ) })
6203
6199
  },
6204
- D
6200
+ N
6205
6201
  );
6206
6202
  })
6207
6203
  }
@@ -6249,7 +6245,7 @@ const In = {
6249
6245
  ]
6250
6246
  }
6251
6247
  );
6252
- }, ml = N.div`
6248
+ }, ml = E.div`
6253
6249
  & > button {
6254
6250
  height: 66px;
6255
6251
  min-width: 66px;
@@ -6267,7 +6263,7 @@ const In = {
6267
6263
  }
6268
6264
  }
6269
6265
  }
6270
- `, Ds = (e) => /* @__PURE__ */ a(ml, { children: /* @__PURE__ */ a(Y, { ...e }) }), bl = N.div`
6266
+ `, Ds = (e) => /* @__PURE__ */ a(ml, { children: /* @__PURE__ */ a(Y, { ...e }) }), bl = E.div`
6271
6267
  display: flex;
6272
6268
  justify-content: space-between;
6273
6269
  align-items: center;
@@ -6323,15 +6319,15 @@ const In = {
6323
6319
  )
6324
6320
  ] });
6325
6321
  }, Es = (e) => Object.values(e).flat(), ks = (e, t) => {
6326
- const n = xe(e);
6322
+ const n = Te(e);
6327
6323
  return Object.fromEntries(
6328
6324
  Object.entries(n).map(([r, o]) => [r, o.map(t)])
6329
6325
  );
6330
6326
  }, vl = (e) => Object.entries(e).map(([t, n]) => ({
6331
6327
  ConditionGroupId: t,
6332
- conditionsThatEstablishesTheDecision: gt(n)
6328
+ conditionsThatEstablishesTheDecision: ht(n)
6333
6329
  })), As = (e) => {
6334
- const t = xe(e);
6330
+ const t = Te(e);
6335
6331
  return {
6336
6332
  ...e,
6337
6333
  conditionGroups: vl(t),
@@ -6408,13 +6404,13 @@ const In = {
6408
6404
  function Nl(e) {
6409
6405
  return typeof e == "function";
6410
6406
  }
6411
- function an(e, t) {
6407
+ function on(e, t) {
6412
6408
  return Nl(e) ? e(t) : e.split(".").reduce((n, r) => n ? n[r] : void 0, t);
6413
6409
  }
6414
6410
  const El = {
6415
6411
  1: "1fr",
6416
6412
  2: "1fr 1fr"
6417
- }, kl = (e, t) => t ? "1fr" : El[e.length] || `repeat(${Math.ceil(e.length / 2)}, 1fr)`, Al = (e, t) => !t && e.length <= 2 ? "1fr" : t ? `repeat(${Math.ceil(e.length)}, 1fr)` : `repeat(${Math.ceil(e.length / 2)}, 1fr)`, $l = N.div`
6413
+ }, kl = (e, t) => t ? "1fr" : El[e.length] || `repeat(${Math.ceil(e.length / 2)}, 1fr)`, Al = (e, t) => !t && e.length <= 2 ? "1fr" : t ? `repeat(${Math.ceil(e.length)}, 1fr)` : `repeat(${Math.ceil(e.length / 2)}, 1fr)`, $l = E.div`
6418
6414
  display: flex;
6419
6415
  align-items: center;
6420
6416
  padding: 0px 4px 0px 2px;
@@ -6426,7 +6422,7 @@ const El = {
6426
6422
  }};
6427
6423
  cursor: pointer;
6428
6424
  `;
6429
- var he = /* @__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))(he || {});
6425
+ var pe = /* @__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))(pe || {});
6430
6426
  const Il = (e) => {
6431
6427
  const { onClick: t, icon: n, value: r } = e;
6432
6428
  return /* @__PURE__ */ b($l, { onClick: t, children: [
@@ -6436,7 +6432,7 @@ const Il = (e) => {
6436
6432
  justifyContent: "center",
6437
6433
  alignItems: "center",
6438
6434
  padding: "2px",
6439
- children: /* @__PURE__ */ a(B, { icon: n, appearance: he.DARK })
6435
+ children: /* @__PURE__ */ a(B, { icon: n, appearance: pe.DARK })
6440
6436
  }
6441
6437
  ),
6442
6438
  /* @__PURE__ */ a(R, { size: "small", as: "span", children: r })
@@ -6457,11 +6453,11 @@ function Rl(e) {
6457
6453
  );
6458
6454
  }
6459
6455
  function Ol(e) {
6460
- return _.isValidElement(e);
6456
+ return j.isValidElement(e);
6461
6457
  }
6462
6458
  const Fl = (e) => {
6463
6459
  const { withTag: t, children: n, isMobile: r, direction: o, value: i } = e, c = r ? "small" : "medium", u = o === "column" ? "start" : "end";
6464
- if (t) return /* @__PURE__ */ a(V, { children: n });
6460
+ if (t) return /* @__PURE__ */ a(_, { children: n });
6465
6461
  let l;
6466
6462
  if (Ol(i))
6467
6463
  l = i;
@@ -6479,13 +6475,13 @@ const Fl = (e) => {
6479
6475
  R,
6480
6476
  {
6481
6477
  size: c,
6482
- appearance: he.GRAY,
6478
+ appearance: pe.GRAY,
6483
6479
  textAlign: u,
6484
6480
  as: "span",
6485
6481
  children: l
6486
6482
  }
6487
6483
  );
6488
- }, jt = {
6484
+ }, Mt = {
6489
6485
  light: {
6490
6486
  border: {
6491
6487
  color: A.palette.neutral.N0
@@ -6552,7 +6548,7 @@ const Fl = (e) => {
6552
6548
  color: A.palette.red.R50
6553
6549
  }
6554
6550
  }
6555
- }, Ll = N.div`
6551
+ }, Ll = E.div`
6556
6552
  display: flex;
6557
6553
  justify-content: ${({ $justifyContent: e }) => e};
6558
6554
  align-items: ${({ $alignItems: e }) => e};
@@ -6567,24 +6563,24 @@ const Fl = (e) => {
6567
6563
  box-sizing: ${({ $boxSizing: e }) => e};
6568
6564
  background: ${({ $backgroundColor: e, theme: t }) => {
6569
6565
  var n, r;
6570
- return ((r = (n = t == null ? void 0 : t.boxContainer) == null ? void 0 : n[e].background) == null ? void 0 : r.color) ?? jt[e].background.color;
6566
+ return ((r = (n = t == null ? void 0 : t.boxContainer) == null ? void 0 : n[e].background) == null ? void 0 : r.color) ?? Mt[e].background.color;
6571
6567
  }};
6572
6568
  border: ${({ $borderColor: e, theme: t }) => {
6573
6569
  var n, r;
6574
- return `1px solid ${((r = (n = t == null ? void 0 : t.boxContainer) == null ? void 0 : n[e].border) == null ? void 0 : r.color) ?? jt[e].border.color}`;
6570
+ return `1px solid ${((r = (n = t == null ? void 0 : t.boxContainer) == null ? void 0 : n[e].border) == null ? void 0 : r.color) ?? Mt[e].border.color}`;
6575
6571
  }};
6576
6572
  border-radius: ${({ $borderRadius: e }) => e};
6577
6573
  overflow-y: ${({ $overflowY: e }) => e};
6578
6574
  overflow-x: ${({ $overflowX: e }) => e};
6579
6575
  box-shadow: ${({ theme: e, $boxShadow: t }) => {
6580
6576
  var n, r;
6581
- return t && `1px 1px 4px 2px ${((r = (n = e == null ? void 0 : e.boxContainer) == null ? void 0 : n[t].border) == null ? void 0 : r.color) ?? jt[t].border.color}`;
6577
+ return t && `1px 1px 4px 2px ${((r = (n = e == null ? void 0 : e.boxContainer) == null ? void 0 : n[t].border) == null ? void 0 : r.color) ?? Mt[t].border.color}`;
6582
6578
  }};
6583
6579
  min-height: ${({ $minHeight: e }) => e};
6584
6580
  max-height: ${({ $maxHeight: e }) => e};
6585
6581
  max-width: ${({ $maxWidth: e }) => e};
6586
6582
  min-width: ${({ $minWidth: e }) => e};
6587
- `, ln = (e) => {
6583
+ `, an = (e) => {
6588
6584
  const {
6589
6585
  children: t,
6590
6586
  wrap: n,
@@ -6598,15 +6594,15 @@ const Fl = (e) => {
6598
6594
  gap: p,
6599
6595
  margin: d = "0px",
6600
6596
  padding: h = "0px",
6601
- backgroundColor: g = he.LIGHT,
6597
+ backgroundColor: g = pe.LIGHT,
6602
6598
  boxSizing: f,
6603
- borderColor: m = he.LIGHT,
6599
+ borderColor: m = pe.LIGHT,
6604
6600
  overflowY: v,
6605
6601
  overflowX: x,
6606
6602
  boxShadow: w,
6607
- minHeight: S,
6608
- maxHeight: D,
6609
- maxWidth: C,
6603
+ minHeight: C,
6604
+ maxHeight: N,
6605
+ maxWidth: D,
6610
6606
  minWidth: k
6611
6607
  } = e;
6612
6608
  return /* @__PURE__ */ a(
@@ -6629,14 +6625,14 @@ const Fl = (e) => {
6629
6625
  $overflowY: v,
6630
6626
  $overflowX: x,
6631
6627
  $boxShadow: w,
6632
- $minHeight: S,
6633
- $maxHeight: D,
6634
- $maxWidth: C,
6628
+ $minHeight: C,
6629
+ $maxHeight: N,
6630
+ $maxWidth: D,
6635
6631
  $minWidth: k,
6636
6632
  children: t
6637
6633
  }
6638
6634
  );
6639
- }, sn = (e) => {
6635
+ }, ln = (e) => {
6640
6636
  const {
6641
6637
  label: t,
6642
6638
  value: n,
@@ -6647,17 +6643,17 @@ const Fl = (e) => {
6647
6643
  onClickButton: u,
6648
6644
  withTag: l,
6649
6645
  children: s
6650
- } = e, p = ae("(max-width: 1281px)");
6646
+ } = e, p = ie("(max-width: 1281px)");
6651
6647
  return /* @__PURE__ */ a(
6652
- ln,
6648
+ an,
6653
6649
  {
6654
6650
  alignItems: "center",
6655
6651
  borderRadius: "8px",
6656
6652
  padding: p ? "8px" : "6px 16px",
6657
6653
  boxSizing: "border-box",
6658
- backgroundColor: he.GRAY,
6654
+ backgroundColor: pe.GRAY,
6659
6655
  children: /* @__PURE__ */ b(
6660
- Se,
6656
+ we,
6661
6657
  {
6662
6658
  templateColumns: c === "column" ? "1fr" : "auto 1fr",
6663
6659
  templateRows: "auto auto",
@@ -6672,7 +6668,7 @@ const Fl = (e) => {
6672
6668
  {
6673
6669
  type: "label",
6674
6670
  size: p ? "small" : "medium",
6675
- appearance: he.DARK,
6671
+ appearance: pe.DARK,
6676
6672
  weight: "bold",
6677
6673
  as: "span",
6678
6674
  children: t
@@ -6690,7 +6686,7 @@ const Fl = (e) => {
6690
6686
  value: i,
6691
6687
  onClick: u
6692
6688
  }
6693
- ) : /* @__PURE__ */ a(V, { children: /* @__PURE__ */ a(
6689
+ ) : /* @__PURE__ */ a(_, { children: /* @__PURE__ */ a(
6694
6690
  Fl,
6695
6691
  {
6696
6692
  withTag: l ?? !1,
@@ -6712,10 +6708,10 @@ function Ml(e) {
6712
6708
  return e === "" || e === null || e === void 0 ? !0 : Array.isArray(e) ? e.length === 0 : !1;
6713
6709
  }
6714
6710
  function jl(e) {
6715
- const { ctx: t, node: n } = e, r = n.layout ?? {}, o = an(n.entries, t.data);
6711
+ const { ctx: t, node: n } = e, r = n.layout ?? {}, o = on(n.entries, t.data);
6716
6712
  if (!o || o.length === 0) return null;
6717
6713
  const i = /* @__PURE__ */ a(
6718
- Se,
6714
+ we,
6719
6715
  {
6720
6716
  width: "100%",
6721
6717
  height: "auto",
@@ -6726,7 +6722,7 @@ function jl(e) {
6726
6722
  children: o.map((c) => {
6727
6723
  const u = n.valueOf(c);
6728
6724
  return Ml(u) ? null : /* @__PURE__ */ a(
6729
- sn,
6725
+ ln,
6730
6726
  {
6731
6727
  direction: "column",
6732
6728
  label: n.labelOf(c),
@@ -6739,12 +6735,12 @@ function jl(e) {
6739
6735
  n.id
6740
6736
  );
6741
6737
  return r.variant === "lightCard" ? /* @__PURE__ */ a(
6742
- ln,
6738
+ an,
6743
6739
  {
6744
6740
  direction: "column",
6745
6741
  borderRadius: "8px",
6746
6742
  width: "100%",
6747
- backgroundColor: he.LIGHT,
6743
+ backgroundColor: pe.LIGHT,
6748
6744
  boxSizing: "initial",
6749
6745
  children: i
6750
6746
  }
@@ -6758,7 +6754,7 @@ function Vl(e) {
6758
6754
  const n = (e.split(".").pop() ?? e).replace(/([A-Z])/g, " $1").trim();
6759
6755
  return n.charAt(0).toUpperCase() + n.slice(1);
6760
6756
  }
6761
- function me(e) {
6757
+ function fe(e) {
6762
6758
  return typeof e == "object" && e !== null && !Array.isArray(e);
6763
6759
  }
6764
6760
  function Pl(e) {
@@ -6805,7 +6801,7 @@ function Gl(e, t) {
6805
6801
  c(p, h);
6806
6802
  return;
6807
6803
  }
6808
- if (me(s)) {
6804
+ if (fe(s)) {
6809
6805
  if (i.has(s)) {
6810
6806
  c(p, "[Circular]");
6811
6807
  return;
@@ -6817,10 +6813,10 @@ function Gl(e, t) {
6817
6813
  return;
6818
6814
  }
6819
6815
  for (const [g, f] of h) {
6820
- if (!me(f) && !Array.isArray(f) && u(f))
6816
+ if (!fe(f) && !Array.isArray(f) && u(f))
6821
6817
  continue;
6822
6818
  const m = n.has(g) ? p : Ul(p, g);
6823
- me(f) || Array.isArray(f) ? l(f, m, d + 1) : c(m || g, f);
6819
+ fe(f) || Array.isArray(f) ? l(f, m, d + 1) : c(m || g, f);
6824
6820
  }
6825
6821
  return;
6826
6822
  }
@@ -6847,27 +6843,27 @@ function Ln(e, t = 2) {
6847
6843
  return String(e);
6848
6844
  }
6849
6845
  }
6850
- function ue(e) {
6846
+ function ce(e) {
6851
6847
  return e == null ? "" : Array.isArray(e) ? e.map((t) => t == null ? "" : typeof t == "string" ? t : typeof t == "number" || typeof t == "boolean" ? String(t) : Ln(t, 0)).filter((t) => !!String(t).trim()).join(", ") : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : Ln(e, 2);
6852
6848
  }
6853
- function Xt(e) {
6849
+ function Yt(e) {
6854
6850
  const { value: t, isMobile: n } = e, r = Gl(t, {
6855
6851
  skipKeys: ["values"],
6856
6852
  maxDepth: 4
6857
6853
  }), o = n || r.length === 1 ? "1fr" : "repeat(2, 1fr)";
6858
- return /* @__PURE__ */ a(Se, { width: "100%", templateColumns: o, gap: "8px", autoRows: "unset", children: r.map((i) => /* @__PURE__ */ a(
6859
- sn,
6854
+ return /* @__PURE__ */ a(we, { width: "100%", templateColumns: o, gap: "8px", autoRows: "unset", children: r.map((i) => /* @__PURE__ */ a(
6855
+ ln,
6860
6856
  {
6861
6857
  direction: "column",
6862
6858
  label: i.label,
6863
- value: ue(i.value)
6859
+ value: ce(i.value)
6864
6860
  },
6865
6861
  i.id
6866
6862
  )) });
6867
6863
  }
6868
6864
  function zl(e) {
6869
- const { ctx: t, node: n } = e, r = an(n.value, t.data);
6870
- return /* @__PURE__ */ a(Xt, { value: r });
6865
+ const { ctx: t, node: n } = e, r = on(n.value, t.data);
6866
+ return /* @__PURE__ */ a(Yt, { value: r });
6871
6867
  }
6872
6868
  function Hl(e) {
6873
6869
  return e === "" || e === null || e === void 0 ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1;
@@ -6875,7 +6871,7 @@ function Hl(e) {
6875
6871
  function Bl(e) {
6876
6872
  var l, s;
6877
6873
  const { ctx: t, node: n } = e, r = n.layout ?? {}, o = n.items.map((p) => {
6878
- const d = an(p.value, t.data);
6874
+ const d = on(p.value, t.data);
6879
6875
  if (Hl(d))
6880
6876
  return null;
6881
6877
  const h = p.render ? p.render(d, t) : String(d ?? ""), g = !!p.withTag;
@@ -6887,8 +6883,8 @@ function Bl(e) {
6887
6883
  }).filter(Boolean);
6888
6884
  if (o.length === 0)
6889
6885
  return null;
6890
- const c = o.length === 1 ? "1fr" : t.isMobile ? ((l = r.columns) == null ? void 0 : l.mobile) ?? "1fr" : ((s = r.columns) == null ? void 0 : s.desktop) ?? "repeat(2, 1fr)", u = /* @__PURE__ */ a(Se, { width: "100%", templateColumns: c, gap: "8px 16px", autoRows: "unset", children: o.map(({ item: p, valueNode: d, shouldUseChildren: h }) => /* @__PURE__ */ a(
6891
- sn,
6886
+ const c = o.length === 1 ? "1fr" : t.isMobile ? ((l = r.columns) == null ? void 0 : l.mobile) ?? "1fr" : ((s = r.columns) == null ? void 0 : s.desktop) ?? "repeat(2, 1fr)", u = /* @__PURE__ */ a(we, { width: "100%", templateColumns: c, gap: "8px 16px", autoRows: "unset", children: o.map(({ item: p, valueNode: d, shouldUseChildren: h }) => /* @__PURE__ */ a(
6887
+ ln,
6892
6888
  {
6893
6889
  direction: "column",
6894
6890
  label: p.label,
@@ -6899,12 +6895,12 @@ function Bl(e) {
6899
6895
  p.id
6900
6896
  )) });
6901
6897
  return r.variant === "lightCard" ? /* @__PURE__ */ a(
6902
- ln,
6898
+ an,
6903
6899
  {
6904
6900
  direction: "column",
6905
6901
  borderRadius: "8px",
6906
6902
  width: "100%",
6907
- backgroundColor: he.LIGHT,
6903
+ backgroundColor: pe.LIGHT,
6908
6904
  boxSizing: "initial",
6909
6905
  children: u
6910
6906
  }
@@ -6924,11 +6920,11 @@ function Wl(e, t) {
6924
6920
  function Mn(e, t, n) {
6925
6921
  if (!Wl(e, t.data)) return null;
6926
6922
  if (!n)
6927
- return /* @__PURE__ */ a(Xt, { value: e }, e.id);
6923
+ return /* @__PURE__ */ a(Yt, { value: e }, e.id);
6928
6924
  const r = n[e.type];
6929
- return r ? /* @__PURE__ */ a(_.Fragment, { children: r(e, t) }, e.id) : /* @__PURE__ */ a(Xt, { value: e }, e.id);
6925
+ return r ? /* @__PURE__ */ a(j.Fragment, { children: r(e, t) }, e.id) : /* @__PURE__ */ a(Yt, { value: e }, e.id);
6930
6926
  }
6931
- const Yl = N.div`
6927
+ const Yl = E.div`
6932
6928
  display: flex;
6933
6929
  padding: 12px 8px;
6934
6930
  flex-direction: column;
@@ -6943,7 +6939,7 @@ const Yl = N.div`
6943
6939
  var t, n;
6944
6940
  return ((n = (t = e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N40) ?? A.palette.neutral.N40;
6945
6941
  }};
6946
- `, Xl = N.div`
6942
+ `, Xl = E.div`
6947
6943
  display: flex;
6948
6944
  justify-content: space-between;
6949
6945
  align-items: center;
@@ -6960,7 +6956,7 @@ const Yl = N.div`
6960
6956
  {
6961
6957
  type: "label",
6962
6958
  size: "large",
6963
- appearance: he.DARK,
6959
+ appearance: pe.DARK,
6964
6960
  weight: "bold",
6965
6961
  ellipsis: !0,
6966
6962
  children: t
@@ -6970,33 +6966,33 @@ const Yl = N.div`
6970
6966
  B,
6971
6967
  {
6972
6968
  icon: o ? /* @__PURE__ */ a(br, {}) : /* @__PURE__ */ a(vr, {}),
6973
- appearance: he.DARK,
6969
+ appearance: pe.DARK,
6974
6970
  spacing: "compact",
6975
6971
  cursorHover: !0,
6976
6972
  size: "24px"
6977
6973
  }
6978
6974
  )
6979
6975
  ] }),
6980
- o && /* @__PURE__ */ b(V, { children: [
6976
+ o && /* @__PURE__ */ b(_, { children: [
6981
6977
  /* @__PURE__ */ a(W, { dashed: !0 }),
6982
6978
  r
6983
6979
  ] })
6984
6980
  ] });
6985
6981
  };
6986
- function re(e) {
6982
+ function ne(e) {
6987
6983
  const t = e.replace(/([A-Z])/g, " $1").trim();
6988
6984
  return t.charAt(0).toUpperCase() + t.slice(1);
6989
6985
  }
6990
6986
  function jn(e, t) {
6991
6987
  return Object.keys(t).map((r) => ({
6992
6988
  id: `${e}.${r}`,
6993
- label: re(r),
6989
+ label: ne(r),
6994
6990
  value: `${e}.${r}`,
6995
- render: (o) => ue(o)
6991
+ render: (o) => ce(o)
6996
6992
  }));
6997
6993
  }
6998
6994
  function Jl(e) {
6999
- if (!me(e) && !Array.isArray(e))
6995
+ if (!fe(e) && !Array.isArray(e))
7000
6996
  return {
7001
6997
  steps: [
7002
6998
  {
@@ -7015,7 +7011,7 @@ function Jl(e) {
7015
7011
  id: "value",
7016
7012
  label: "Valor",
7017
7013
  value: () => e,
7018
- render: (o) => ue(o)
7014
+ render: (o) => ce(o)
7019
7015
  }
7020
7016
  ]
7021
7017
  },
@@ -7042,7 +7038,7 @@ function Jl(e) {
7042
7038
  entries: () => e,
7043
7039
  keyOf: (o, i) => String(i ?? Math.random()),
7044
7040
  labelOf: (o, i) => `Item ${i ?? ""}`,
7045
- valueOf: (o) => ue(o)
7041
+ valueOf: (o) => ce(o)
7046
7042
  },
7047
7043
  {
7048
7044
  id: "json-fallback",
@@ -7056,10 +7052,10 @@ function Jl(e) {
7056
7052
  const t = e;
7057
7053
  return { steps: Object.keys(t).map((o, i) => {
7058
7054
  const c = String(i + 1), u = t[o];
7059
- if (!me(u) && !Array.isArray(u))
7055
+ if (!fe(u) && !Array.isArray(u))
7060
7056
  return {
7061
7057
  id: c,
7062
- name: re(o),
7058
+ name: ne(o),
7063
7059
  nodes: [
7064
7060
  {
7065
7061
  id: `${o}-primitive`,
@@ -7071,18 +7067,18 @@ function Jl(e) {
7071
7067
  items: [
7072
7068
  {
7073
7069
  id: `${o}.value`,
7074
- label: re(o),
7070
+ label: ne(o),
7075
7071
  value: (l) => l == null ? void 0 : l[o],
7076
- render: (l) => ue(l)
7072
+ render: (l) => ce(l)
7077
7073
  }
7078
7074
  ]
7079
7075
  }
7080
7076
  ]
7081
7077
  };
7082
7078
  if (Array.isArray(u))
7083
- return u.some((s) => me(s)) ? {
7079
+ return u.some((s) => fe(s)) ? {
7084
7080
  id: c,
7085
- name: re(o),
7081
+ name: ne(o),
7086
7082
  nodes: u.map((s, p) => {
7087
7083
  const h = Object.keys(s);
7088
7084
  return {
@@ -7094,18 +7090,18 @@ function Jl(e) {
7094
7090
  },
7095
7091
  items: h.map((g) => ({
7096
7092
  id: `${o}[${p}].${g}`,
7097
- label: re(g),
7093
+ label: ne(g),
7098
7094
  value: (f) => {
7099
7095
  var m, v;
7100
7096
  return (v = (m = f == null ? void 0 : f[o]) == null ? void 0 : m[p]) == null ? void 0 : v[g];
7101
7097
  },
7102
- render: (f) => ue(f)
7098
+ render: (f) => ce(f)
7103
7099
  }))
7104
7100
  };
7105
7101
  })
7106
7102
  } : {
7107
7103
  id: c,
7108
- name: re(o),
7104
+ name: ne(o),
7109
7105
  nodes: [
7110
7106
  {
7111
7107
  id: `${o}-entries`,
@@ -7115,15 +7111,15 @@ function Jl(e) {
7115
7111
  entries: (s) => s == null ? void 0 : s[o],
7116
7112
  keyOf: (s, p) => (s == null ? void 0 : s.id) ?? (s == null ? void 0 : s.businessRuleId) ?? String(p ?? Math.random()),
7117
7113
  labelOf: (s, p) => (s == null ? void 0 : s.decisionId) ?? (s == null ? void 0 : s.label) ?? `Item ${p ?? ""}`,
7118
- valueOf: (s) => ue((s == null ? void 0 : s.value) ?? s)
7114
+ valueOf: (s) => ce((s == null ? void 0 : s.value) ?? s)
7119
7115
  }
7120
7116
  ]
7121
7117
  };
7122
- if (me(u) && "values" in u) {
7118
+ if (fe(u) && "values" in u) {
7123
7119
  const l = u.values;
7124
- return Array.isArray(l) ? l.length > 0 && l.every((d) => me(d) && "labelName" in d && "value" in d) ? {
7120
+ return Array.isArray(l) ? l.length > 0 && l.every((d) => fe(d) && "labelName" in d && "value" in d) ? {
7125
7121
  id: c,
7126
- name: re(o),
7122
+ name: ne(o),
7127
7123
  nodes: [
7128
7124
  {
7129
7125
  id: `${o}-values`,
@@ -7136,12 +7132,12 @@ function Jl(e) {
7136
7132
  entries: `${o}.values`,
7137
7133
  keyOf: (d, h) => (d == null ? void 0 : d.businessRuleId) ?? (d == null ? void 0 : d.id) ?? String(h ?? Math.random()),
7138
7134
  labelOf: (d) => (d == null ? void 0 : d.decisionId) ?? (d == null ? void 0 : d.labelName) ?? "",
7139
- valueOf: (d) => "labelName" in (d ?? {}) && "value" in (d ?? {}) ? `${String(d.labelName)}: ${ue(d.value)}` : ue(d)
7135
+ valueOf: (d) => "labelName" in (d ?? {}) && "value" in (d ?? {}) ? `${String(d.labelName)}: ${ce(d.value)}` : ce(d)
7140
7136
  }
7141
7137
  ]
7142
- } : l.some((d) => me(d)) ? {
7138
+ } : l.some((d) => fe(d)) ? {
7143
7139
  id: c,
7144
- name: re(o),
7140
+ name: ne(o),
7145
7141
  nodes: l.map((d, h) => {
7146
7142
  const f = Object.keys(d);
7147
7143
  return {
@@ -7153,18 +7149,18 @@ function Jl(e) {
7153
7149
  },
7154
7150
  items: f.map((m) => ({
7155
7151
  id: `${o}.values[${h}].${m}`,
7156
- label: re(m),
7152
+ label: ne(m),
7157
7153
  value: (v) => {
7158
- var x, w, S;
7159
- return (S = (w = (x = v == null ? void 0 : v[o]) == null ? void 0 : x.values) == null ? void 0 : w[h]) == null ? void 0 : S[m];
7154
+ var x, w, C;
7155
+ return (C = (w = (x = v == null ? void 0 : v[o]) == null ? void 0 : x.values) == null ? void 0 : w[h]) == null ? void 0 : C[m];
7160
7156
  },
7161
- render: (v) => ue(v)
7157
+ render: (v) => ce(v)
7162
7158
  }))
7163
7159
  };
7164
7160
  })
7165
7161
  } : {
7166
7162
  id: c,
7167
- name: re(o),
7163
+ name: ne(o),
7168
7164
  nodes: [
7169
7165
  {
7170
7166
  id: `${o}-values`,
@@ -7177,12 +7173,12 @@ function Jl(e) {
7177
7173
  entries: `${o}.values`,
7178
7174
  keyOf: (d, h) => String(h ?? Math.random()),
7179
7175
  labelOf: (d, h) => `Item ${h ?? ""}`,
7180
- valueOf: (d) => ue(d)
7176
+ valueOf: (d) => ce(d)
7181
7177
  }
7182
7178
  ]
7183
- } : me(l) ? {
7179
+ } : fe(l) ? {
7184
7180
  id: c,
7185
- name: re(o),
7181
+ name: ne(o),
7186
7182
  nodes: [
7187
7183
  {
7188
7184
  id: `${o}-values`,
@@ -7203,7 +7199,7 @@ function Jl(e) {
7203
7199
  ]
7204
7200
  } : {
7205
7201
  id: c,
7206
- name: re(o),
7202
+ name: ne(o),
7207
7203
  nodes: [
7208
7204
  {
7209
7205
  id: `${o}-values`,
@@ -7221,7 +7217,7 @@ function Jl(e) {
7221
7217
  id: `${o}.values`,
7222
7218
  label: "values",
7223
7219
  value: `${o}.values`,
7224
- render: (s) => ue(s)
7220
+ render: (s) => ce(s)
7225
7221
  }
7226
7222
  ]
7227
7223
  }
@@ -7230,7 +7226,7 @@ function Jl(e) {
7230
7226
  }
7231
7227
  return {
7232
7228
  id: c,
7233
- name: re(o),
7229
+ name: ne(o),
7234
7230
  nodes: [
7235
7231
  {
7236
7232
  id: `${o}-object`,
@@ -7271,7 +7267,7 @@ function $s(e) {
7271
7267
  {
7272
7268
  iconBefore: /* @__PURE__ */ a(yr, {}),
7273
7269
  onClick: () => p.onBack ? p.onBack({ stepId: p.id }) : o == null ? void 0 : o(Number(p.id)),
7274
- appearance: he.DARK,
7270
+ appearance: pe.DARK,
7275
7271
  variant: "none",
7276
7272
  children: "Regresar a este paso"
7277
7273
  }
@@ -7284,7 +7280,7 @@ export {
7284
7280
  Ns as BackAndNextButton,
7285
7281
  et as BusinessRuleCard,
7286
7282
  Hn as BusinessRuleCardNew,
7287
- nn as BusinessRuleView,
7283
+ tn as BusinessRuleView,
7288
7284
  qn as BusinessRuleViewNew,
7289
7285
  ps as BusinessRules,
7290
7286
  gs as BusinessRulesNew,
@@ -7293,7 +7289,7 @@ export {
7293
7289
  Rn as DraggableList,
7294
7290
  ca as DropdownMenu,
7295
7291
  Ss as DropdownMenuContainer,
7296
- oe as EValueHowToSetUp,
7292
+ re as EValueHowToSetUp,
7297
7293
  fs as Filter,
7298
7294
  ms as FormFilter,
7299
7295
  Gn as ModalRules,
@@ -7305,7 +7301,7 @@ export {
7305
7301
  Bn as filterByGroup,
7306
7302
  Es as flatFromGroups,
7307
7303
  bs as formatDecisionForBackend,
7308
- xe as getConditionsByGroupNew,
7304
+ Te as getConditionsByGroupNew,
7309
7305
  vl as groupsRecordToArrayNew,
7310
7306
  ks as mapByGroupNew,
7311
7307
  As as normalizeDecisionToNewShape,