@isettingkit/business-rules 2.1.6 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import { jsx as a, jsxs as m, Fragment as O } from "react/jsx-runtime";
2
2
  import { MdOutlineDelete as an, MdClear as ln, MdAdd as Ge, MdOutlineCreate as $t, MdExpandLess as At, MdExpandMore as xn, MdInfo as It, MdCached as Rt, MdOutlineInfo as Ft, MdClose as Lt, MdOutlineFilterAltOff as rt, MdOutlineFilterAlt as ot, MdChevronRight as Mn, MdArrowRight as Ot, MdOutlineArrowCircleLeft as Pt, MdOutlineArrowCircleRight as Mt, MdOutlineChevronRight as zt, MdOutlineError as Vt } from "react-icons/md";
3
- import { inube as S, Stack as v, Divider as j, Icon as P, Text as k, SkeletonLine as Z, useMediaQuery as ne, Blanket as sn, Button as H, Grid as Ye, Toggle as dn, Checkbox as Nn, Date as Re, Box as Ut, Tag as ye, SkeletonIcon as _t, Fieldset as Ue, Tabs as Ht, OptionList as jt, Checkpicker as qt, Label as Bt, OptionItem as Gt } from "@inubekit/inubekit";
4
- import C, { keyframes as kn, ThemeContext as $n } from "styled-components";
3
+ import { inube as D, Stack as v, Divider as j, Icon as P, Text as A, SkeletonLine as Z, useMediaQuery as ne, Blanket as sn, Button as H, Grid as Ye, Toggle as dn, Checkbox as Nn, Date as Re, Box as Ut, Tag as ye, SkeletonIcon as _t, Fieldset as Ue, Tabs as Ht, OptionList as jt, Checkpicker as qt, Label as Bt, OptionItem as Gt } from "@inubekit/inubekit";
4
+ import w, { keyframes as kn, ThemeContext as $n } from "styled-components";
5
5
  import { ValueDataType as z, ValueHowToSetUp as J, DecisionConditionRender as nn, DecisionConditionRenderNew as zn } from "@isettingkit/input";
6
6
  import { DecisionViewConditionRenderer as $e, DecisionViewConditionRendererNew as Ke } from "@isettingkit/view";
7
7
  import { createPortal as cn } from "react-dom";
8
8
  import { useFormik as An } from "formik";
9
9
  import { string as oe, mixed as Oe, object as ee, number as ae, lazy as qe, date as Fe } from "yup";
10
- import _, { useState as M, useRef as Ae, useEffect as Te, useContext as In, forwardRef as Yt, useMemo as at, useCallback as Wt } from "react";
10
+ import U, { useState as M, useRef as Ae, useEffect as Te, useContext as In, forwardRef as Yt, useMemo as at, useCallback as Wt } from "react";
11
11
  import { Link as it, useLocation as Xt } from "react-router-dom";
12
12
  import Qt from "axios";
13
13
  import { franc as Kt } from "franc-min";
14
- const Zt = C.div`
14
+ const Zt = w.div`
15
15
  border-radius: 8px;
16
16
  border: 1px solid
17
17
  ${({ theme: e }) => {
18
18
  var n, t;
19
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
19
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
20
20
  }};
21
21
  box-sizing: border-box;
22
22
  display: flex;
@@ -27,7 +27,7 @@ const Zt = C.div`
27
27
  height: 100%;
28
28
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
29
29
  `;
30
- C.div`
30
+ w.div`
31
31
  width: 100%;
32
32
  height: 100%;
33
33
  overflow-y: auto;
@@ -70,27 +70,27 @@ const We = (e) => {
70
70
  from: e.from ?? "",
71
71
  to: e.to ?? ""
72
72
  }), rr = (e) => e.value, or = (e) => e.value, ar = (e) => e.value;
73
- var N = /* @__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))(N || {});
73
+ var $ = /* @__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))($ || {});
74
74
  const ir = {
75
- [N.LIST_OF_VALUES]: er,
76
- [N.LIST_OF_VALUES_MULTI]: nr,
77
- [N.RANGE]: tr,
78
- [N.GREATER_THAN]: rr,
79
- [N.LESS_THAN]: or,
80
- [N.EQUAL]: ar
75
+ [$.LIST_OF_VALUES]: er,
76
+ [$.LIST_OF_VALUES_MULTI]: nr,
77
+ [$.RANGE]: tr,
78
+ [$.GREATER_THAN]: rr,
79
+ [$.LESS_THAN]: or,
80
+ [$.EQUAL]: ar
81
81
  }, _e = (e) => {
82
82
  const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), r = ir[e == null ? void 0 : e.howToSetTheDecision] || Jt;
83
83
  return t && r(n) || n || void 0;
84
- }, Vn = C.div`
84
+ }, Vn = w.div`
85
85
  & > div {
86
86
  border-radius: 8px;
87
87
  border: 1px solid
88
88
  ${({ theme: e }) => {
89
89
  var n, t;
90
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
90
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
91
91
  }};
92
92
  }
93
- `, Un = C.div`
93
+ `, Un = w.div`
94
94
  width: 100%;
95
95
  height: 100%;
96
96
  overflow-y: auto;
@@ -141,7 +141,7 @@ const ir = {
141
141
  height: "203px",
142
142
  children: [
143
143
  p.length > 0 && /* @__PURE__ */ a(
144
- k,
144
+ A,
145
145
  {
146
146
  type: "label",
147
147
  size: "large",
@@ -258,15 +258,15 @@ const ir = {
258
258
  visibleConditions: l
259
259
  }
260
260
  );
261
- }, sr = C.div`
261
+ }, sr = w.div`
262
262
  position: relative;
263
263
  & > div {
264
264
  padding: 24px 16px;
265
265
  }
266
- `, dr = C.div`
266
+ `, dr = w.div`
267
267
  background-color: ${({ theme: e }) => {
268
268
  var n, t;
269
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || S.palette.neutral.N0;
269
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || D.palette.neutral.N0;
270
270
  }};
271
271
  max-width: 450px;
272
272
  max-height: 90vh;
@@ -304,7 +304,7 @@ const ir = {
304
304
  return cn(
305
305
  /* @__PURE__ */ a(sr, { smallScreen: s, children: /* @__PURE__ */ a(sn, { children: /* @__PURE__ */ a(dr, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
306
306
  /* @__PURE__ */ a(v, { direction: "column", gap: "24px", children: /* @__PURE__ */ m(v, { alignItems: "center", justifyContent: "space-between", children: [
307
- /* @__PURE__ */ a(k, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
307
+ /* @__PURE__ */ a(A, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
308
308
  /* @__PURE__ */ a(ln, { size: "24px", cursor: "pointer", onClick: r })
309
309
  ] }) }),
310
310
  n
@@ -321,12 +321,12 @@ const ir = {
321
321
  transform: translateY(0);
322
322
  }
323
323
  `;
324
- C.div`
324
+ w.div`
325
325
  border-radius: 8px;
326
326
  border: 1px solid
327
327
  ${({ theme: e }) => {
328
328
  var n, t;
329
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
329
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
330
330
  }};
331
331
  box-sizing: border-box;
332
332
  display: flex;
@@ -335,21 +335,21 @@ C.div`
335
335
  height: 100%;
336
336
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
337
337
  `;
338
- C.div`
338
+ w.div`
339
339
  & > div {
340
340
  border-radius: 8px;
341
341
  border: 1px solid
342
342
  ${({ theme: e }) => {
343
343
  var n, t;
344
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
344
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
345
345
  }};
346
346
  }
347
347
  `;
348
- const st = C.div`
348
+ const st = w.div`
349
349
  & > div {
350
350
  background-color: ${({ theme: e }) => {
351
351
  var n, t;
352
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N10) || S.palette.neutral.N10;
352
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N10) || D.palette.neutral.N10;
353
353
  }};
354
354
  justify-content: center;
355
355
  }
@@ -358,18 +358,18 @@ const st = C.div`
358
358
  height: 100%;
359
359
  padding-bottom: 12px;
360
360
  cursor: pointer;
361
- `, Xe = C.div`
361
+ `, Xe = w.div`
362
362
  width: 100%;
363
363
  height: 100%;
364
364
  & > div {
365
365
  animation: ${cr} 600ms ease-out;
366
366
  }
367
- `, ur = C.div`
367
+ `, ur = w.div`
368
368
  & > div > div {
369
369
  border-radius: 8px;
370
370
  box-sizing: border-box;
371
371
  }
372
- `, pr = C.div`
372
+ `, pr = w.div`
373
373
  & > div {
374
374
  width: 100%;
375
375
  height: 100%;
@@ -406,7 +406,7 @@ const st = C.div`
406
406
  }, hr = (e) => {
407
407
  const { decision: n, controls: t, handleOpenModal: r, handleDelete: o, textValues: i } = e;
408
408
  return n ? /* @__PURE__ */ a(Xe, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
409
- /* @__PURE__ */ a(k, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
409
+ /* @__PURE__ */ a(A, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
410
410
  /* @__PURE__ */ a(
411
411
  We,
412
412
  {
@@ -426,7 +426,7 @@ const st = C.div`
426
426
  shouldRenderEmptyMessage: o
427
427
  } = e, i = n || "Agregar decisión";
428
428
  return /* @__PURE__ */ a(Xe, { children: o ? null : /* @__PURE__ */ m(v, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
429
- /* @__PURE__ */ a(k, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
429
+ /* @__PURE__ */ a(A, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
430
430
  /* @__PURE__ */ a(
431
431
  st,
432
432
  {
@@ -441,7 +441,7 @@ const st = C.div`
441
441
  controls: !1,
442
442
  children: /* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
443
443
  /* @__PURE__ */ a(P, { appearance: "gray", icon: /* @__PURE__ */ a(Ge, {}), size: "35px" }),
444
- /* @__PURE__ */ a(k, { appearance: "gray", type: "body", size: "large", children: i })
444
+ /* @__PURE__ */ a(A, { appearance: "gray", type: "body", size: "large", children: i })
445
445
  ] })
446
446
  }
447
447
  )
@@ -504,7 +504,7 @@ const st = C.div`
504
504
  handleSubmitForm: g,
505
505
  handleDelete: h,
506
506
  terms: f = !0
507
- } = e, T = ne("(max-width: 681px)"), y = ne("(max-width: 400px)"), { renderedCards: x, shouldRenderAddCard: w } = br({
507
+ } = e, x = ne("(max-width: 681px)"), y = ne("(max-width: 400px)"), { renderedCards: T, shouldRenderAddCard: C } = br({
508
508
  controls: n,
509
509
  customTitleContentAddCard: t,
510
510
  decisions: o,
@@ -512,22 +512,22 @@ const st = C.div`
512
512
  handleOpenModal: u,
513
513
  handleDelete: h,
514
514
  textValues: i
515
- }), D = (o == null ? void 0 : o.length) === 0 && !p;
515
+ }), E = (o == null ? void 0 : o.length) === 0 && !p;
516
516
  return /* @__PURE__ */ m(O, { children: [
517
- /* @__PURE__ */ a(ur, { children: /* @__PURE__ */ a(pr, { children: /* @__PURE__ */ a(v, { direction: "column", gap: "16px", padding: "6px", children: D ? /* @__PURE__ */ m(
517
+ /* @__PURE__ */ a(ur, { children: /* @__PURE__ */ a(pr, { children: /* @__PURE__ */ a(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */ m(
518
518
  v,
519
519
  {
520
520
  direction: "column",
521
521
  gap: "28px",
522
522
  width: "100%",
523
- height: T ? "auto" : "435px",
523
+ height: x ? "auto" : "435px",
524
524
  justifyContent: "center",
525
525
  alignItems: "center",
526
526
  children: [
527
- /* @__PURE__ */ a(k, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(O, { children: [
527
+ /* @__PURE__ */ a(A, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(O, { children: [
528
528
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
529
529
  /* @__PURE__ */ m(
530
- k,
530
+ A,
531
531
  {
532
532
  as: "span",
533
533
  type: "label",
@@ -564,10 +564,10 @@ const st = C.div`
564
564
  autoRows: "1fr",
565
565
  justifyItems: "center",
566
566
  padding: "6px",
567
- height: T ? "auto" : "484px",
567
+ height: x ? "auto" : "484px",
568
568
  children: [
569
- x,
570
- w && Tn({
569
+ T,
570
+ C && Tn({
571
571
  type: "add",
572
572
  index: o == null ? void 0 : o.length,
573
573
  controls: n,
@@ -577,7 +577,7 @@ const st = C.div`
577
577
  handleOpenModal: u,
578
578
  handleDelete: h,
579
579
  textValues: i,
580
- shouldRenderEmptyMessage: D,
580
+ shouldRenderEmptyMessage: E,
581
581
  terms: f
582
582
  })
583
583
  ]
@@ -602,15 +602,15 @@ const st = C.div`
602
602
  }
603
603
  )
604
604
  ] });
605
- }, vr = C.div`
605
+ }, vr = w.div`
606
606
  position: relative;
607
607
  & > div {
608
608
  padding: 24px 16px;
609
609
  }
610
- `, yr = C.div`
610
+ `, yr = w.div`
611
611
  background-color: ${({ theme: e }) => {
612
612
  var n, t;
613
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || S.palette.neutral.N0;
613
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || D.palette.neutral.N0;
614
614
  }};
615
615
  max-width: 450px;
616
616
  max-height: 90vh;
@@ -648,7 +648,7 @@ const st = C.div`
648
648
  return cn(
649
649
  /* @__PURE__ */ a(vr, { $smallScreen: s, children: /* @__PURE__ */ a(sn, { children: /* @__PURE__ */ a(yr, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
650
650
  /* @__PURE__ */ a(v, { direction: "column", gap: "24px", children: /* @__PURE__ */ m(v, { alignItems: "center", justifyContent: "space-between", children: [
651
- /* @__PURE__ */ a(k, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
651
+ /* @__PURE__ */ a(A, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
652
652
  /* @__PURE__ */ a(ln, { size: "24px", cursor: "pointer", onClick: r })
653
653
  ] }) }),
654
654
  n
@@ -665,12 +665,12 @@ const st = C.div`
665
665
  transform: translateY(0);
666
666
  }
667
667
  `;
668
- C.div`
668
+ w.div`
669
669
  border-radius: 8px;
670
670
  border: 1px solid
671
671
  ${({ theme: e }) => {
672
672
  var n, t;
673
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
673
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
674
674
  }};
675
675
  box-sizing: border-box;
676
676
  display: flex;
@@ -679,21 +679,21 @@ C.div`
679
679
  height: 100%;
680
680
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
681
681
  `;
682
- C.div`
682
+ w.div`
683
683
  & > div {
684
684
  border-radius: 8px;
685
685
  border: 1px solid
686
686
  ${({ theme: e }) => {
687
687
  var n, t;
688
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
688
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
689
689
  }};
690
690
  }
691
691
  `;
692
- C.div`
692
+ w.div`
693
693
  & > div {
694
694
  background-color: ${({ theme: e }) => {
695
695
  var n, t;
696
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N10) || S.palette.neutral.N10;
696
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N10) || D.palette.neutral.N10;
697
697
  }};
698
698
  justify-content: center;
699
699
  }
@@ -703,19 +703,19 @@ C.div`
703
703
  padding-bottom: 12px;
704
704
  cursor: pointer;
705
705
  `;
706
- C.div`
706
+ w.div`
707
707
  width: 100%;
708
708
  height: 100%;
709
709
  & > div {
710
710
  animation: ${Tr} 600ms ease-out;
711
711
  }
712
712
  `;
713
- const wr = C.div`
713
+ const wr = w.div`
714
714
  & > div > div {
715
715
  border-radius: 8px;
716
716
  box-sizing: border-box;
717
717
  }
718
- `, Cr = C.div`
718
+ `, Cr = w.div`
719
719
  & > div {
720
720
  width: 100%;
721
721
  height: 100%;
@@ -753,25 +753,25 @@ const wr = C.div`
753
753
  from: e.from ?? "",
754
754
  to: e.to ?? ""
755
755
  }), $r = (e) => e.value, Ar = (e) => e.value, Ir = (e) => e.value, Rr = {
756
- [N.LIST_OF_VALUES]: Er,
757
- [N.LIST_OF_VALUES_MULTI]: Nr,
758
- [N.RANGE]: kr,
759
- [N.GREATER_THAN]: $r,
760
- [N.LESS_THAN]: Ar,
761
- [N.EQUAL]: Ir
756
+ [$.LIST_OF_VALUES]: Er,
757
+ [$.LIST_OF_VALUES_MULTI]: Nr,
758
+ [$.RANGE]: kr,
759
+ [$.GREATER_THAN]: $r,
760
+ [$.LESS_THAN]: Ar,
761
+ [$.EQUAL]: Ir
762
762
  }, He = (e) => {
763
763
  const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), r = Rr[e == null ? void 0 : e.howToSetTheDecision] || Sr;
764
764
  return t && r(n) || n || void 0;
765
- }, _n = C.div`
765
+ }, _n = w.div`
766
766
  & > div {
767
767
  border-radius: 8px;
768
768
  border: 1px solid
769
769
  ${({ theme: e }) => {
770
770
  var n, t;
771
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
771
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
772
772
  }};
773
773
  }
774
- `, Hn = C.div`
774
+ `, Hn = w.div`
775
775
  width: 100%;
776
776
  height: 100%;
777
777
  overflow-y: auto;
@@ -822,7 +822,7 @@ const wr = C.div`
822
822
  height: "203px",
823
823
  children: [
824
824
  p.length > 0 && /* @__PURE__ */ a(
825
- k,
825
+ A,
826
826
  {
827
827
  type: "label",
828
828
  size: "large",
@@ -939,12 +939,12 @@ const wr = C.div`
939
939
  visibleConditions: l
940
940
  }
941
941
  );
942
- }, Mr = C.div`
942
+ }, Mr = w.div`
943
943
  border-radius: 8px;
944
944
  border: 1px solid
945
945
  ${({ theme: e }) => {
946
946
  var n, t;
947
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
947
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
948
948
  }};
949
949
  box-sizing: border-box;
950
950
  display: flex;
@@ -955,7 +955,7 @@ const wr = C.div`
955
955
  height: 100%;
956
956
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
957
957
  `;
958
- C.div`
958
+ w.div`
959
959
  width: 100%;
960
960
  height: 100%;
961
961
  overflow-y: auto;
@@ -997,7 +997,7 @@ const zr = (e) => {
997
997
  }, Vr = (e) => {
998
998
  const { decision: n, controls: t, handleOpenModal: r, handleDelete: o, textValues: i } = e;
999
999
  return n ? /* @__PURE__ */ a(Xe, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
1000
- /* @__PURE__ */ a(k, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
1000
+ /* @__PURE__ */ a(A, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
1001
1001
  /* @__PURE__ */ a(
1002
1002
  zr,
1003
1003
  {
@@ -1023,7 +1023,7 @@ const zr = (e) => {
1023
1023
  shouldRenderEmptyMessage: o
1024
1024
  } = e, i = n || "Agregar decisión";
1025
1025
  return /* @__PURE__ */ a(Xe, { children: o ? null : /* @__PURE__ */ m(v, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
1026
- /* @__PURE__ */ a(k, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
1026
+ /* @__PURE__ */ a(A, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
1027
1027
  /* @__PURE__ */ a(
1028
1028
  st,
1029
1029
  {
@@ -1038,7 +1038,7 @@ const zr = (e) => {
1038
1038
  controls: !1,
1039
1039
  children: /* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
1040
1040
  /* @__PURE__ */ a(P, { appearance: "gray", icon: /* @__PURE__ */ a(Ge, {}), size: "35px" }),
1041
- /* @__PURE__ */ a(k, { appearance: "gray", type: "body", size: "large", children: i })
1041
+ /* @__PURE__ */ a(A, { appearance: "gray", type: "body", size: "large", children: i })
1042
1042
  ] })
1043
1043
  }
1044
1044
  )
@@ -1100,12 +1100,12 @@ const zr = (e) => {
1100
1100
  schema: oe().required("Requerido"),
1101
1101
  value: e
1102
1102
  }, Gr = {
1103
- [N.LIST_OF_VALUES]: jr,
1104
- [N.LIST_OF_VALUES_MULTI]: qr,
1105
- [N.RANGE]: Br,
1106
- [N.GREATER_THAN]: fn,
1107
- [N.LESS_THAN]: fn,
1108
- [N.EQUAL]: fn
1103
+ [$.LIST_OF_VALUES]: jr,
1104
+ [$.LIST_OF_VALUES_MULTI]: qr,
1105
+ [$.RANGE]: Br,
1106
+ [$.GREATER_THAN]: fn,
1107
+ [$.LESS_THAN]: fn,
1108
+ [$.EQUAL]: fn
1109
1109
  }, Yr = (e) => Gr[e] || Hr;
1110
1110
  var Fn = /* @__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))(Fn || {});
1111
1111
  const en = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Array.isArray(e) || e.length > 0), Wr = (e, n) => {
@@ -1162,12 +1162,12 @@ function Xr({
1162
1162
  };
1163
1163
  t.terms && (l.effectiveFrom = Fe().required("La fecha de inicio es requerida"), l.validUntil = Fe().when(
1164
1164
  "checkClosed",
1165
- (h, f, { parent: T }) => (T == null ? void 0 : T.checkClosed) ? f.required("La fecha de finalización es requerida").test(
1165
+ (h, f, { parent: x }) => (x == null ? void 0 : x.checkClosed) ? f.required("La fecha de finalización es requerida").test(
1166
1166
  "is-after-startDate",
1167
1167
  "La fecha de finalización debe ser mayor o igual a la fecha de inicio",
1168
- function(x) {
1169
- const w = this.parent.effectiveFrom;
1170
- return !w || !x ? !0 : new Date(x) >= new Date(w);
1168
+ function(T) {
1169
+ const C = this.parent.effectiveFrom;
1170
+ return !C || !T ? !0 : new Date(T) >= new Date(C);
1171
1171
  }
1172
1172
  ) : f.notRequired()
1173
1173
  ));
@@ -1177,8 +1177,8 @@ function Xr({
1177
1177
  validationSchema: p,
1178
1178
  validateOnBlur: !0,
1179
1179
  onSubmit: (h) => {
1180
- var x;
1181
- const f = ((x = e.conditionGroups) == null ? void 0 : x.ConditionGroupId) ?? "group-primary", T = h.toggleNone ? [] : Wr(h, r), y = {
1180
+ var T;
1181
+ const f = ((T = e.conditionGroups) == null ? void 0 : T.ConditionGroupId) ?? "group-primary", x = h.toggleNone ? [] : Wr(h, r), y = {
1182
1182
  ...e,
1183
1183
  ruleName: h.ruleName,
1184
1184
  decisionDataType: h.decisionDataType,
@@ -1188,7 +1188,7 @@ function Xr({
1188
1188
  validUntil: h.validUntil,
1189
1189
  conditionGroups: {
1190
1190
  ConditionGroupId: f,
1191
- conditionsThatEstablishesTheDecision: T
1191
+ conditionsThatEstablishesTheDecision: x
1192
1192
  }
1193
1193
  };
1194
1194
  n(y);
@@ -1210,16 +1210,16 @@ function Xr({
1210
1210
  });
1211
1211
  } };
1212
1212
  }
1213
- const Qr = C.div`
1213
+ const Qr = w.div`
1214
1214
  & > div {
1215
1215
  border-radius: 8px;
1216
1216
  border: 1px solid
1217
1217
  ${({ theme: e }) => {
1218
1218
  var n, t;
1219
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
1219
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
1220
1220
  }};
1221
1221
  }
1222
- `, Kr = C.div`
1222
+ `, Kr = w.div`
1223
1223
  width: 100%;
1224
1224
  height: 100%;
1225
1225
  overflow-y: auto;
@@ -1258,7 +1258,7 @@ const Qr = C.div`
1258
1258
  },
1259
1259
  size: "small",
1260
1260
  value: d,
1261
- children: /* @__PURE__ */ a(k, { size: "medium", type: "label", weight: "bold", as: "span", children: i })
1261
+ children: /* @__PURE__ */ a(A, { size: "medium", type: "label", weight: "bold", as: "span", children: i })
1262
1262
  }
1263
1263
  ) }),
1264
1264
  l && /* @__PURE__ */ a(O, { children: t })
@@ -1278,17 +1278,17 @@ const Qr = C.div`
1278
1278
  messageEnd: c = "",
1279
1279
  statusStart: g = "pending",
1280
1280
  statusEnd: h = "pending"
1281
- } = e, [f, T] = M(s), [y, x] = M(l), [w, D] = M(p), I = ({ target: $ }) => {
1282
- T($.checked), r && r($.checked);
1283
- }, E = ($) => {
1284
- x($.target.value), n($);
1285
- }, R = ($) => {
1286
- D($.target.value), t($);
1281
+ } = e, [f, x] = M(s), [y, T] = M(l), [C, E] = M(p), N = ({ target: k }) => {
1282
+ x(k.checked), r && r(k.checked);
1283
+ }, S = (k) => {
1284
+ T(k.target.value), n(k);
1285
+ }, I = (k) => {
1286
+ E(k.target.value), t(k);
1287
1287
  }, F = ne("(max-width: 400px)");
1288
1288
  return /* @__PURE__ */ m(O, { children: [
1289
1289
  /* @__PURE__ */ m(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
1290
1290
  /* @__PURE__ */ a(
1291
- k,
1291
+ A,
1292
1292
  {
1293
1293
  appearance: "gray",
1294
1294
  margin: "10px 0",
@@ -1309,7 +1309,7 @@ const Qr = C.div`
1309
1309
  Nn,
1310
1310
  {
1311
1311
  label: "Cerrada",
1312
- onChange: I,
1312
+ onChange: N,
1313
1313
  checked: f,
1314
1314
  value: ""
1315
1315
  }
@@ -1329,7 +1329,7 @@ const Qr = C.div`
1329
1329
  {
1330
1330
  id: "dateStart",
1331
1331
  label: o,
1332
- onChange: E,
1332
+ onChange: S,
1333
1333
  value: y,
1334
1334
  required: d,
1335
1335
  size: "compact",
@@ -1342,8 +1342,8 @@ const Qr = C.div`
1342
1342
  {
1343
1343
  id: "dateEnd",
1344
1344
  label: i,
1345
- onChange: R,
1346
- value: w,
1345
+ onChange: I,
1346
+ value: C,
1347
1347
  required: d,
1348
1348
  size: "compact",
1349
1349
  status: h,
@@ -1389,7 +1389,7 @@ const Qr = C.div`
1389
1389
  alignItems: "center",
1390
1390
  gap: "64px",
1391
1391
  children: [
1392
- /* @__PURE__ */ a(k, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
1392
+ /* @__PURE__ */ a(A, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
1393
1393
  /* @__PURE__ */ a(
1394
1394
  dn,
1395
1395
  {
@@ -1397,7 +1397,7 @@ const Qr = C.div`
1397
1397
  onChange: () => s(!n.values.toggleNone),
1398
1398
  checked: n.values.toggleNone,
1399
1399
  size: "small",
1400
- children: /* @__PURE__ */ a(k, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
1400
+ children: /* @__PURE__ */ a(A, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
1401
1401
  }
1402
1402
  )
1403
1403
  ]
@@ -1447,7 +1447,7 @@ const Qr = C.div`
1447
1447
  )
1448
1448
  ] }),
1449
1449
  /* @__PURE__ */ a(j, {}),
1450
- l && /* @__PURE__ */ a(k, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
1450
+ l && /* @__PURE__ */ a(A, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
1451
1451
  /* @__PURE__ */ m(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
1452
1452
  /* @__PURE__ */ a(H, { appearance: "gray", onClick: r, children: t.cancel }),
1453
1453
  /* @__PURE__ */ a(H, { type: "submit", children: t.confirm })
@@ -1466,7 +1466,7 @@ const Qr = C.div`
1466
1466
  decisionDataType: n.decisionDataType,
1467
1467
  listOfPossibleValues: n.listOfPossibleValues
1468
1468
  }, l = ((f = (h = n.conditionGroups[0]) == null ? void 0 : h.conditionsThatEstablishesTheDecision) == null ? void 0 : f.filter(
1469
- (T) => !T.hidden
1469
+ (x) => !x.hidden
1470
1470
  )) || [], p = !!i.errors.conditionsThatEstablishesTheDecision && i.submitCount > 0, u = i.touched.effectiveFrom ? i.errors.effectiveFrom ? "invalid" : "valid" : void 0, c = i.touched.validUntil ? i.errors.validUntil ? "invalid" : "valid" : void 0;
1471
1471
  return /* @__PURE__ */ a(
1472
1472
  eo,
@@ -1478,21 +1478,21 @@ const Qr = C.div`
1478
1478
  visibleConditions: l,
1479
1479
  normalizedDecision: d,
1480
1480
  handleToggleNoneChange: s,
1481
- handleConditionToggleChange: (T, y) => (x) => {
1482
- if (!x)
1481
+ handleConditionToggleChange: (x, y) => (T) => {
1482
+ if (!T)
1483
1483
  i.setFieldValue(
1484
- `conditionsThatEstablishesTheDecision.${T}`,
1484
+ `conditionsThatEstablishesTheDecision.${x}`,
1485
1485
  void 0
1486
1486
  ), i.setFieldTouched(
1487
- `conditionsThatEstablishesTheDecision.${T}`,
1487
+ `conditionsThatEstablishesTheDecision.${x}`,
1488
1488
  !1,
1489
1489
  !1
1490
- ), Object.keys(i.touched).filter((D) => D.startsWith("conditionsThatEstablishesTheDecision.")).some((D) => i.touched[D] === !0) || s(!0);
1490
+ ), Object.keys(i.touched).filter((E) => E.startsWith("conditionsThatEstablishesTheDecision.")).some((E) => i.touched[E] === !0) || s(!0);
1491
1491
  else {
1492
- const w = y ? [] : "";
1492
+ const C = y ? [] : "";
1493
1493
  s(!1), i.setFieldValue(
1494
- `conditionsThatEstablishesTheDecision.${T}`,
1495
- w
1494
+ `conditionsThatEstablishesTheDecision.${x}`,
1495
+ C
1496
1496
  );
1497
1497
  }
1498
1498
  },
@@ -1550,7 +1550,7 @@ const Qr = C.div`
1550
1550
  handleSubmitForm: g,
1551
1551
  handleDelete: h,
1552
1552
  terms: f = !0
1553
- } = e, T = ne("(max-width: 681px)"), y = ne("(max-width: 400px)"), { renderedCards: x, shouldRenderAddCard: w } = to({
1553
+ } = e, x = ne("(max-width: 681px)"), y = ne("(max-width: 400px)"), { renderedCards: T, shouldRenderAddCard: C } = to({
1554
1554
  controls: n,
1555
1555
  customTitleContentAddCard: t,
1556
1556
  decisions: o,
@@ -1558,22 +1558,22 @@ const Qr = C.div`
1558
1558
  handleOpenModal: u,
1559
1559
  handleDelete: h,
1560
1560
  textValues: i
1561
- }), D = (o == null ? void 0 : o.length) === 0 && !p;
1561
+ }), E = (o == null ? void 0 : o.length) === 0 && !p;
1562
1562
  return /* @__PURE__ */ m(O, { children: [
1563
- /* @__PURE__ */ a(wr, { children: /* @__PURE__ */ a(Cr, { children: /* @__PURE__ */ a(v, { direction: "column", gap: "16px", padding: "6px", children: D ? /* @__PURE__ */ m(
1563
+ /* @__PURE__ */ a(wr, { children: /* @__PURE__ */ a(Cr, { children: /* @__PURE__ */ a(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */ m(
1564
1564
  v,
1565
1565
  {
1566
1566
  direction: "column",
1567
1567
  gap: "28px",
1568
1568
  width: "100%",
1569
- height: T ? "auto" : "435px",
1569
+ height: x ? "auto" : "435px",
1570
1570
  justifyContent: "center",
1571
1571
  alignItems: "center",
1572
1572
  children: [
1573
- /* @__PURE__ */ a(k, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(O, { children: [
1573
+ /* @__PURE__ */ a(A, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(O, { children: [
1574
1574
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
1575
1575
  /* @__PURE__ */ m(
1576
- k,
1576
+ A,
1577
1577
  {
1578
1578
  as: "span",
1579
1579
  type: "label",
@@ -1610,10 +1610,10 @@ const Qr = C.div`
1610
1610
  autoRows: "1fr",
1611
1611
  justifyItems: "center",
1612
1612
  padding: "6px",
1613
- height: T ? "auto" : "484px",
1613
+ height: x ? "auto" : "484px",
1614
1614
  children: [
1615
- x,
1616
- w && wn({
1615
+ T,
1616
+ C && wn({
1617
1617
  type: "add",
1618
1618
  index: o == null ? void 0 : o.length,
1619
1619
  controls: n,
@@ -1623,7 +1623,7 @@ const Qr = C.div`
1623
1623
  handleOpenModal: u,
1624
1624
  handleDelete: h,
1625
1625
  textValues: i,
1626
- shouldRenderEmptyMessage: D,
1626
+ shouldRenderEmptyMessage: E,
1627
1627
  terms: f
1628
1628
  })
1629
1629
  ]
@@ -1655,12 +1655,12 @@ const Qr = C.div`
1655
1655
  from: e.from ?? "",
1656
1656
  to: e.to ?? ""
1657
1657
  }), lo = (e) => e.value, so = (e) => e.value, co = (e) => e.value, uo = {
1658
- [N.LIST_OF_VALUES]: oo,
1659
- [N.LIST_OF_VALUES_MULTI]: ao,
1660
- [N.RANGE]: io,
1661
- [N.GREATER_THAN]: lo,
1662
- [N.LESS_THAN]: so,
1663
- [N.EQUAL]: co
1658
+ [$.LIST_OF_VALUES]: oo,
1659
+ [$.LIST_OF_VALUES_MULTI]: ao,
1660
+ [$.RANGE]: io,
1661
+ [$.GREATER_THAN]: lo,
1662
+ [$.LESS_THAN]: so,
1663
+ [$.EQUAL]: co
1664
1664
  }, je = (e) => {
1665
1665
  const n = e == null ? void 0 : e.value;
1666
1666
  if (typeof n == "string" && n.includes(" a ")) {
@@ -1679,7 +1679,7 @@ const Qr = C.div`
1679
1679
  return n;
1680
1680
  }
1681
1681
  return typeof n == "object" && n !== null && !Array.isArray(n) ? (uo[e == null ? void 0 : e.howToSetTheDecision] || ro)(n) : n || void 0;
1682
- }, po = C.div`
1682
+ }, po = w.div`
1683
1683
  display: flex;
1684
1684
  justify-content: ${({ $justifyContent: e }) => e};
1685
1685
  align-items: ${({ $alignItems: e }) => e};
@@ -1693,16 +1693,16 @@ const Qr = C.div`
1693
1693
  padding: ${({ $padding: e }) => e};
1694
1694
  background: ${({ $background: e, theme: n }) => {
1695
1695
  var t, r, o, i;
1696
- return e ? `${((r = (t = n == null ? void 0 : n.palette) == null ? void 0 : t.neutral) == null ? void 0 : r.N10) || S.palette.neutral.N10}` : `${((i = (o = n == null ? void 0 : n.palette) == null ? void 0 : o.neutral) == null ? void 0 : i.N0) || S.palette.neutral.N0}`;
1696
+ return e ? `${((r = (t = n == null ? void 0 : n.palette) == null ? void 0 : t.neutral) == null ? void 0 : r.N10) || D.palette.neutral.N10}` : `${((i = (o = n == null ? void 0 : n.palette) == null ? void 0 : o.neutral) == null ? void 0 : i.N0) || D.palette.neutral.N0}`;
1697
1697
  }};
1698
1698
  border: ${({ $border: e, theme: n }) => {
1699
1699
  var t, r;
1700
- return e ? `1px solid ${((r = (t = n == null ? void 0 : n.palette) == null ? void 0 : t.neutral) == null ? void 0 : r.N40) || S.palette.neutral.N40}` : "none";
1700
+ return e ? `1px solid ${((r = (t = n == null ? void 0 : n.palette) == null ? void 0 : t.neutral) == null ? void 0 : r.N40) || D.palette.neutral.N40}` : "none";
1701
1701
  }};
1702
1702
  border-radius: ${({ $borderRadius: e }) => e};
1703
1703
  box-sizing: ${({ $boxSizing: e }) => e};
1704
1704
  overflow-y: ${({ $scroll: e }) => e ? "scroll" : "none"};
1705
- `, re = _.forwardRef(
1705
+ `, re = U.forwardRef(
1706
1706
  (e, n) => {
1707
1707
  const {
1708
1708
  children: t,
@@ -1718,9 +1718,9 @@ const Qr = C.div`
1718
1718
  borderRadius: g,
1719
1719
  border: h,
1720
1720
  margin: f = "0px",
1721
- padding: T = "0px",
1721
+ padding: x = "0px",
1722
1722
  boxSizing: y,
1723
- scroll: x = !1
1723
+ scroll: T = !1
1724
1724
  } = e;
1725
1725
  return /* @__PURE__ */ a(
1726
1726
  po,
@@ -1737,27 +1737,27 @@ const Qr = C.div`
1737
1737
  $background: c,
1738
1738
  $border: h,
1739
1739
  $margin: f,
1740
- $padding: T,
1740
+ $padding: x,
1741
1741
  $borderRadius: g,
1742
1742
  $boxSizing: y,
1743
- $scroll: x,
1743
+ $scroll: T,
1744
1744
  children: t
1745
1745
  }
1746
1746
  );
1747
1747
  }
1748
1748
  );
1749
1749
  re.displayName = "BorderStack";
1750
- C.div`
1750
+ w.div`
1751
1751
  & > div {
1752
1752
  border-radius: 8px;
1753
1753
  border: 1px solid
1754
1754
  ${({ theme: e }) => {
1755
1755
  var n, t;
1756
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
1756
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
1757
1757
  }};
1758
1758
  }
1759
1759
  `;
1760
- C.div`
1760
+ w.div`
1761
1761
  width: 100%;
1762
1762
  height: 100%;
1763
1763
  overflow-y: auto;
@@ -1776,13 +1776,13 @@ C.div`
1776
1776
  border-radius: 8px;
1777
1777
  }
1778
1778
  `;
1779
- const go = C.div`
1779
+ const go = w.div`
1780
1780
  cursor: pointer;
1781
- `, ho = C.div`
1781
+ `, ho = w.div`
1782
1782
  & > div > div > div > p {
1783
1783
  text-wrap-mode: nowrap;
1784
1784
  }
1785
- `, fo = C.div`
1785
+ `, fo = w.div`
1786
1786
  & > div {
1787
1787
  justify-content: auto;
1788
1788
  gap: 8px;
@@ -1803,7 +1803,7 @@ const go = C.div`
1803
1803
  hasValidUntil: g,
1804
1804
  effectiveFromRenderer: h,
1805
1805
  validUntilRenderer: f,
1806
- onEdit: T,
1806
+ onEdit: x,
1807
1807
  onDelete: y
1808
1808
  } = e;
1809
1809
  return i ? /* @__PURE__ */ m(v, { direction: "column", gap: "16px", children: [
@@ -1843,8 +1843,8 @@ const go = C.div`
1843
1843
  icon: /* @__PURE__ */ a($t, {}),
1844
1844
  size: "24px",
1845
1845
  cursorHover: !0,
1846
- onClick: (x) => {
1847
- x.stopPropagation(), T == null || T();
1846
+ onClick: (T) => {
1847
+ T.stopPropagation(), x == null || x();
1848
1848
  }
1849
1849
  }
1850
1850
  ),
@@ -1855,8 +1855,8 @@ const go = C.div`
1855
1855
  icon: /* @__PURE__ */ a(an, {}),
1856
1856
  size: "24px",
1857
1857
  cursorHover: !0,
1858
- onClick: (x) => {
1859
- x.stopPropagation(), y == null || y();
1858
+ onClick: (T) => {
1859
+ T.stopPropagation(), y == null || y();
1860
1860
  }
1861
1861
  }
1862
1862
  )
@@ -1879,7 +1879,7 @@ const go = C.div`
1879
1879
  /* @__PURE__ */ a(j, { dashed: !0 }),
1880
1880
  /* @__PURE__ */ m(v, { direction: "column", gap: "12px", children: [
1881
1881
  /* @__PURE__ */ a(
1882
- k,
1882
+ A,
1883
1883
  {
1884
1884
  type: "label",
1885
1885
  size: "large",
@@ -1897,7 +1897,7 @@ const go = C.div`
1897
1897
  gap: "8px",
1898
1898
  justifyContent: t,
1899
1899
  children: [
1900
- d.map((x) => /* @__PURE__ */ a(
1900
+ d.map((T) => /* @__PURE__ */ a(
1901
1901
  re,
1902
1902
  {
1903
1903
  direction: "column",
@@ -1907,14 +1907,14 @@ const go = C.div`
1907
1907
  children: /* @__PURE__ */ a(
1908
1908
  Ke,
1909
1909
  {
1910
- element: { ...x, value: x.value },
1910
+ element: { ...T, value: T.value },
1911
1911
  valueData: je(
1912
- x
1912
+ T
1913
1913
  )
1914
1914
  }
1915
1915
  )
1916
1916
  },
1917
- x.conditionName
1917
+ T.conditionName
1918
1918
  )),
1919
1919
  c && h && /* @__PURE__ */ a(
1920
1920
  re,
@@ -2009,19 +2009,19 @@ const go = C.div`
2009
2009
  decisionDataType: n.decisionDataType || z.ALPHABETICAL,
2010
2010
  value: je(n),
2011
2011
  howToSetTheDecision: n.howToSetTheDecision || J.EQUAL
2012
- } : null, T = n ? tn(n) : {}, y = ct(T, (R) => !R.hidden), x = Object.values(y).flat(), w = Array.from({ length: 5 }), D = !!(!t && n && r && f), I = x.length < 2 ? "start" : "space-between", E = `N° ${String((o ?? 0) + 1).padStart(2, "0")}`;
2012
+ } : null, x = n ? tn(n) : {}, y = ct(x, (I) => !I.hidden), T = Object.values(y).flat(), C = Array.from({ length: 5 }), E = !!(!t && n && r && f), N = T.length < 2 ? "start" : "space-between", S = `N° ${String((o ?? 0) + 1).padStart(2, "0")}`;
2013
2013
  return /* @__PURE__ */ a(
2014
2014
  mo,
2015
2015
  {
2016
- conditionsAlignment: I,
2016
+ conditionsAlignment: N,
2017
2017
  controls: p,
2018
2018
  decision: n,
2019
2019
  decisionMapper: f,
2020
- loading: D,
2021
- skeleton: w,
2020
+ loading: E,
2021
+ skeleton: C,
2022
2022
  textValues: r,
2023
- visibleConditions: x,
2024
- tagLabel: E,
2023
+ visibleConditions: T,
2024
+ tagLabel: S,
2025
2025
  isOpen: i,
2026
2026
  onToggle: s,
2027
2027
  hasEffectiveFrom: u,
@@ -2042,12 +2042,12 @@ const go = C.div`
2042
2042
  transform: translateY(0);
2043
2043
  }
2044
2044
  `;
2045
- C.div`
2045
+ w.div`
2046
2046
  border-radius: 8px;
2047
2047
  border: 1px solid
2048
2048
  ${({ theme: e }) => {
2049
2049
  var n, t;
2050
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
2050
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
2051
2051
  }};
2052
2052
  box-sizing: border-box;
2053
2053
  display: flex;
@@ -2056,37 +2056,37 @@ C.div`
2056
2056
  height: 100%;
2057
2057
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
2058
2058
  `;
2059
- C.div`
2059
+ w.div`
2060
2060
  & > div {
2061
2061
  border-radius: 8px;
2062
2062
  border: 1px solid
2063
2063
  ${({ theme: e }) => {
2064
2064
  var n, t;
2065
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
2065
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
2066
2066
  }};
2067
2067
  }
2068
2068
  `;
2069
- const vo = C.div`
2069
+ const vo = w.div`
2070
2070
  & > div {
2071
2071
  box-shadow: 0px 2px 3px 0px
2072
2072
  ${({ theme: e }) => {
2073
2073
  var n, t;
2074
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutralAlpha) == null ? void 0 : t.N30A) || S.palette.neutralAlpha.N30A;
2074
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutralAlpha) == null ? void 0 : t.N30A) || D.palette.neutralAlpha.N30A;
2075
2075
  }};
2076
2076
  cursor: pointer;
2077
2077
  }
2078
- `, yo = C.div`
2078
+ `, yo = w.div`
2079
2079
  width: 100%;
2080
2080
  height: 100%;
2081
2081
  & > div {
2082
2082
  animation: ${bo} 600ms ease-out;
2083
2083
  }
2084
- `, xo = C.div`
2084
+ `, xo = w.div`
2085
2085
  & > div > div {
2086
2086
  border-radius: 8px;
2087
2087
  box-sizing: border-box;
2088
2088
  }
2089
- `, To = C.div`
2089
+ `, To = w.div`
2090
2090
  & > div {
2091
2091
  width: 100%;
2092
2092
  height: 100%;
@@ -2179,7 +2179,7 @@ const vo = C.div`
2179
2179
  alignItems: "center",
2180
2180
  padding: "16px",
2181
2181
  children: [
2182
- /* @__PURE__ */ a(k, { appearance: "gray", type: "label", size: "large", weight: "bold", children: n || "Agregar decisión" }),
2182
+ /* @__PURE__ */ a(A, { appearance: "gray", type: "label", size: "large", weight: "bold", children: n || "Agregar decisión" }),
2183
2183
  /* @__PURE__ */ a(
2184
2184
  P,
2185
2185
  {
@@ -2241,16 +2241,16 @@ const vo = C.div`
2241
2241
  })
2242
2242
  ), c = ((r == null ? void 0 : r.length) === 0 || r.length < Math.floor(window.innerWidth / 300)) && !o && n;
2243
2243
  return { renderedCards: u, shouldRenderAddCard: c };
2244
- }, No = C.div`
2244
+ }, No = w.div`
2245
2245
  position: relative;
2246
2246
  & > div {
2247
2247
  padding: 24px 16px;
2248
2248
  place-items: unset;
2249
2249
  }
2250
- `, ko = C.div`
2250
+ `, ko = w.div`
2251
2251
  background-color: ${({ theme: e }) => {
2252
2252
  var n, t;
2253
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || S.palette.neutral.N0;
2253
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || D.palette.neutral.N0;
2254
2254
  }};
2255
2255
  max-height: 90vh;
2256
2256
  width: 100%;
@@ -2292,7 +2292,7 @@ const vo = C.div`
2292
2292
  /* @__PURE__ */ m(v, { alignItems: "center", justifyContent: "space-between", children: [
2293
2293
  /* @__PURE__ */ m(v, { direction: "column", gap: "8px", children: [
2294
2294
  /* @__PURE__ */ a(
2295
- k,
2295
+ A,
2296
2296
  {
2297
2297
  type: "title",
2298
2298
  size: "medium",
@@ -2301,7 +2301,7 @@ const vo = C.div`
2301
2301
  children: i
2302
2302
  }
2303
2303
  ),
2304
- /* @__PURE__ */ a(k, { size: "medium", appearance: "gray", children: t })
2304
+ /* @__PURE__ */ a(A, { size: "medium", appearance: "gray", children: t })
2305
2305
  ] }),
2306
2306
  /* @__PURE__ */ a(ln, { size: "24px", cursor: "pointer", onClick: o })
2307
2307
  ] }),
@@ -2377,12 +2377,12 @@ const vo = C.div`
2377
2377
  value: e
2378
2378
  };
2379
2379
  }, Lo = {
2380
- [N.LIST_OF_VALUES]: Io,
2381
- [N.LIST_OF_VALUES_MULTI]: Ro,
2382
- [N.RANGE]: Fo,
2383
- [N.GREATER_THAN]: mn,
2384
- [N.LESS_THAN]: mn,
2385
- [N.EQUAL]: mn
2380
+ [$.LIST_OF_VALUES]: Io,
2381
+ [$.LIST_OF_VALUES_MULTI]: Ro,
2382
+ [$.RANGE]: Fo,
2383
+ [$.GREATER_THAN]: mn,
2384
+ [$.LESS_THAN]: mn,
2385
+ [$.EQUAL]: mn
2386
2386
  }, jn = (e) => Lo[e] || Ao;
2387
2387
  var de = /* @__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))(de || {});
2388
2388
  function Oo({
@@ -2415,25 +2415,25 @@ function Oo({
2415
2415
  conditionsThatEstablishesTheDecision: qe((u, { parent: c }) => {
2416
2416
  if ((c == null ? void 0 : c.toggleNone) && Object.keys(c.conditionsThatEstablishesTheDecision || {}).length > 0) return ee().shape({});
2417
2417
  const f = o().reduce(
2418
- (T, y) => {
2419
- var w;
2420
- if (((w = s.values.conditionsThatEstablishesTheDecision) == null ? void 0 : w[y.conditionName]) !== void 0) {
2421
- const D = jn(
2418
+ (x, y) => {
2419
+ var C;
2420
+ if (((C = s.values.conditionsThatEstablishesTheDecision) == null ? void 0 : C[y.conditionName]) !== void 0) {
2421
+ const E = jn(
2422
2422
  y.howToSetTheCondition
2423
2423
  );
2424
- T[y.conditionName] = D(
2424
+ x[y.conditionName] = E(
2425
2425
  y.value,
2426
2426
  y.conditionDataType
2427
2427
  ).schema;
2428
2428
  }
2429
- return T;
2429
+ return x;
2430
2430
  },
2431
2431
  {}
2432
2432
  );
2433
2433
  return ee(f).test(
2434
2434
  "at-least-one-condition",
2435
2435
  "Debe existir al menos una condición para que la decisión se valide correctamente.",
2436
- (T) => T ? Object.values(T).some(
2436
+ (x) => x ? Object.values(x).some(
2437
2437
  (y) => y != null && y !== ""
2438
2438
  ) : !1
2439
2439
  );
@@ -2447,8 +2447,8 @@ function Oo({
2447
2447
  "is-after-startDate",
2448
2448
  "La fecha válida para la vigencia hasta debe ser mayor o igual a la fecha de inicio",
2449
2449
  function(f) {
2450
- const T = this.parent.effectiveFrom;
2451
- return !T || !f ? !0 : new Date(f) >= new Date(T);
2450
+ const x = this.parent.effectiveFrom;
2451
+ return !x || !f ? !0 : new Date(f) >= new Date(x);
2452
2452
  }
2453
2453
  ) : c.notRequired()
2454
2454
  ));
@@ -2460,15 +2460,15 @@ function Oo({
2460
2460
  onSubmit: (u) => {
2461
2461
  const c = Object.fromEntries(
2462
2462
  Object.entries(r).map(([h, f]) => {
2463
- const y = f.filter((x) => {
2464
- var D;
2465
- const w = (D = u.conditionsThatEstablishesTheDecision) == null ? void 0 : D[x.conditionName];
2466
- return w != null && w !== "";
2467
- }).map((x) => {
2468
- var w;
2463
+ const y = f.filter((T) => {
2464
+ var E;
2465
+ const C = (E = u.conditionsThatEstablishesTheDecision) == null ? void 0 : E[T.conditionName];
2466
+ return C != null && C !== "";
2467
+ }).map((T) => {
2468
+ var C;
2469
2469
  return {
2470
- ...x,
2471
- value: (w = u.conditionsThatEstablishesTheDecision) == null ? void 0 : w[x.conditionName]
2470
+ ...T,
2471
+ value: (C = u.conditionsThatEstablishesTheDecision) == null ? void 0 : C[T.conditionName]
2472
2472
  };
2473
2473
  });
2474
2474
  return [h, y];
@@ -2502,17 +2502,17 @@ function Oo({
2502
2502
  });
2503
2503
  } };
2504
2504
  }
2505
- C.div`
2505
+ w.div`
2506
2506
  & > div {
2507
2507
  border-radius: 8px;
2508
2508
  border: 1px solid
2509
2509
  ${({ theme: e }) => {
2510
2510
  var n, t;
2511
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
2511
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
2512
2512
  }};
2513
2513
  }
2514
2514
  `;
2515
- C.div`
2515
+ w.div`
2516
2516
  width: 100%;
2517
2517
  height: 100%;
2518
2518
  overflow-y: auto;
@@ -2530,7 +2530,7 @@ C.div`
2530
2530
  border-radius: 8px;
2531
2531
  }
2532
2532
  `;
2533
- const Po = C.div`
2533
+ const Po = w.div`
2534
2534
  display: flex;
2535
2535
  width: -webkit-fill-available;
2536
2536
  & > div {
@@ -2554,21 +2554,21 @@ const Po = C.div`
2554
2554
  messageEnd: c = "",
2555
2555
  statusStart: g = "pending",
2556
2556
  statusEnd: h = "pending"
2557
- } = e, [f, T] = M(s), [y, x] = M(l), [w, D] = M(p), I = ({ target: $ }) => {
2558
- T($.checked), r && r($.checked);
2559
- }, E = ($) => {
2560
- x($.target.value), n($);
2561
- }, R = ($) => {
2562
- D($.target.value), t($);
2557
+ } = e, [f, x] = M(s), [y, T] = M(l), [C, E] = M(p), N = ({ target: k }) => {
2558
+ x(k.checked), r && r(k.checked);
2559
+ }, S = (k) => {
2560
+ T(k.target.value), n(k);
2561
+ }, I = (k) => {
2562
+ E(k.target.value), t(k);
2563
2563
  }, F = ne("(max-width: 400px)");
2564
2564
  return /* @__PURE__ */ m(v, { direction: "column", width: "100%", gap: "20px", children: [
2565
2565
  /* @__PURE__ */ m(v, { justifyContent: "space-between", children: [
2566
- /* @__PURE__ */ a(k, { appearance: "dark", size: "large", type: "label", children: "¿La vigencia para este decisión es cerrada?" }),
2566
+ /* @__PURE__ */ a(A, { appearance: "dark", size: "large", type: "label", children: "¿La vigencia para este decisión es cerrada?" }),
2567
2567
  /* @__PURE__ */ a(
2568
2568
  Nn,
2569
2569
  {
2570
2570
  label: "Cerrada",
2571
- onChange: I,
2571
+ onChange: N,
2572
2572
  checked: f,
2573
2573
  value: ""
2574
2574
  }
@@ -2586,7 +2586,7 @@ const Po = C.div`
2586
2586
  {
2587
2587
  id: "dateStart",
2588
2588
  label: o,
2589
- onChange: E,
2589
+ onChange: S,
2590
2590
  value: y,
2591
2591
  required: d,
2592
2592
  size: "compact",
@@ -2600,8 +2600,8 @@ const Po = C.div`
2600
2600
  {
2601
2601
  id: "dateEnd",
2602
2602
  label: i,
2603
- onChange: R,
2604
- value: w,
2603
+ onChange: I,
2604
+ value: C,
2605
2605
  required: d,
2606
2606
  size: "compact",
2607
2607
  status: h,
@@ -2629,10 +2629,10 @@ const Po = C.div`
2629
2629
  termStartStatus: g,
2630
2630
  textValues: h,
2631
2631
  portalId: f,
2632
- showRedefineConfirm: T,
2632
+ showRedefineConfirm: x,
2633
2633
  onOpenRedefineConfirm: y,
2634
- onCloseRedefineConfirm: x,
2635
- onConfirmRedefine: w
2634
+ onCloseRedefineConfirm: T,
2635
+ onConfirmRedefine: C
2636
2636
  } = e;
2637
2637
  return /* @__PURE__ */ m(O, { children: [
2638
2638
  /* @__PURE__ */ a("form", { onSubmit: o.handleSubmit, children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", width: "100%", children: [
@@ -2673,7 +2673,7 @@ const Po = C.div`
2673
2673
  }
2674
2674
  )
2675
2675
  ] }),
2676
- /* @__PURE__ */ a(v, { direction: "column", gap: "20px", children: r == null ? void 0 : r.map((D) => /* @__PURE__ */ m(
2676
+ /* @__PURE__ */ a(v, { direction: "column", gap: "20px", children: r == null ? void 0 : r.map((E) => /* @__PURE__ */ m(
2677
2677
  v,
2678
2678
  {
2679
2679
  gap: "16px",
@@ -2682,7 +2682,7 @@ const Po = C.div`
2682
2682
  /* @__PURE__ */ a(Po, { children: /* @__PURE__ */ a(
2683
2683
  zn,
2684
2684
  {
2685
- condition: D,
2685
+ condition: E,
2686
2686
  formik: o
2687
2687
  }
2688
2688
  ) }),
@@ -2692,14 +2692,14 @@ const Po = C.div`
2692
2692
  icon: /* @__PURE__ */ a(an, {}),
2693
2693
  appearance: "danger",
2694
2694
  cursorHover: !0,
2695
- onClick: () => d(D.conditionName)
2695
+ onClick: () => d(E.conditionName)
2696
2696
  }
2697
2697
  )
2698
2698
  ]
2699
2699
  },
2700
- D.conditionName
2700
+ E.conditionName
2701
2701
  )) }),
2702
- p && /* @__PURE__ */ a(k, { type: "label", size: "medium", appearance: "danger", children: t ?? "Existen errores en el formulario, por favor revísalos." })
2702
+ p && /* @__PURE__ */ a(A, { type: "label", size: "medium", appearance: "danger", children: t ?? "Existen errores en el formulario, por favor revísalos." })
2703
2703
  ] }) }),
2704
2704
  /* @__PURE__ */ a(Ue, { legend: "Vigencia", spacing: "wide", children: h.terms && /* @__PURE__ */ a(
2705
2705
  Mo,
@@ -2712,10 +2712,10 @@ const Po = C.div`
2712
2712
  messageEnd: o.errors.validUntil,
2713
2713
  statusStart: g,
2714
2714
  statusEnd: c,
2715
- onHandleStartChange: (D) => o.setFieldValue("effectiveFrom", D.target.value),
2716
- onHandleEndChange: (D) => o.setFieldValue("validUntil", D.target.value),
2717
- onCheckClosedChange: (D) => {
2718
- o.setFieldValue("checkClosed", D), D && o.setFieldValue("validUntil", "");
2715
+ onHandleStartChange: (E) => o.setFieldValue("effectiveFrom", E.target.value),
2716
+ onHandleEndChange: (E) => o.setFieldValue("validUntil", E.target.value),
2717
+ onCheckClosedChange: (E) => {
2718
+ o.setFieldValue("checkClosed", E), E && o.setFieldValue("validUntil", "");
2719
2719
  },
2720
2720
  checkedClosed: o.values.checkClosed
2721
2721
  }
@@ -2725,14 +2725,14 @@ const Po = C.div`
2725
2725
  /* @__PURE__ */ a(H, { type: "submit", children: h.confirm })
2726
2726
  ] })
2727
2727
  ] }) }),
2728
- T && f && /* @__PURE__ */ a(
2728
+ x && f && /* @__PURE__ */ a(
2729
2729
  lt,
2730
2730
  {
2731
2731
  portalId: f,
2732
2732
  title: "Redefinir la condición",
2733
- onCloseModal: x,
2733
+ onCloseModal: T,
2734
2734
  children: /* @__PURE__ */ m(v, { direction: "column", gap: "16px", children: [
2735
- /* @__PURE__ */ a(k, { type: "body", size: "large", appearance: "gray", children: "¿Estás seguro? Se perderá todo lo que tienes actualmente definido y deberás reescribir completamente la condición, de esta manera podrás usar las últimas variables condicionales que están definidas en la actualidad para esta decisión ." }),
2735
+ /* @__PURE__ */ a(A, { type: "body", size: "large", appearance: "gray", children: "¿Estás seguro? Se perderá todo lo que tienes actualmente definido y deberás reescribir completamente la condición, de esta manera podrás usar las últimas variables condicionales que están definidas en la actualidad para esta decisión ." }),
2736
2736
  /* @__PURE__ */ m(v, { justifyContent: "end", gap: "12px", children: [
2737
2737
  /* @__PURE__ */ a(
2738
2738
  H,
@@ -2740,12 +2740,12 @@ const Po = C.div`
2740
2740
  type: "button",
2741
2741
  appearance: "gray",
2742
2742
  variant: "outlined",
2743
- onClick: x,
2743
+ onClick: T,
2744
2744
  cursorHover: !0,
2745
2745
  children: "Cancelar"
2746
2746
  }
2747
2747
  ),
2748
- /* @__PURE__ */ a(H, { type: "button", onClick: w, cursorHover: !0, children: "Confirmar" })
2748
+ /* @__PURE__ */ a(H, { type: "button", onClick: C, cursorHover: !0, children: "Confirmar" })
2749
2749
  ] })
2750
2750
  ] })
2751
2751
  }
@@ -2790,14 +2790,14 @@ function Go(e) {
2790
2790
  }
2791
2791
  function Yo(e) {
2792
2792
  switch (e) {
2793
- case N.EQUAL:
2794
- case N.GREATER_THAN:
2795
- case N.LESS_THAN:
2793
+ case $.EQUAL:
2794
+ case $.GREATER_THAN:
2795
+ case $.LESS_THAN:
2796
2796
  return "sea";
2797
- case N.RANGE:
2797
+ case $.RANGE:
2798
2798
  return "esté entre";
2799
- case N.LIST_OF_VALUES:
2800
- case N.LIST_OF_VALUES_MULTI:
2799
+ case $.LIST_OF_VALUES:
2800
+ case $.LIST_OF_VALUES_MULTI:
2801
2801
  return "esté en";
2802
2802
  default:
2803
2803
  return "sea";
@@ -2831,31 +2831,31 @@ const Wo = (e) => {
2831
2831
  textValues: r
2832
2832
  }), c = tn(d ?? n), g = tn(n), h = ct(
2833
2833
  g,
2834
- (A) => !A.hidden
2835
- ), f = Object.keys(h), T = [
2836
- ...f.filter((A) => A === "group-primary"),
2837
- ...f.filter((A) => A !== "group-primary")
2834
+ (R) => !R.hidden
2835
+ ), f = Object.keys(h), x = [
2836
+ ...f.filter((R) => R === "group-primary"),
2837
+ ...f.filter((R) => R !== "group-primary")
2838
2838
  ], y = {};
2839
- let x = 1;
2840
- const w = T.map((A) => {
2841
- const U = A === "group-primary" ? "mainCondition" : `alternateCondition-${x++}`;
2842
- return y[U] = A, {
2843
- id: U,
2844
- label: A === "group-primary" ? qn(A, 0) : qn(A, Number(U.split("-").at(-1))),
2839
+ let T = 1;
2840
+ const C = x.map((R) => {
2841
+ const _ = R === "group-primary" ? "mainCondition" : `alternateCondition-${T++}`;
2842
+ return y[_] = R, {
2843
+ id: _,
2844
+ label: R === "group-primary" ? qn(R, 0) : qn(R, Number(_.split("-").at(-1))),
2845
2845
  isDisabled: !1
2846
2846
  };
2847
- }), [D, I] = _.useState(
2848
- ((ze = w[0]) == null ? void 0 : ze.id) ?? "mainCondition"
2849
- ), E = (A) => I(A), R = y[D] ?? "group-primary", F = _.useMemo(() => {
2850
- const A = [
2847
+ }), [E, N] = U.useState(
2848
+ ((ze = C[0]) == null ? void 0 : ze.id) ?? "mainCondition"
2849
+ ), S = (R) => N(R), I = y[E] ?? "group-primary", F = U.useMemo(() => {
2850
+ const R = [
2851
2851
  ...Object.keys(h).filter((Q) => Q === "group-primary"),
2852
2852
  ...Object.keys(h).filter((Q) => Q !== "group-primary")
2853
2853
  ];
2854
- let U = !1;
2855
- const X = A.map((Q) => {
2854
+ let _ = !1;
2855
+ const X = R.map((Q) => {
2856
2856
  const St = (h[Q] ?? []).map((Qe, Et) => {
2857
- const Pn = !U && Q === "group-primary" && Et === 0;
2858
- Pn && (U = !0);
2857
+ const Pn = !_ && Q === "group-primary" && Et === 0;
2858
+ Pn && (_ = !0);
2859
2859
  const Nt = Wo(Qe.howToSetTheCondition ?? Qe.valueUse), kt = Vo({
2860
2860
  label: Qe.labelName || "",
2861
2861
  howToSet: Nt,
@@ -2866,65 +2866,65 @@ const Wo = (e) => {
2866
2866
  return [Q, St];
2867
2867
  });
2868
2868
  return Object.fromEntries(X);
2869
- }, [h]), $ = F[R] ?? [], q = F["group-primary"] ?? [], ce = {
2869
+ }, [h]), k = F[I] ?? [], q = F["group-primary"] ?? [], ce = {
2870
2870
  decisionDataType: n.decisionDataType,
2871
2871
  howToSetTheCondition: n.howToSetTheDecision,
2872
2872
  labelName: n.labelName,
2873
2873
  listOfPossibleValues: n.listOfPossibleValues,
2874
2874
  ruleName: n.ruleName
2875
- }, Ce = l.submitCount > 0 || !!l.touched.effectiveFrom, De = l.submitCount > 0 || !!l.touched.validUntil, ve = Ce ? l.errors.effectiveFrom ? "invalid" : "valid" : void 0, se = De ? l.errors.validUntil ? "invalid" : "valid" : void 0, Se = _.useMemo(() => {
2876
- const A = l.errors.conditionsThatEstablishesTheDecision;
2877
- if (!A) return;
2878
- if (typeof A == "string") return A;
2879
- const U = (X) => {
2875
+ }, Ce = l.submitCount > 0 || !!l.touched.effectiveFrom, De = l.submitCount > 0 || !!l.touched.validUntil, ve = Ce ? l.errors.effectiveFrom ? "invalid" : "valid" : void 0, se = De ? l.errors.validUntil ? "invalid" : "valid" : void 0, Se = U.useMemo(() => {
2876
+ const R = l.errors.conditionsThatEstablishesTheDecision;
2877
+ if (!R) return;
2878
+ if (typeof R == "string") return R;
2879
+ const _ = (X) => {
2880
2880
  if (X) {
2881
2881
  if (typeof X == "string") return X;
2882
2882
  if (Array.isArray(X))
2883
2883
  for (const Q of X) {
2884
- const ge = U(Q);
2884
+ const ge = _(Q);
2885
2885
  if (ge) return ge;
2886
2886
  }
2887
2887
  else if (typeof X == "object")
2888
2888
  for (const Q of Object.values(X)) {
2889
- const ge = U(Q);
2889
+ const ge = _(Q);
2890
2890
  if (ge) return ge;
2891
2891
  }
2892
2892
  }
2893
2893
  };
2894
- return U(A);
2895
- }, [l.errors.conditionsThatEstablishesTheDecision]), Me = l.submitCount > 0 && !!Se, ue = (A) => A != null && A.isMulti || A != null && A.multiple || (A == null ? void 0 : A.valueUse) === "Among" ? [] : "", Ee = (A) => {
2896
- const X = Object.values(c).flat().find((ge) => ge.conditionName === A), Q = ue(X);
2894
+ return _(R);
2895
+ }, [l.errors.conditionsThatEstablishesTheDecision]), Me = l.submitCount > 0 && !!Se, ue = (R) => R != null && R.isMulti || R != null && R.multiple || (R == null ? void 0 : R.valueUse) === "Among" ? [] : "", Ee = (R) => {
2896
+ const X = Object.values(c).flat().find((ge) => ge.conditionName === R), Q = ue(X);
2897
2897
  l.setFieldValue(
2898
- `conditionsThatEstablishesTheDecision.${A}`,
2898
+ `conditionsThatEstablishesTheDecision.${R}`,
2899
2899
  Q
2900
2900
  ), l.setFieldTouched(
2901
- `conditionsThatEstablishesTheDecision.${A}`,
2901
+ `conditionsThatEstablishesTheDecision.${R}`,
2902
2902
  !1,
2903
2903
  !1
2904
2904
  );
2905
2905
  }, Ne = () => {
2906
- (c[R] ?? []).forEach((U) => {
2907
- const X = `conditionsThatEstablishesTheDecision.${U.conditionName}`;
2908
- l.setFieldValue(X, ue(U)), l.setFieldTouched(X, !1, !1);
2906
+ (c[I] ?? []).forEach((_) => {
2907
+ const X = `conditionsThatEstablishesTheDecision.${_.conditionName}`;
2908
+ l.setFieldValue(X, ue(_)), l.setFieldTouched(X, !1, !1);
2909
2909
  });
2910
- }, [ke, pe] = _.useState(!1);
2910
+ }, [ke, pe] = U.useState(!1);
2911
2911
  return /* @__PURE__ */ a(
2912
2912
  zo,
2913
2913
  {
2914
- activeTab: D,
2914
+ activeTab: E,
2915
2915
  conditionsErrorText: Se,
2916
- currentConditions: $,
2916
+ currentConditions: k,
2917
2917
  decision: n,
2918
2918
  formik: l,
2919
2919
  normalizedDecision: ce,
2920
2920
  onCancel: o,
2921
2921
  onRedefineCurrentTab: Ne,
2922
- onTabChange: E,
2923
- onClearCondition: (A) => {
2924
- Ee(A), i == null || i(A);
2922
+ onTabChange: S,
2923
+ onClearCondition: (R) => {
2924
+ Ee(R), i == null || i(R);
2925
2925
  },
2926
2926
  showConditionsError: Me,
2927
- tabs: w,
2927
+ tabs: C,
2928
2928
  termEndStatus: se,
2929
2929
  termStartStatus: ve,
2930
2930
  textValues: r,
@@ -2937,10 +2937,10 @@ const Wo = (e) => {
2937
2937
  onCloseRedefineConfirm: () => pe(!1),
2938
2938
  onConfirmRedefine: () => {
2939
2939
  Ne();
2940
- const A = (c[R] ?? []).map(
2941
- (U) => U.conditionName
2940
+ const R = (c[I] ?? []).map(
2941
+ (_) => _.conditionName
2942
2942
  );
2943
- s == null || s(A), pe(!1);
2943
+ s == null || s(R), pe(!1);
2944
2944
  }
2945
2945
  }
2946
2946
  );
@@ -2960,10 +2960,10 @@ const Wo = (e) => {
2960
2960
  handleSubmitForm: g,
2961
2961
  handleDelete: h,
2962
2962
  terms: f = !0,
2963
- onRemoveCondition: T,
2963
+ onRemoveCondition: x,
2964
2964
  onRestoreConditions: y,
2965
- baseDecisionTemplate: x
2966
- } = e, [w, D] = M(null), I = ne("(max-width: 681px)"), { renderedCards: E, shouldRenderAddCard: R } = Eo({
2965
+ baseDecisionTemplate: T
2966
+ } = e, [C, E] = M(null), N = ne("(max-width: 681px)"), { renderedCards: S, shouldRenderAddCard: I } = Eo({
2967
2967
  controls: n,
2968
2968
  customTitleContentAddCard: t,
2969
2969
  decisions: o,
@@ -2971,8 +2971,8 @@ const Wo = (e) => {
2971
2971
  handleOpenModal: u,
2972
2972
  handleDelete: h,
2973
2973
  textValues: i,
2974
- isOpenFor: ($) => w === $,
2975
- toggleAt: ($) => D((q) => q === $ ? null : $)
2974
+ isOpenFor: (k) => C === k,
2975
+ toggleAt: (k) => E((q) => q === k ? null : k)
2976
2976
  }), F = (o == null ? void 0 : o.length) === 0 && !p;
2977
2977
  return /* @__PURE__ */ m(O, { children: [
2978
2978
  /* @__PURE__ */ a(xo, { children: /* @__PURE__ */ a(To, { children: /* @__PURE__ */ a(v, { direction: "column", gap: "16px", padding: "6px", children: F ? /* @__PURE__ */ a(Ue, { legend: "Decisiones", children: /* @__PURE__ */ m(
@@ -2993,7 +2993,7 @@ const Wo = (e) => {
2993
2993
  }
2994
2994
  ),
2995
2995
  /* @__PURE__ */ a(
2996
- k,
2996
+ A,
2997
2997
  {
2998
2998
  type: "title",
2999
2999
  size: "medium",
@@ -3002,7 +3002,7 @@ const Wo = (e) => {
3002
3002
  children: "Sin decisiones"
3003
3003
  }
3004
3004
  ),
3005
- /* @__PURE__ */ a(k, { as: "span", size: "medium", appearance: "gray", children: r || /* @__PURE__ */ m(O, { children: [
3005
+ /* @__PURE__ */ a(A, { as: "span", size: "medium", appearance: "gray", children: r || /* @__PURE__ */ m(O, { children: [
3006
3006
  "Aun no tienes decisiones definidas, para empezar haz clic en",
3007
3007
  t || ' "Agregar decisión"'
3008
3008
  ] }) })
@@ -3019,10 +3019,10 @@ const Wo = (e) => {
3019
3019
  autoRows: "auto",
3020
3020
  justifyItems: "center",
3021
3021
  padding: "6px",
3022
- height: I ? "auto" : "484px",
3022
+ height: N ? "auto" : "484px",
3023
3023
  children: [
3024
- E,
3025
- R && Cn({
3024
+ S,
3025
+ I && Cn({
3026
3026
  type: "add",
3027
3027
  index: o == null ? void 0 : o.length,
3028
3028
  controls: n,
@@ -3049,12 +3049,12 @@ const Wo = (e) => {
3049
3049
  Xo,
3050
3050
  {
3051
3051
  decision: l || s,
3052
- fullTemplate: x ?? s,
3052
+ fullTemplate: T ?? s,
3053
3053
  onSubmitEvent: g,
3054
3054
  textValues: i,
3055
3055
  onCancel: () => c ? c() : () => {
3056
3056
  },
3057
- onRemoveCondition: T,
3057
+ onRemoveCondition: x,
3058
3058
  onRestoreConditions: y
3059
3059
  }
3060
3060
  )
@@ -3063,9 +3063,9 @@ const Wo = (e) => {
3063
3063
  ] });
3064
3064
  }, Qo = {
3065
3065
  border: {
3066
- color: S.palette.neutral.N40
3066
+ color: D.palette.neutral.N40
3067
3067
  }
3068
- }, Ko = C.div`
3068
+ }, Ko = w.div`
3069
3069
  border-width: 1px;
3070
3070
  border-style: solid;
3071
3071
  border-color: ${({ theme: e }) => {
@@ -3105,66 +3105,66 @@ const Jo = (e, n) => {
3105
3105
  return Te(() => {
3106
3106
  if (!e.current || !l.current) return;
3107
3107
  const p = e.current, u = l.current, c = () => {
3108
- var D;
3108
+ var E;
3109
3109
  const h = p.clientWidth, f = Array.from(
3110
3110
  u.querySelectorAll('[data-filter-tag="true"]')
3111
- ), T = 48;
3111
+ ), x = 48;
3112
3112
  let y = 0;
3113
- const x = [], w = [];
3114
- for (let I = 0; I < n.length; I++) {
3115
- const E = ((D = f[I]) == null ? void 0 : D.offsetWidth) ?? 0;
3116
- y + E + T <= h ? (x.push(n[I]), y += E) : w.push(n[I]);
3113
+ const T = [], C = [];
3114
+ for (let N = 0; N < n.length; N++) {
3115
+ const S = ((E = f[N]) == null ? void 0 : E.offsetWidth) ?? 0;
3116
+ y + S + x <= h ? (T.push(n[N]), y += S) : C.push(n[N]);
3117
3117
  }
3118
- r(x), i(w), d(w.length > 0);
3118
+ r(T), i(C), d(C.length > 0);
3119
3119
  }, g = new ResizeObserver(() => {
3120
3120
  requestAnimationFrame(c);
3121
3121
  });
3122
3122
  return g.observe(p), () => g.disconnect();
3123
3123
  }, [n, e]), { visible: t, hidden: o, showOverflowIndicator: s, measurementRef: l };
3124
3124
  };
3125
- C.div`
3125
+ w.div`
3126
3126
  & > div {
3127
3127
  width: 100%;
3128
3128
  }
3129
3129
  `;
3130
- const ea = C.div`
3130
+ const ea = w.div`
3131
3131
  position: absolute;
3132
3132
  top: calc(100% + 4px);
3133
3133
  right: 0;
3134
3134
  z-index: 1000;
3135
3135
  width: 170px;
3136
- `, na = C.div`
3136
+ `, na = w.div`
3137
3137
  position: absolute;
3138
3138
  visibility: hidden;
3139
3139
  pointer-events: none;
3140
3140
  height: 0;
3141
3141
  overflow: hidden;
3142
- `, ta = C.div`
3142
+ `, ta = w.div`
3143
3143
  cursor: pointer;
3144
3144
  `, Dn = {
3145
3145
  border: {
3146
3146
  color: {
3147
- regular: S.palette.neutral.N40,
3148
- disabled: S.palette.neutral.N40,
3149
- focus: S.palette.blue.B300,
3150
- invalid: S.palette.red.R400
3147
+ regular: D.palette.neutral.N40,
3148
+ disabled: D.palette.neutral.N40,
3149
+ focus: D.palette.blue.B300,
3150
+ invalid: D.palette.red.R400
3151
3151
  }
3152
3152
  },
3153
3153
  background: {
3154
3154
  color: {
3155
- regular: S.palette.neutral.N0,
3156
- disabled: S.palette.neutral.N10
3155
+ regular: D.palette.neutral.N0,
3156
+ disabled: D.palette.neutral.N10
3157
3157
  }
3158
3158
  },
3159
3159
  content: {
3160
3160
  color: {
3161
- regular: S.palette.neutral.N900,
3162
- disabled: S.palette.neutral.N70
3161
+ regular: D.palette.neutral.N900,
3162
+ disabled: D.palette.neutral.N70
3163
3163
  }
3164
3164
  },
3165
3165
  placeholder: {
3166
3166
  color: {
3167
- regular: S.palette.neutral.N300
3167
+ regular: D.palette.neutral.N300
3168
3168
  }
3169
3169
  },
3170
3170
  option: {
@@ -3173,11 +3173,11 @@ const ea = C.div`
3173
3173
  hover: "primary"
3174
3174
  },
3175
3175
  background: {
3176
- regular: S.palette.neutral.N0,
3177
- hover: S.palette.neutral.N30
3176
+ regular: D.palette.neutral.N0,
3177
+ hover: D.palette.neutral.N30
3178
3178
  }
3179
3179
  }
3180
- }, ra = C.li`
3180
+ }, ra = w.li`
3181
3181
  display: flex;
3182
3182
  align-items: center;
3183
3183
  align-self: stretch;
@@ -3196,16 +3196,16 @@ const ea = C.div`
3196
3196
  }};
3197
3197
  }
3198
3198
  `, oa = (e) => {
3199
- var g, h, f, T, y, x;
3200
- const { id: n, label: t, leadingIcon: r, onClose: o } = e, [i, s] = M(!1), d = () => s(!0), l = () => s(!1), p = In($n), u = ((f = (h = (g = p == null ? void 0 : p.input) == null ? void 0 : g.option) == null ? void 0 : h.appearance) == null ? void 0 : f.hover) ?? Dn.option.appearance.hover, c = ((x = (y = (T = p == null ? void 0 : p.input) == null ? void 0 : T.option) == null ? void 0 : y.appearance) == null ? void 0 : x.regular) ?? Dn.option.appearance.regular;
3199
+ var g, h, f, x, y, T;
3200
+ const { id: n, label: t, leadingIcon: r, onClose: o } = e, [i, s] = M(!1), d = () => s(!0), l = () => s(!1), p = In($n), u = ((f = (h = (g = p == null ? void 0 : p.input) == null ? void 0 : g.option) == null ? void 0 : h.appearance) == null ? void 0 : f.hover) ?? Dn.option.appearance.hover, c = ((T = (y = (x = p == null ? void 0 : p.input) == null ? void 0 : x.option) == null ? void 0 : y.appearance) == null ? void 0 : T.regular) ?? Dn.option.appearance.regular;
3201
3201
  return /* @__PURE__ */ a(
3202
3202
  ra,
3203
3203
  {
3204
3204
  id: n,
3205
3205
  onMouseEnter: d,
3206
3206
  onMouseLeave: l,
3207
- onClick: (w) => {
3208
- w.stopPropagation();
3207
+ onClick: (C) => {
3208
+ C.stopPropagation();
3209
3209
  },
3210
3210
  children: /* @__PURE__ */ m(
3211
3211
  Ye,
@@ -3224,7 +3224,7 @@ const ea = C.div`
3224
3224
  }
3225
3225
  ),
3226
3226
  /* @__PURE__ */ a(
3227
- k,
3227
+ A,
3228
3228
  {
3229
3229
  textAlign: "start",
3230
3230
  size: "medium",
@@ -3237,8 +3237,8 @@ const ea = C.div`
3237
3237
  {
3238
3238
  icon: /* @__PURE__ */ a(Lt, {}),
3239
3239
  size: "small",
3240
- onClick: (w) => {
3241
- w.stopPropagation(), o == null || o();
3240
+ onClick: (C) => {
3241
+ C.stopPropagation(), o == null || o();
3242
3242
  },
3243
3243
  appearance: i ? u : c,
3244
3244
  cursorHover: !0
@@ -3262,38 +3262,38 @@ const ea = C.div`
3262
3262
  hidden: c,
3263
3263
  showOverflowIndicator: g,
3264
3264
  measurementRef: h
3265
- } = Jo(d, n), [f, T] = M(!1), y = (E) => {
3266
- E.stopPropagation(), T((R) => !R);
3265
+ } = Jo(d, n), [f, x] = M(!1), y = (S) => {
3266
+ S.stopPropagation(), x((I) => !I);
3267
3267
  };
3268
3268
  Te(() => {
3269
- const E = (R) => {
3269
+ const S = (I) => {
3270
3270
  var q, ce;
3271
- const F = R.target;
3272
- !((q = l.current) != null && q.contains(F)) && !((ce = p.current) != null && ce.contains(F)) && T(!1);
3271
+ const F = I.target;
3272
+ !((q = l.current) != null && q.contains(F)) && !((ce = p.current) != null && ce.contains(F)) && x(!1);
3273
3273
  };
3274
- return f && window.addEventListener("mousedown", E), () => window.removeEventListener("mousedown", E);
3274
+ return f && window.addEventListener("mousedown", S), () => window.removeEventListener("mousedown", S);
3275
3275
  }, [f]);
3276
- const x = n.length === 0, w = f && c.length > 0, D = c.map((E) => ({
3277
- id: E.label,
3278
- value: E.label,
3279
- label: E.label,
3280
- icon: E.icon
3281
- })), I = (E) => {
3282
- var R, F;
3283
- (F = (R = c.find(($) => $.label === E)) == null ? void 0 : R.onClose) == null || F.call(R), T(!1);
3276
+ const T = n.length === 0, C = f && c.length > 0, E = c.map((S) => ({
3277
+ id: S.label,
3278
+ value: S.label,
3279
+ label: S.label,
3280
+ icon: S.icon
3281
+ })), N = (S) => {
3282
+ var I, F;
3283
+ (F = (I = c.find((k) => k.label === S)) == null ? void 0 : I.onClose) == null || F.call(I), x(!1);
3284
3284
  };
3285
3285
  return /* @__PURE__ */ m(Zo, { borderRadius: "8px", width: "100%", children: [
3286
- /* @__PURE__ */ a(na, { ref: h, children: n.map((E) => /* @__PURE__ */ a("div", { "data-filter-tag": "true", children: /* @__PURE__ */ a(
3286
+ /* @__PURE__ */ a(na, { ref: h, children: n.map((S) => /* @__PURE__ */ a("div", { "data-filter-tag": "true", children: /* @__PURE__ */ a(
3287
3287
  ye,
3288
3288
  {
3289
3289
  appearance: "primary",
3290
3290
  displayIcon: !0,
3291
3291
  removable: !0,
3292
- icon: E.icon,
3293
- label: E.label,
3294
- onClose: E.onClose
3292
+ icon: S.icon,
3293
+ label: S.label,
3294
+ onClose: S.onClose
3295
3295
  }
3296
- ) }, E.label)) }),
3296
+ ) }, S.label)) }),
3297
3297
  /* @__PURE__ */ m(Ye, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
3298
3298
  /* @__PURE__ */ a(
3299
3299
  re,
@@ -3307,19 +3307,19 @@ const ea = C.div`
3307
3307
  alignItems: "center",
3308
3308
  padding: "0px 8px",
3309
3309
  border: !0,
3310
- children: x ? /* @__PURE__ */ a(k, { size: "small", type: "label", appearance: "gray", children: o }) : /* @__PURE__ */ m(O, { children: [
3311
- u.map((E) => /* @__PURE__ */ a(
3310
+ children: T ? /* @__PURE__ */ a(A, { size: "small", type: "label", appearance: "gray", children: o }) : /* @__PURE__ */ m(O, { children: [
3311
+ u.map((S) => /* @__PURE__ */ a(
3312
3312
  ye,
3313
3313
  {
3314
3314
  "data-filter-tag": "true",
3315
3315
  appearance: "primary",
3316
3316
  displayIcon: !0,
3317
3317
  removable: !0,
3318
- icon: E.icon,
3319
- label: E.label,
3320
- onClose: E.onClose
3318
+ icon: S.icon,
3319
+ label: S.label,
3320
+ onClose: S.onClose
3321
3321
  },
3322
- E.label
3322
+ S.label
3323
3323
  )),
3324
3324
  g && /* @__PURE__ */ m(
3325
3325
  "div",
@@ -3334,23 +3334,23 @@ const ea = C.div`
3334
3334
  label: `+${c.length}`
3335
3335
  }
3336
3336
  ) }),
3337
- w && /* @__PURE__ */ a(ea, { ref: l, children: /* @__PURE__ */ a(
3337
+ C && /* @__PURE__ */ a(ea, { ref: l, children: /* @__PURE__ */ a(
3338
3338
  jt,
3339
3339
  {
3340
- options: D,
3341
- onOptionClick: I,
3342
- children: c.map((E) => /* @__PURE__ */ a(
3340
+ options: E,
3341
+ onOptionClick: N,
3342
+ children: c.map((S) => /* @__PURE__ */ a(
3343
3343
  oa,
3344
3344
  {
3345
- id: E.label,
3346
- label: E.label,
3347
- leadingIcon: E.icon,
3345
+ id: S.label,
3346
+ label: S.label,
3347
+ leadingIcon: S.icon,
3348
3348
  onClose: () => {
3349
- var R;
3350
- (R = E.onClose) == null || R.call(E), T(!1);
3349
+ var I;
3350
+ (I = S.onClose) == null || I.call(S), x(!1);
3351
3351
  }
3352
3352
  },
3353
- E.label
3353
+ S.label
3354
3354
  ))
3355
3355
  }
3356
3356
  ) })
@@ -3364,7 +3364,7 @@ const ea = C.div`
3364
3364
  H,
3365
3365
  {
3366
3366
  cursorHover: !0,
3367
- disabled: x,
3367
+ disabled: T,
3368
3368
  iconBefore: /* @__PURE__ */ a(rt, {}),
3369
3369
  onClick: t,
3370
3370
  variant: "outlined",
@@ -3383,12 +3383,12 @@ const ea = C.div`
3383
3383
  )
3384
3384
  ] })
3385
3385
  ] });
3386
- }, aa = C.div`
3386
+ }, aa = w.div`
3387
3387
  display: flex;
3388
3388
  flex-direction: column;
3389
3389
  background-color: ${({ theme: e }) => {
3390
3390
  var n, t;
3391
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || S.palette.neutral.N0;
3391
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || D.palette.neutral.N0;
3392
3392
  }};
3393
3393
  width: ${({ $smallScreen: e }) => e ? "auto" : "450px"};
3394
3394
  height: auto;
@@ -3415,9 +3415,9 @@ const ea = C.div`
3415
3415
  /* @__PURE__ */ a(sn, { children: /* @__PURE__ */ m(aa, { $smallScreen: p, children: [
3416
3416
  /* @__PURE__ */ m(v, { direction: "column", gap: "16px", children: [
3417
3417
  /* @__PURE__ */ m(v, { alignContent: "center", justifyContent: "space-between", children: [
3418
- /* @__PURE__ */ a(k, { appearance: "dark", size: "small", type: "headline", children: l }),
3418
+ /* @__PURE__ */ a(A, { appearance: "dark", size: "small", type: "headline", children: l }),
3419
3419
  /* @__PURE__ */ m(v, { alignItems: "center", children: [
3420
- /* @__PURE__ */ a(k, { children: "Cerrar" }),
3420
+ /* @__PURE__ */ a(A, { children: "Cerrar" }),
3421
3421
  /* @__PURE__ */ a(
3422
3422
  P,
3423
3423
  {
@@ -3477,7 +3477,7 @@ const ea = C.div`
3477
3477
  border: !0,
3478
3478
  width: "100%",
3479
3479
  height: "36px",
3480
- children: s ? /* @__PURE__ */ a(k, { size: "small", type: "label", appearance: "gray", children: o }) : n == null ? void 0 : n.map((d) => /* @__PURE__ */ a(
3480
+ children: s ? /* @__PURE__ */ a(A, { size: "small", type: "label", appearance: "gray", children: o }) : n == null ? void 0 : n.map((d) => /* @__PURE__ */ a(
3481
3481
  ye,
3482
3482
  {
3483
3483
  appearance: "primary",
@@ -3631,12 +3631,12 @@ const ea = C.div`
3631
3631
  schema: oe().required("Requerido"),
3632
3632
  value: e
3633
3633
  }, ua = {
3634
- [N.LIST_OF_VALUES]: sa,
3635
- [N.LIST_OF_VALUES_MULTI]: da,
3636
- [N.RANGE]: ca,
3637
- [N.GREATER_THAN]: bn,
3638
- [N.LESS_THAN]: bn,
3639
- [N.EQUAL]: bn
3634
+ [$.LIST_OF_VALUES]: sa,
3635
+ [$.LIST_OF_VALUES_MULTI]: da,
3636
+ [$.RANGE]: ca,
3637
+ [$.GREATER_THAN]: bn,
3638
+ [$.LESS_THAN]: bn,
3639
+ [$.EQUAL]: bn
3640
3640
  }, Bn = (e) => ua[e] || la;
3641
3641
  function pa({
3642
3642
  decision: e,
@@ -3769,7 +3769,7 @@ function pa({
3769
3769
  void 0
3770
3770
  );
3771
3771
  else {
3772
- const c = u.howToSetTheCondition === N.LIST_OF_VALUES_MULTI ? [] : "";
3772
+ const c = u.howToSetTheCondition === $.LIST_OF_VALUES_MULTI ? [] : "";
3773
3773
  o.setFieldValue(
3774
3774
  `conditionsThatEstablishesTheDecision.${u.conditionName}`,
3775
3775
  c
@@ -3778,16 +3778,16 @@ function pa({
3778
3778
  });
3779
3779
  } };
3780
3780
  }
3781
- const ga = C.div`
3781
+ const ga = w.div`
3782
3782
  & > div {
3783
3783
  border-radius: 8px;
3784
3784
  border: 1px solid
3785
3785
  ${({ theme: e }) => {
3786
3786
  var n, t;
3787
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
3787
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || D.palette.neutral.N30;
3788
3788
  }};
3789
3789
  }
3790
- `, ha = C.div`
3790
+ `, ha = w.div`
3791
3791
  width: 100%;
3792
3792
  height: 100%;
3793
3793
  overflow-y: auto;
@@ -3828,7 +3828,7 @@ const ga = C.div`
3828
3828
  onChange: u,
3829
3829
  size: "small",
3830
3830
  value: d,
3831
- children: /* @__PURE__ */ a(k, { size: "medium", type: "label", weight: "bold", children: i })
3831
+ children: /* @__PURE__ */ a(A, { size: "medium", type: "label", weight: "bold", children: i })
3832
3832
  }
3833
3833
  ) }),
3834
3834
  l && /* @__PURE__ */ a(O, { children: t })
@@ -3848,17 +3848,17 @@ const ga = C.div`
3848
3848
  messageEnd: c = "",
3849
3849
  statusStart: g = "pending",
3850
3850
  statusEnd: h = "pending"
3851
- } = e, [f, T] = M(s), [y, x] = M(l), [w, D] = M(p), I = ({ target: $ }) => {
3852
- T($.checked), r && r($.checked);
3853
- }, E = ($) => {
3854
- x($.target.value), n($);
3855
- }, R = ($) => {
3856
- D($.target.value), t($);
3851
+ } = e, [f, x] = M(s), [y, T] = M(l), [C, E] = M(p), N = ({ target: k }) => {
3852
+ x(k.checked), r && r(k.checked);
3853
+ }, S = (k) => {
3854
+ T(k.target.value), n(k);
3855
+ }, I = (k) => {
3856
+ E(k.target.value), t(k);
3857
3857
  }, F = ne("(max-width: 400px)");
3858
3858
  return /* @__PURE__ */ m(O, { children: [
3859
3859
  /* @__PURE__ */ m(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
3860
3860
  /* @__PURE__ */ a(
3861
- k,
3861
+ A,
3862
3862
  {
3863
3863
  appearance: "gray",
3864
3864
  margin: "10px 0",
@@ -3879,7 +3879,7 @@ const ga = C.div`
3879
3879
  Nn,
3880
3880
  {
3881
3881
  label: "Cerrada",
3882
- onChange: I,
3882
+ onChange: N,
3883
3883
  checked: f,
3884
3884
  value: ""
3885
3885
  }
@@ -3899,7 +3899,7 @@ const ga = C.div`
3899
3899
  {
3900
3900
  id: "dateStart",
3901
3901
  label: o,
3902
- onChange: E,
3902
+ onChange: S,
3903
3903
  value: y,
3904
3904
  required: d,
3905
3905
  size: "compact",
@@ -3912,8 +3912,8 @@ const ga = C.div`
3912
3912
  {
3913
3913
  id: "dateEnd",
3914
3914
  label: i,
3915
- onChange: R,
3916
- value: w,
3915
+ onChange: I,
3916
+ value: C,
3917
3917
  required: d,
3918
3918
  size: "compact",
3919
3919
  status: h,
@@ -3959,7 +3959,7 @@ const ga = C.div`
3959
3959
  alignItems: "center",
3960
3960
  gap: "64px",
3961
3961
  children: [
3962
- /* @__PURE__ */ a(k, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
3962
+ /* @__PURE__ */ a(A, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
3963
3963
  /* @__PURE__ */ a(
3964
3964
  dn,
3965
3965
  {
@@ -3967,7 +3967,7 @@ const ga = C.div`
3967
3967
  onChange: () => s(!n.values.toggleNone),
3968
3968
  checked: n.values.toggleNone,
3969
3969
  size: "small",
3970
- children: /* @__PURE__ */ a(k, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
3970
+ children: /* @__PURE__ */ a(A, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
3971
3971
  }
3972
3972
  )
3973
3973
  ]
@@ -3982,7 +3982,7 @@ const ga = C.div`
3982
3982
  checked: !n.values.toggleNone && n.values.conditionsThatEstablishesTheDecision[c.conditionName] !== void 0,
3983
3983
  handleToggleChange: (g) => d(
3984
3984
  c.conditionName,
3985
- c.howToSetTheCondition === N.LIST_OF_VALUES_MULTI
3985
+ c.howToSetTheCondition === $.LIST_OF_VALUES_MULTI
3986
3986
  )(g.target.checked),
3987
3987
  children: nn({ condition: c, formik: n })
3988
3988
  },
@@ -4014,7 +4014,7 @@ const ga = C.div`
4014
4014
  )
4015
4015
  ] }),
4016
4016
  /* @__PURE__ */ a(j, {}),
4017
- l && /* @__PURE__ */ a(k, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
4017
+ l && /* @__PURE__ */ a(A, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
4018
4018
  /* @__PURE__ */ m(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
4019
4019
  /* @__PURE__ */ a(H, { appearance: "gray", onClick: r, children: t.cancel }),
4020
4020
  /* @__PURE__ */ a(H, { type: "submit", children: t.confirm })
@@ -4045,7 +4045,7 @@ const ga = C.div`
4045
4045
  visibleConditions: l,
4046
4046
  normalizedDecision: d,
4047
4047
  handleToggleNoneChange: s,
4048
- handleConditionToggleChange: (f, T) => (y) => {
4048
+ handleConditionToggleChange: (f, x) => (y) => {
4049
4049
  if (!y)
4050
4050
  i.setFieldValue(
4051
4051
  `conditionsThatEstablishesTheDecision.${f}`,
@@ -4056,10 +4056,10 @@ const ga = C.div`
4056
4056
  !1
4057
4057
  );
4058
4058
  else {
4059
- const x = T ? [] : "";
4059
+ const T = x ? [] : "";
4060
4060
  i.setFieldValue(
4061
4061
  `conditionsThatEstablishesTheDecision.${f}`,
4062
- x
4062
+ T
4063
4063
  );
4064
4064
  }
4065
4065
  },
@@ -4106,21 +4106,21 @@ const ga = C.div`
4106
4106
  }, he = {
4107
4107
  item: {
4108
4108
  background: {
4109
- active: S.palette.blue.B50,
4110
- inactive: S.palette.neutral.N0,
4111
- hover: S.palette.neutral.N20,
4112
- disabled: S.palette.neutral.N20
4109
+ active: D.palette.blue.B50,
4110
+ inactive: D.palette.neutral.N0,
4111
+ hover: D.palette.neutral.N20,
4112
+ disabled: D.palette.neutral.N20
4113
4113
  }
4114
4114
  },
4115
4115
  border: {
4116
4116
  expanded: {
4117
- color: S.palette.blue.B400
4117
+ color: D.palette.blue.B400
4118
4118
  },
4119
4119
  contracted: {
4120
- color: S.palette.neutral.N0
4120
+ color: D.palette.neutral.N0
4121
4121
  }
4122
4122
  }
4123
- }, ya = C.div`
4123
+ }, ya = w.div`
4124
4124
  & > div {
4125
4125
  border: 1px solid
4126
4126
  ${({ theme: e, $active: n }) => {
@@ -4136,27 +4136,27 @@ const ga = C.div`
4136
4136
  return ((o = (r = (t = e == null ? void 0 : e.menu) == null ? void 0 : t.item) == null ? void 0 : r.background) == null ? void 0 : o.hover) || he.item.background.hover;
4137
4137
  }};
4138
4138
  }
4139
- `, Gn = C.div`
4139
+ `, Gn = w.div`
4140
4140
  display: flex;
4141
4141
  align-items: center;
4142
4142
  gap: 12px;
4143
4143
  width: 100%;
4144
4144
  outline: none;
4145
4145
  cursor: pointer;
4146
- `, xa = C.div`
4146
+ `, xa = w.div`
4147
4147
  display: flex;
4148
4148
  align-items: center;
4149
4149
  outline: none;
4150
4150
  cursor: pointer;
4151
- `, Ta = C(it)`
4151
+ `, Ta = w(it)`
4152
4152
  display: flex;
4153
4153
  align-items: center;
4154
4154
  text-decoration: none;
4155
- `, wa = C(it)`
4155
+ `, wa = w(it)`
4156
4156
  display: block;
4157
4157
  text-decoration: none;
4158
4158
  color: inherit;
4159
- `, Ca = C.div`
4159
+ `, Ca = w.div`
4160
4160
  & > div {
4161
4161
  border-bottom: 1px solid
4162
4162
  ${({ theme: e, $active: n }) => {
@@ -4165,7 +4165,7 @@ const ga = C.div`
4165
4165
  }};
4166
4166
  border-radius: 8px 8px 0 0;
4167
4167
  }
4168
- `, pt = C.div`
4168
+ `, pt = w.div`
4169
4169
  display: block;
4170
4170
  text-decoration: none;
4171
4171
  background-color: ${({ theme: e, $active: n }) => {
@@ -4183,7 +4183,7 @@ const ga = C.div`
4183
4183
  return ((i = (o = (r = n == null ? void 0 : n.menu) == null ? void 0 : r.item) == null ? void 0 : o.background) == null ? void 0 : i.hover) || he.item.background.hover;
4184
4184
  }};
4185
4185
  }
4186
- `, Da = C.div`
4186
+ `, Da = w.div`
4187
4187
  display: flex;
4188
4188
  flex-direction: column;
4189
4189
 
@@ -4197,7 +4197,7 @@ const ga = C.div`
4197
4197
  f.preventDefault(), f.stopPropagation(), r();
4198
4198
  }, u = (f) => {
4199
4199
  (f.key === "Enter" || f.key === " ") && (f.preventDefault(), f.stopPropagation(), r());
4200
- }, c = n || d ? "primary" : "dark", g = n || d ? "bold" : "normal", h = _.useId();
4200
+ }, c = n || d ? "primary" : "dark", g = n || d ? "bold" : "normal", h = U.useId();
4201
4201
  return /* @__PURE__ */ a(ya, { $active: n, children: /* @__PURE__ */ m(re, { border: !0, borderRadius: "8px", width: "100%", children: [
4202
4202
  /* @__PURE__ */ a(
4203
4203
  Ca,
@@ -4225,7 +4225,7 @@ const ga = C.div`
4225
4225
  }
4226
4226
  ),
4227
4227
  /* @__PURE__ */ a(Gn, { children: /* @__PURE__ */ a(
4228
- k,
4228
+ A,
4229
4229
  {
4230
4230
  appearance: c,
4231
4231
  cursorHover: !0,
@@ -4262,7 +4262,7 @@ const ga = C.div`
4262
4262
  onClick: r,
4263
4263
  onKeyDown: l,
4264
4264
  children: /* @__PURE__ */ a(
4265
- k,
4265
+ A,
4266
4266
  {
4267
4267
  appearance: c,
4268
4268
  cursorHover: !0,
@@ -4281,23 +4281,23 @@ const ga = C.div`
4281
4281
  }
4282
4282
  ),
4283
4283
  n && t.length > 0 && /* @__PURE__ */ a(Da, { id: h, children: t.map((f) => {
4284
- const T = f.id === i;
4285
- return /* @__PURE__ */ a(wa, { to: f.path, children: /* @__PURE__ */ a(pt, { $active: T, children: /* @__PURE__ */ m(
4284
+ const x = f.id === i;
4285
+ return /* @__PURE__ */ a(wa, { to: f.path, children: /* @__PURE__ */ a(pt, { $active: x, children: /* @__PURE__ */ m(
4286
4286
  v,
4287
4287
  {
4288
4288
  alignItems: "center",
4289
4289
  direction: "row",
4290
4290
  gap: "8px",
4291
- padding: T ? "8px 4px" : "8px 32px",
4291
+ padding: x ? "8px 4px" : "8px 32px",
4292
4292
  children: [
4293
- T && /* @__PURE__ */ a(P, { appearance: "primary", icon: /* @__PURE__ */ a(Ot, {}) }),
4293
+ x && /* @__PURE__ */ a(P, { appearance: "primary", icon: /* @__PURE__ */ a(Ot, {}) }),
4294
4294
  /* @__PURE__ */ a(
4295
- k,
4295
+ A,
4296
4296
  {
4297
- appearance: T ? "primary" : "dark",
4297
+ appearance: x ? "primary" : "dark",
4298
4298
  size: "small",
4299
4299
  type: "title",
4300
- weight: T ? "bold" : "normal",
4300
+ weight: x ? "bold" : "normal",
4301
4301
  children: f.label
4302
4302
  }
4303
4303
  )
@@ -4306,11 +4306,11 @@ const ga = C.div`
4306
4306
  ) }) }, f.id);
4307
4307
  }) })
4308
4308
  ] }) });
4309
- }, Ea = C.div`
4309
+ }, Ea = w.div`
4310
4310
  & > div {
4311
4311
  background: ${({ $background: e, theme: n }) => {
4312
4312
  var t, r, o, i;
4313
- return e ? `${((r = (t = n == null ? void 0 : n.palette) == null ? void 0 : t.neutral) == null ? void 0 : r.N20) || S.palette.neutral.N20}` : `${((i = (o = n == null ? void 0 : n.palette) == null ? void 0 : o.neutral) == null ? void 0 : i.N0) || S.palette.neutral.N0}`;
4313
+ return e ? `${((r = (t = n == null ? void 0 : n.palette) == null ? void 0 : t.neutral) == null ? void 0 : r.N20) || D.palette.neutral.N20}` : `${((i = (o = n == null ? void 0 : n.palette) == null ? void 0 : o.neutral) == null ? void 0 : i.N0) || D.palette.neutral.N0}`;
4314
4314
  }};
4315
4315
  }
4316
4316
  height: 90vh;
@@ -4320,17 +4320,17 @@ const ga = C.div`
4320
4320
  if (r.path && (e === r.path || e.startsWith(r.path + "/")) || (t = r.links) != null && t.some((o) => o.path === e)) return r.id;
4321
4321
  return null;
4322
4322
  }, wl = (e) => {
4323
- const { collapseOnNavigate: n = !1, defaultOpenId: t = null, groups: r } = e, o = Xt(), [i, s] = _.useState(t), d = _.useRef(o.pathname), l = _.useCallback(
4323
+ const { collapseOnNavigate: n = !1, defaultOpenId: t = null, groups: r } = e, o = Xt(), [i, s] = U.useState(t), d = U.useRef(o.pathname), l = U.useCallback(
4324
4324
  (u) => {
4325
4325
  var c;
4326
4326
  return (c = u.find((g) => g.path === o.pathname)) == null ? void 0 : c.id;
4327
4327
  },
4328
4328
  [o.pathname]
4329
- ), p = _.useCallback(
4329
+ ), p = U.useCallback(
4330
4330
  (u) => !!u && (o.pathname === u || o.pathname.startsWith(u + "/")),
4331
4331
  [o.pathname]
4332
4332
  );
4333
- return _.useEffect(() => {
4333
+ return U.useEffect(() => {
4334
4334
  if (!(d.current !== o.pathname)) return;
4335
4335
  if (d.current = o.pathname, n) {
4336
4336
  s(null);
@@ -5230,7 +5230,7 @@ function si(e, n) {
5230
5230
  function di(e) {
5231
5231
  var u, c, g, h, f;
5232
5232
  e.draggedNode && (e.draggedNode.el.draggable = !0);
5233
- const n = e.draggedNodes.map((T) => T.el), t = e.initialParent.data, r = te(e), o = (u = B.get(e.initialParent.el)) == null ? void 0 : u.config, i = r ? o == null ? void 0 : o.synthDropZoneClass : o == null ? void 0 : o.dropZoneClass, s = (c = t == null ? void 0 : t.config) == null ? void 0 : c.longPressClass, d = r ? (g = t == null ? void 0 : t.config) == null ? void 0 : g.synthDragPlaceholderClass : (h = t == null ? void 0 : t.config) == null ? void 0 : h.dragPlaceholderClass, l = e.originalZIndex;
5233
+ const n = e.draggedNodes.map((x) => x.el), t = e.initialParent.data, r = te(e), o = (u = B.get(e.initialParent.el)) == null ? void 0 : u.config, i = r ? o == null ? void 0 : o.synthDropZoneClass : o == null ? void 0 : o.dropZoneClass, s = (c = t == null ? void 0 : t.config) == null ? void 0 : c.longPressClass, d = r ? (g = t == null ? void 0 : t.config) == null ? void 0 : g.synthDragPlaceholderClass : (h = t == null ? void 0 : t.config) == null ? void 0 : h.dragPlaceholderClass, l = e.originalZIndex;
5234
5234
  te(e) && (e.clonedDraggedNode && e.clonedDraggedNode.remove(), e.longPressTimeout && clearTimeout(e.longPressTimeout)), En(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(() => {
5235
5235
  fe(n, i), fe(n, s), fe(n, d);
5236
5236
  }), xe(e.draggedNodes, e.currentParent, e), we(e.currentParent, void 0, e);
@@ -5255,7 +5255,7 @@ function ci(e, n) {
5255
5255
  ), Y(n) && t.handleEnd(n);
5256
5256
  }
5257
5257
  function ui(e, n, t, r, o, i) {
5258
- var f, T;
5258
+ var f, x;
5259
5259
  const s = n.data.config;
5260
5260
  let d, l;
5261
5261
  const p = [
@@ -5286,12 +5286,12 @@ function ui(e, n, t, r, o, i) {
5286
5286
  "height",
5287
5287
  "boxSizing",
5288
5288
  "overflow"
5289
- ], u = (y, x) => {
5290
- const w = window.getComputedStyle(y);
5291
- p.forEach((D) => {
5292
- x.style[D] = w[D];
5289
+ ], u = (y, T) => {
5290
+ const C = window.getComputedStyle(y);
5291
+ p.forEach((E) => {
5292
+ T.style[E] = C[E];
5293
5293
  });
5294
- }, c = (y, x = {}) => {
5294
+ }, c = (y, T = {}) => {
5295
5295
  Object.assign(y.style, {
5296
5296
  position: "absolute",
5297
5297
  zIndex: "9999",
@@ -5302,7 +5302,7 @@ function ui(e, n, t, r, o, i) {
5302
5302
  overflow: "hidden",
5303
5303
  width: `${i.width}px`,
5304
5304
  height: `${i.height}px`,
5305
- ...x
5305
+ ...T
5306
5306
  });
5307
5307
  };
5308
5308
  if (s.synthDragImage)
@@ -5311,9 +5311,9 @@ function ui(e, n, t, r, o, i) {
5311
5311
  d = e.el.cloneNode(!0), u(e.el, d), d.setAttribute("popover", "manual"), c(d);
5312
5312
  else {
5313
5313
  const y = document.createElement("div");
5314
- y.setAttribute("popover", "manual"), o.forEach((x) => {
5315
- const w = x.el.cloneNode(!0);
5316
- u(x.el, w), w.style.pointerEvents = "none", w.style.margin = "0", y.append(w);
5314
+ y.setAttribute("popover", "manual"), o.forEach((T) => {
5315
+ const C = T.el.cloneNode(!0);
5316
+ u(T.el, C), C.style.pointerEvents = "none", C.style.margin = "0", y.append(C);
5317
5317
  }), y.style.display = "flex", y.style.flexDirection = "column", y.style.padding = "0", y.style.margin = "0", y.style.position = "absolute", y.style.zIndex = "9999", y.style.pointerEvents = "none", d = y;
5318
5318
  }
5319
5319
  d.id = "dnd-dragged-node-clone", n.el.appendChild(d), d.showPopover();
@@ -5323,7 +5323,7 @@ function ui(e, n, t, r, o, i) {
5323
5323
  synthDragScrolling: !1,
5324
5324
  synthDragging: !0,
5325
5325
  rootScrollWidth: (f = document.scrollingElement) == null ? void 0 : f.scrollWidth,
5326
- rootScrollHeight: (T = document.scrollingElement) == null ? void 0 : T.scrollHeight
5326
+ rootScrollHeight: (x = document.scrollingElement) == null ? void 0 : x.scrollHeight
5327
5327
  };
5328
5328
  return vt({
5329
5329
  ...yt(
@@ -5585,23 +5585,23 @@ function fe(e, n) {
5585
5585
  function Xn(e, n, t, r, o) {
5586
5586
  const s = o.axis === "x", d = e === document.scrollingElement, l = s ? "scrollLeft" : "scrollTop", p = s ? "clientWidth" : "clientHeight", u = s ? "offsetWidth" : "offsetHeight", c = s ? "scrollWidth" : "scrollHeight", g = s ? n.clientX : n.clientY, h = s ? r.left : r.top, f = s ? t.overflowX : t.overflowY;
5587
5587
  if (d) {
5588
- const T = e[l], y = e[p], x = T > 0, w = T + y < (s ? o.state.rootScrollWidth || 0 : e[c]);
5588
+ const x = e[l], y = e[p], T = x > 0, C = x + y < (s ? o.state.rootScrollWidth || 0 : e[c]);
5589
5589
  return s ? {
5590
- left: x && g < y * 0.075,
5591
- right: w && g > y * (1 - 0.075)
5590
+ left: T && g < y * 0.075,
5591
+ right: C && g > y * (1 - 0.075)
5592
5592
  } : {
5593
- up: x && g < y * 0.075,
5594
- down: w && g > y * (1 - 0.075)
5593
+ up: T && g < y * 0.075,
5594
+ down: C && g > y * (1 - 0.075)
5595
5595
  };
5596
5596
  }
5597
5597
  if ((f === "auto" || f === "scroll") && e !== document.body && e !== document.documentElement) {
5598
- const T = e[c], y = e[u], x = e[l], w = x > 0, D = x < T - y;
5598
+ const x = e[c], y = e[u], T = e[l], C = T > 0, E = T < x - y;
5599
5599
  return s ? {
5600
- left: w && g < h + y * 0.075,
5601
- right: D && g > h + y * (1 - 0.075)
5600
+ left: C && g < h + y * 0.075,
5601
+ right: E && g > h + y * (1 - 0.075)
5602
5602
  } : {
5603
- up: w && g < h + y * 0.075,
5604
- down: D && g > h + y * (1 - 0.075)
5603
+ up: C && g < h + y * 0.075,
5604
+ down: E && g > h + y * (1 - 0.075)
5605
5605
  };
5606
5606
  }
5607
5607
  return s ? { left: !1, right: !1 } : { up: !1, down: !1 };
@@ -5617,8 +5617,8 @@ function Ti(e, n, t, r) {
5617
5617
  t[l] !== void 0 && (cancelAnimationFrame(t[l]), t[l] = void 0);
5618
5618
  return;
5619
5619
  }
5620
- const u = o ? "scrollLeft" : "scrollTop", c = o ? "clientWidth" : "clientHeight", g = o ? "scrollWidth" : "scrollHeight", h = e[u], f = e[c], T = e[g];
5621
- if (!(i > 0 ? h + f < T : h > 0)) {
5620
+ const u = o ? "scrollLeft" : "scrollTop", c = o ? "clientWidth" : "clientHeight", g = o ? "scrollWidth" : "scrollHeight", h = e[u], f = e[c], x = e[g];
5621
+ if (!(i > 0 ? h + f < x : h > 0)) {
5622
5622
  t[l] = void 0, t[d] = void 0;
5623
5623
  return;
5624
5624
  }
@@ -5750,13 +5750,13 @@ function ki(e, n = {}) {
5750
5750
  const Zn = {
5751
5751
  border: {
5752
5752
  selected: {
5753
- color: S.palette.blue.B400
5753
+ color: D.palette.blue.B400
5754
5754
  },
5755
5755
  clear: {
5756
- color: S.palette.neutral.N40
5756
+ color: D.palette.neutral.N40
5757
5757
  }
5758
5758
  }
5759
- }, $i = C.ul`
5759
+ }, $i = w.ul`
5760
5760
  list-style: none;
5761
5761
  padding: 0;
5762
5762
  margin: 0;
@@ -5765,7 +5765,7 @@ const Zn = {
5765
5765
  gap: 12px;
5766
5766
  width: 100%;
5767
5767
  justify-content: ${({ $isEmpty: e }) => e ? "center" : "flex-start"};
5768
- `, Ai = C.li`
5768
+ `, Ai = w.li`
5769
5769
  & > div {
5770
5770
  border: 1px solid
5771
5771
  ${({ theme: e, $active: n }) => {
@@ -5781,48 +5781,50 @@ const Zn = {
5781
5781
  legend: o,
5782
5782
  initialItems: i,
5783
5783
  highlightFirst: s,
5784
- onMove: d
5785
- } = e, [l, p] = ki(
5786
- i,
5787
- { group: r }
5788
- ), [u, c] = _.useState(
5784
+ onMove: d,
5785
+ locked: l = !1
5786
+ } = e, p = U.useRef(null), u = l ? [p, i] : ki(i, { group: r }), [c, g] = u, [h, f] = U.useState(
5789
5787
  null
5790
- ), g = _.useRef(i);
5791
- _.useEffect(() => {
5792
- const x = (w) => {
5793
- const D = w.detail ?? null;
5794
- c(D);
5788
+ ), x = U.useRef(i);
5789
+ U.useEffect(() => {
5790
+ if (l) return;
5791
+ const N = (S) => {
5792
+ const I = S.detail ?? null;
5793
+ f(I);
5795
5794
  };
5796
- return window.addEventListener(yn, x), () => window.removeEventListener(yn, x);
5797
- }, []);
5798
- const h = _.useCallback((x) => {
5799
- window.dispatchEvent(
5800
- new CustomEvent(yn, { detail: x })
5795
+ return window.addEventListener(yn, N), () => window.removeEventListener(yn, N);
5796
+ }, [l]);
5797
+ const y = U.useCallback((N) => {
5798
+ l || window.dispatchEvent(
5799
+ new CustomEvent(yn, { detail: N })
5801
5800
  );
5802
- }, []), f = (x) => {
5803
- var E;
5804
- const w = x.target, D = (E = w == null ? void 0 : w.closest) == null ? void 0 : E.call(w, "li.dnd-item"), I = (D == null ? void 0 : D.getAttribute("data-label")) || null;
5805
- I && (c(I), h(I));
5806
- }, T = _.useCallback(() => {
5807
- c(null), h(null);
5808
- }, [h]);
5809
- _.useEffect(() => {
5810
- const x = () => T();
5811
- return window.addEventListener("pointerup", x), window.addEventListener("blur", x), () => {
5812
- window.removeEventListener("pointerup", x), window.removeEventListener("blur", x);
5801
+ }, [l]), T = (N) => {
5802
+ var k;
5803
+ if (l) return;
5804
+ const S = N.target, I = (k = S == null ? void 0 : S.closest) == null ? void 0 : k.call(S, "li.dnd-item"), F = (I == null ? void 0 : I.getAttribute("data-label")) || null;
5805
+ F && (f(F), y(F));
5806
+ }, C = U.useCallback(() => {
5807
+ l || (f(null), y(null));
5808
+ }, [y, l]);
5809
+ U.useEffect(() => {
5810
+ if (l) return;
5811
+ const N = () => C();
5812
+ return window.addEventListener("pointerup", N), window.addEventListener("blur", N), () => {
5813
+ window.removeEventListener("pointerup", N), window.removeEventListener("blur", N);
5813
5814
  };
5814
- }, [T]), _.useEffect(() => {
5815
- const x = g.current;
5816
- if (p.length !== x.length && p.length === x.length + 1) {
5817
- const w = new Set(x), D = p.find((I) => !w.has(I)) || null;
5818
- if (D) {
5819
- const I = t === "left" ? "right" : "left";
5820
- d == null || d({ item: D, from: I, to: t });
5815
+ }, [C, l]), U.useEffect(() => {
5816
+ if (l) return;
5817
+ const N = x.current;
5818
+ if (g.length !== N.length && g.length === N.length + 1) {
5819
+ const S = new Set(N), I = g.find((F) => !S.has(F)) || null;
5820
+ if (I) {
5821
+ const F = t === "left" ? "right" : "left";
5822
+ d == null || d({ item: I, from: F, to: t });
5821
5823
  }
5822
5824
  }
5823
- g.current = p;
5824
- }, [p, t, d]);
5825
- const y = p.length === 0;
5825
+ x.current = g;
5826
+ }, [g, t, d, l]);
5827
+ const E = g.length === 0;
5826
5828
  return /* @__PURE__ */ a(
5827
5829
  Ue,
5828
5830
  {
@@ -5833,12 +5835,15 @@ const Zn = {
5833
5835
  children: /* @__PURE__ */ a(
5834
5836
  $i,
5835
5837
  {
5836
- ref: l,
5837
- onPointerDownCapture: f,
5838
- onPointerUpCapture: T,
5839
- onPointerCancelCapture: T,
5840
- $isEmpty: y,
5841
- children: y ? /* @__PURE__ */ a(
5838
+ ref: c,
5839
+ onPointerDownCapture: l ? void 0 : T,
5840
+ onPointerUpCapture: l ? void 0 : C,
5841
+ onPointerCancelCapture: l ? void 0 : C,
5842
+ $isEmpty: E,
5843
+ $locked: l,
5844
+ "aria-disabled": l,
5845
+ "data-locked": l || void 0,
5846
+ children: E ? /* @__PURE__ */ a(
5842
5847
  re,
5843
5848
  {
5844
5849
  background: !0,
@@ -5846,30 +5851,30 @@ const Zn = {
5846
5851
  width: "100%",
5847
5852
  alignItems: "center",
5848
5853
  justifyContent: "center",
5849
- children: /* @__PURE__ */ a(k, { type: "label", size: "medium", appearance: "gray", padding: "12px", children: n || "No hay elementos en esta lista" })
5854
+ children: /* @__PURE__ */ a(A, { type: "label", size: "medium", appearance: "gray", padding: "12px", children: n || "No hay elementos en esta lista" })
5850
5855
  }
5851
- ) : p.map((x, w) => {
5852
- const D = u === x;
5856
+ ) : g.map((N, S) => {
5857
+ const I = !l && h === N;
5853
5858
  return /* @__PURE__ */ a(
5854
5859
  Ai,
5855
5860
  {
5856
- className: `dnd-item${D ? " is-dragging" : ""}`,
5857
- "data-label": x,
5858
- "data-first": !!(s && w === 0) || void 0,
5859
- $active: D,
5861
+ className: `dnd-item${I ? " is-dragging" : ""}`,
5862
+ "data-label": N,
5863
+ "data-first": !!(s && S === 0) || void 0,
5864
+ $active: I,
5860
5865
  children: /* @__PURE__ */ a(re, { border: !0, borderRadius: "8px", width: "100%", children: /* @__PURE__ */ a(
5861
- k,
5866
+ A,
5862
5867
  {
5863
5868
  type: "title",
5864
- appearance: D ? "primary" : "dark",
5865
- weight: D ? "bold" : "normal",
5869
+ appearance: I ? "primary" : "dark",
5870
+ weight: I ? "bold" : "normal",
5866
5871
  size: "medium",
5867
5872
  padding: "6px 12px",
5868
- children: x
5873
+ children: N
5869
5874
  }
5870
5875
  ) })
5871
5876
  },
5872
- x
5877
+ N
5873
5878
  );
5874
5879
  })
5875
5880
  }
@@ -5877,8 +5882,8 @@ const Zn = {
5877
5882
  }
5878
5883
  );
5879
5884
  }, Cl = (e) => {
5880
- const { group: n = "clients", left: t, right: r, onMove: o } = e, i = (s) => {
5881
- o == null || o(s);
5885
+ const { group: n = "clients", left: t, right: r, onMove: o, locked: i = !1 } = e, s = (d) => {
5886
+ i || o == null || o(d);
5882
5887
  };
5883
5888
  return /* @__PURE__ */ m(
5884
5889
  v,
@@ -5896,7 +5901,8 @@ const Zn = {
5896
5901
  id: "left",
5897
5902
  initialItems: t.items,
5898
5903
  legend: t.legend,
5899
- onMove: i,
5904
+ onMove: s,
5905
+ locked: i,
5900
5906
  emptyMessage: t.emptyMessage
5901
5907
  }
5902
5908
  ),
@@ -5908,14 +5914,15 @@ const Zn = {
5908
5914
  id: "right",
5909
5915
  initialItems: r.items,
5910
5916
  legend: r.legend,
5911
- onMove: i,
5917
+ onMove: s,
5918
+ locked: i,
5912
5919
  emptyMessage: r.emptyMessage
5913
5920
  }
5914
5921
  )
5915
5922
  ]
5916
5923
  }
5917
5924
  );
5918
- }, Ii = C.div`
5925
+ }, Ii = w.div`
5919
5926
  & > button {
5920
5927
  height: 66px;
5921
5928
  min-width: 66px;
@@ -5933,7 +5940,7 @@ const Zn = {
5933
5940
  }
5934
5941
  }
5935
5942
  }
5936
- `, Dl = (e) => /* @__PURE__ */ a(Ii, { children: /* @__PURE__ */ a(H, { ...e }) }), Ri = C.div`
5943
+ `, Dl = (e) => /* @__PURE__ */ a(Ii, { children: /* @__PURE__ */ a(H, { ...e }) }), Ri = w.div`
5937
5944
  display: flex;
5938
5945
  justify-content: space-between;
5939
5946
  align-items: center;
@@ -5991,27 +5998,27 @@ const Zn = {
5991
5998
  }, ie = {
5992
5999
  border: {
5993
6000
  color: {
5994
- regular: S.palette.neutral.N40,
5995
- disabled: S.palette.neutral.N40,
5996
- focus: S.palette.blue.B300,
5997
- invalid: S.palette.red.R400
6001
+ regular: D.palette.neutral.N40,
6002
+ disabled: D.palette.neutral.N40,
6003
+ focus: D.palette.blue.B300,
6004
+ invalid: D.palette.red.R400
5998
6005
  }
5999
6006
  },
6000
6007
  background: {
6001
6008
  color: {
6002
- regular: S.palette.neutral.N0,
6003
- disabled: S.palette.neutral.N10
6009
+ regular: D.palette.neutral.N0,
6010
+ disabled: D.palette.neutral.N10
6004
6011
  }
6005
6012
  },
6006
6013
  content: {
6007
6014
  color: {
6008
- regular: S.palette.neutral.N900,
6009
- disabled: S.palette.neutral.N70
6015
+ regular: D.palette.neutral.N900,
6016
+ disabled: D.palette.neutral.N70
6010
6017
  }
6011
6018
  },
6012
6019
  placeholder: {
6013
6020
  color: {
6014
- regular: S.palette.neutral.N300
6021
+ regular: D.palette.neutral.N300
6015
6022
  }
6016
6023
  },
6017
6024
  message: {
@@ -6022,11 +6029,11 @@ const Zn = {
6022
6029
  },
6023
6030
  option: {
6024
6031
  background: {
6025
- regular: S.palette.neutral.N0,
6026
- hover: S.palette.neutral.N30
6032
+ regular: D.palette.neutral.N0,
6033
+ hover: D.palette.neutral.N30
6027
6034
  }
6028
6035
  }
6029
- }, Fi = C.ul`
6036
+ }, Fi = w.ul`
6030
6037
  display: flex;
6031
6038
  flex-direction: column;
6032
6039
  padding: 4px 0px;
@@ -6102,17 +6109,17 @@ const Zn = {
6102
6109
  children: n
6103
6110
  }
6104
6111
  );
6105
- }, Oi = C.div`
6112
+ }, Oi = w.div`
6106
6113
  cursor: ${({ $disabled: e }) => e && "not-allowed"};
6107
6114
  width: ${({ $fullwidth: e }) => e ? "100%" : "fit-content"};
6108
6115
  position: relative;
6109
- `, Pi = C.div`
6116
+ `, Pi = w.div`
6110
6117
  display: flex;
6111
6118
  align-items: center;
6112
6119
  margin-bottom: 4px;
6113
6120
  gap: 4px;
6114
6121
  pointer-events: ${({ $disabled: e }) => e && "none"};
6115
- `, Mi = C.div`
6122
+ `, Mi = w.div`
6116
6123
  display: grid;
6117
6124
  height: ${({ $size: e }) => e === "compact" ? "40px" : "48px"};
6118
6125
  padding: 8px 16px;
@@ -6136,7 +6143,7 @@ const Zn = {
6136
6143
  const o = ((s = (i = r == null ? void 0 : r.input) == null ? void 0 : i.border) == null ? void 0 : s.color) || ie.border.color;
6137
6144
  return e ? o.disabled : n ? o.invalid : t ? o.focus : o.regular;
6138
6145
  }};
6139
- `, zi = C.input`
6146
+ `, zi = w.input`
6140
6147
  display: ${({ $inputWithData: e }) => e ? "none" : "block"};
6141
6148
  outline: none;
6142
6149
  padding: 0;
@@ -6148,19 +6155,19 @@ const Zn = {
6148
6155
  cursor: ${({ readOnly: e, $disabled: n }) => n ? "not-allowed" : e ? "pointer" : "text"};
6149
6156
  font-family: ${({ theme: e }) => {
6150
6157
  var n, t, r;
6151
- return ((r = (t = (n = e == null ? void 0 : e.typography) == null ? void 0 : n.body) == null ? void 0 : t.large) == null ? void 0 : r.font) || S.typography.body.large.font;
6158
+ return ((r = (t = (n = e == null ? void 0 : e.typography) == null ? void 0 : n.body) == null ? void 0 : t.large) == null ? void 0 : r.font) || D.typography.body.large.font;
6152
6159
  }};
6153
6160
  font-size: ${({ theme: e }) => {
6154
6161
  var n, t, r;
6155
- return ((r = (t = (n = e == null ? void 0 : e.typography) == null ? void 0 : n.body) == null ? void 0 : t.large) == null ? void 0 : r.size) || S.typography.body.large.size;
6162
+ return ((r = (t = (n = e == null ? void 0 : e.typography) == null ? void 0 : n.body) == null ? void 0 : t.large) == null ? void 0 : r.size) || D.typography.body.large.size;
6156
6163
  }};
6157
6164
  line-height: ${({ theme: e }) => {
6158
6165
  var n, t, r;
6159
- return ((r = (t = (n = e == null ? void 0 : e.typography) == null ? void 0 : n.body) == null ? void 0 : t.large) == null ? void 0 : r.lineHeight) || S.typography.body.large.lineHeight;
6166
+ return ((r = (t = (n = e == null ? void 0 : e.typography) == null ? void 0 : n.body) == null ? void 0 : t.large) == null ? void 0 : r.lineHeight) || D.typography.body.large.lineHeight;
6160
6167
  }};
6161
6168
  letter-spacing: ${({ theme: e }) => {
6162
6169
  var n, t, r;
6163
- return ((r = (t = (n = e == null ? void 0 : e.typography) == null ? void 0 : n.body) == null ? void 0 : t.large) == null ? void 0 : r.tracking) || S.typography.body.large.tracking;
6170
+ return ((r = (t = (n = e == null ? void 0 : e.typography) == null ? void 0 : n.body) == null ? void 0 : t.large) == null ? void 0 : r.tracking) || D.typography.body.large.tracking;
6164
6171
  }};
6165
6172
  font-weight: ${({ theme: e }) => {
6166
6173
  var n, t, r;
@@ -6194,7 +6201,7 @@ const Zn = {
6194
6201
  &:-webkit-autofill {
6195
6202
  -webkit-background-clip: text;
6196
6203
  }
6197
- `, Vi = C.div`
6204
+ `, Vi = w.div`
6198
6205
  display: flex;
6199
6206
  justify-content: flex-end;
6200
6207
  transition: ease;
@@ -6218,7 +6225,7 @@ const _i = (e) => {
6218
6225
  }
6219
6226
  ),
6220
6227
  /* @__PURE__ */ a(
6221
- k,
6228
+ A,
6222
6229
  {
6223
6230
  type: "body",
6224
6231
  size: "small",
@@ -6244,24 +6251,24 @@ const _i = (e) => {
6244
6251
  options: g,
6245
6252
  placeholder: h,
6246
6253
  required: f,
6247
- size: T,
6254
+ size: x,
6248
6255
  value: y,
6249
- picker: x,
6250
- showChevron: w,
6251
- checkedItems: D,
6252
- editable: I = !1,
6253
- clearable: E,
6254
- onKeyUp: R,
6256
+ picker: T,
6257
+ showChevron: C,
6258
+ checkedItems: E,
6259
+ editable: N = !1,
6260
+ clearable: S,
6261
+ onKeyUp: I,
6255
6262
  onBlur: F,
6256
- onChange: $,
6263
+ onChange: k,
6257
6264
  onClick: q,
6258
6265
  onFocus: ce,
6259
6266
  onOptionClick: Ce,
6260
6267
  onCheckboxChange: De,
6261
6268
  handleClear: ve
6262
- } = e, se = In($n), Se = ((pe = (ke = se == null ? void 0 : se.input) == null ? void 0 : ke.required) == null ? void 0 : pe.appearance) || ie.required.appearance, Me = f && !r, ue = x || y === "" ? "" : et(g, y), Ee = at(
6263
- () => g.filter((V) => D.includes(V.id)),
6264
- [g, D]
6269
+ } = e, se = In($n), Se = ((pe = (ke = se == null ? void 0 : se.input) == null ? void 0 : ke.required) == null ? void 0 : pe.appearance) || ie.required.appearance, Me = f && !r, ue = T || y === "" ? "" : et(g, y), Ee = at(
6270
+ () => g.filter((V) => E.includes(V.id)),
6271
+ [g, E]
6265
6272
  ), Ne = (V, L) => {
6266
6273
  V.stopPropagation(), De({
6267
6274
  target: { checked: !1, value: L }
@@ -6282,12 +6289,12 @@ const _i = (e) => {
6282
6289
  focused: o,
6283
6290
  invalid: d,
6284
6291
  margin: "0px 0px 0px 16px",
6285
- size: Ui(T),
6292
+ size: Ui(x),
6286
6293
  disabled: r,
6287
6294
  children: l
6288
6295
  }
6289
6296
  ),
6290
- Me && /* @__PURE__ */ a(k, { appearance: Se, size: "small", type: "body", children: "(Requerido)" })
6297
+ Me && /* @__PURE__ */ a(A, { appearance: Se, size: "small", type: "body", children: "(Requerido)" })
6291
6298
  ]
6292
6299
  }
6293
6300
  ),
@@ -6297,9 +6304,9 @@ const _i = (e) => {
6297
6304
  $disabled: r,
6298
6305
  $focused: o,
6299
6306
  $invalid: d,
6300
- onClick: I ? void 0 : q,
6307
+ onClick: N ? void 0 : q,
6301
6308
  $value: y,
6302
- $size: T,
6309
+ $size: x,
6303
6310
  children: [
6304
6311
  /* @__PURE__ */ a(
6305
6312
  zi,
@@ -6312,15 +6319,15 @@ const _i = (e) => {
6312
6319
  placeholder: h,
6313
6320
  $disabled: r,
6314
6321
  required: f,
6315
- $size: T,
6322
+ $size: x,
6316
6323
  $fullwidth: i,
6317
6324
  $focused: o,
6318
- readOnly: !I,
6325
+ readOnly: !N,
6319
6326
  onFocus: ce,
6320
6327
  onBlur: F,
6321
- onChange: (V) => $(c, V.target.value),
6322
- onClick: I ? q : void 0,
6323
- onKeyUp: R
6328
+ onChange: (V) => k(c, V.target.value),
6329
+ onClick: N ? q : void 0,
6330
+ onKeyUp: I
6324
6331
  }
6325
6332
  ),
6326
6333
  /* @__PURE__ */ m(
@@ -6331,7 +6338,7 @@ const _i = (e) => {
6331
6338
  alignItems: "center",
6332
6339
  justifyContent: "space-between",
6333
6340
  children: [
6334
- /* @__PURE__ */ a(v, { gap: "8px", alignItems: "center", wrap: "wrap", children: E && !r && (x ? Ee.map((V) => /* @__PURE__ */ a(
6341
+ /* @__PURE__ */ a(v, { gap: "8px", alignItems: "center", wrap: "wrap", children: S && !r && (T ? Ee.map((V) => /* @__PURE__ */ a(
6335
6342
  ye,
6336
6343
  {
6337
6344
  appearance: "gray",
@@ -6353,7 +6360,7 @@ const _i = (e) => {
6353
6360
  }
6354
6361
  }
6355
6362
  )) }),
6356
- w && /* @__PURE__ */ a(Vi, { $displayList: t, children: /* @__PURE__ */ a(
6363
+ C && /* @__PURE__ */ a(Vi, { $displayList: t, children: /* @__PURE__ */ a(
6357
6364
  P,
6358
6365
  {
6359
6366
  appearance: "dark",
@@ -6380,9 +6387,9 @@ const _i = (e) => {
6380
6387
  {
6381
6388
  id: V.id,
6382
6389
  label: V.label,
6383
- checked: D.includes(V.id),
6390
+ checked: E.includes(V.id),
6384
6391
  onCheckboxChange: De,
6385
- picker: x
6392
+ picker: T
6386
6393
  },
6387
6394
  V.id
6388
6395
  ))
@@ -6405,28 +6412,28 @@ const _i = (e) => {
6405
6412
  onFocus: g,
6406
6413
  onKeyUp: h,
6407
6414
  options: f,
6408
- placeholder: T,
6415
+ placeholder: x,
6409
6416
  required: y = !1,
6410
- size: x = "wide",
6411
- value: w,
6412
- showOptions: D = !1,
6413
- picker: I = !1,
6414
- showChevron: E = !0,
6415
- editable: R = !1,
6417
+ size: T = "wide",
6418
+ value: C,
6419
+ showOptions: E = !1,
6420
+ picker: N = !1,
6421
+ showChevron: S = !0,
6422
+ editable: I = !1,
6416
6423
  clearable: F = !0
6417
- } = e, [$, q] = M(!1), [ce, Ce] = M(!1), [De, ve] = M([]), se = Ae(null);
6424
+ } = e, [k, q] = M(!1), [ce, Ce] = M(!1), [De, ve] = M([]), se = Ae(null);
6418
6425
  Te(() => {
6419
- if (I) {
6420
- const L = w ? w.split(",").map((W) => W.trim()) : [];
6426
+ if (N) {
6427
+ const L = C ? C.split(",").map((W) => W.trim()) : [];
6421
6428
  ve(L);
6422
6429
  }
6423
- }, [w, I]);
6430
+ }, [C, N]);
6424
6431
  function Se() {
6425
6432
  u(l, ""), ve([]), q(!1);
6426
6433
  }
6427
6434
  function Me(L) {
6428
6435
  if (!n) {
6429
- q(!$);
6436
+ q(!k);
6430
6437
  try {
6431
6438
  c && c(L);
6432
6439
  } catch (W) {
@@ -6453,7 +6460,7 @@ const _i = (e) => {
6453
6460
  }
6454
6461
  }
6455
6462
  function ke(L) {
6456
- L.key === "Escape" && q(!1), q(!$);
6463
+ L.key === "Escape" && q(!1), q(!k);
6457
6464
  try {
6458
6465
  h && h(L);
6459
6466
  } catch (W) {
@@ -6463,20 +6470,20 @@ const _i = (e) => {
6463
6470
  function pe(L) {
6464
6471
  const { value: W, checked: On } = L.target;
6465
6472
  ve((ze) => {
6466
- const A = On ? [...ze, W] : ze.filter((U) => U !== W);
6467
- return u(l, A.join(",")), A;
6473
+ const R = On ? [...ze, W] : ze.filter((_) => _ !== W);
6474
+ return u(l, R.join(",")), R;
6468
6475
  });
6469
6476
  }
6470
6477
  Te(() => (document.addEventListener("click", ue), () => {
6471
6478
  document.removeEventListener("click", ue);
6472
6479
  }), [ue]);
6473
- const V = at(() => F || I ? f : [{ id: "empty-option", label: "", value: "" }, ...f], [f, F, I]);
6480
+ const V = at(() => F || N ? f : [{ id: "empty-option", label: "", value: "" }, ...f], [f, F, N]);
6474
6481
  return /* @__PURE__ */ a(
6475
6482
  Hi,
6476
6483
  {
6477
6484
  ref: se,
6478
6485
  disabled: n,
6479
- displayList: $ || D,
6486
+ displayList: k || E,
6480
6487
  focused: ce,
6481
6488
  fullwidth: t,
6482
6489
  id: r,
@@ -6486,14 +6493,14 @@ const _i = (e) => {
6486
6493
  message: d,
6487
6494
  name: l,
6488
6495
  options: V,
6489
- placeholder: T,
6496
+ placeholder: x,
6490
6497
  required: y,
6491
- size: x,
6492
- value: w,
6493
- picker: I,
6494
- showChevron: E,
6498
+ size: T,
6499
+ value: C,
6500
+ picker: N,
6501
+ showChevron: S,
6495
6502
  checkedItems: De,
6496
- editable: R,
6503
+ editable: I,
6497
6504
  clearable: F,
6498
6505
  handleClear: Se,
6499
6506
  onBlur: Ee,