@isettingkit/business-rules 2.1.11 → 2.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.es.js +709 -699
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,22 +1,22 @@
1
- import { jsx as a, jsxs as m, Fragment as O } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as m, Fragment as z } from "react/jsx-runtime";
2
2
  import { MdOutlineDelete as ln, MdClear as sn, MdAdd as Ye, MdOutlineCreate as Ft, MdExpandLess as Lt, MdExpandMore as Tn, MdInfo as Ot, MdCached as Pt, MdOutlineInfo as Mt, MdClose as zt, MdOutlineFilterAltOff as it, MdOutlineFilterAlt as lt, MdChevronRight as zn, MdArrowRight as Vt, MdOutlineArrowCircleLeft as jt, MdOutlineArrowCircleRight as Ut, MdOutlineChevronRight as _t, MdOutlineError as Ht } from "react-icons/md";
3
- import { inube as E, Stack as v, Divider as B, Icon as M, Text as $, SkeletonLine as J, useMediaQuery as te, Blanket as dn, Button as q, Grid as We, Toggle as cn, Checkbox as kn, Date as Fe, Box as qt, Tag as De, Tabs as st, SkeletonIcon as Bt, Fieldset as Ue, OptionList as Gt, Checkpicker as Yt, Label as Wt, OptionItem as Xt } from "@inubekit/inubekit";
4
- import w, { keyframes as An, ThemeContext as $n } from "styled-components";
5
- import { ValueDataType as j, ValueHowToSetUp as ee, DecisionConditionRender as rn, DecisionConditionRenderNew as Vn } from "@isettingkit/input";
6
- import { DecisionViewConditionRenderer as $e, DecisionViewConditionRendererNew as Ke } from "@isettingkit/view";
3
+ import { inube as S, Stack as v, Divider as G, Icon as j, Text as $, SkeletonLine as J, useMediaQuery as te, Blanket as dn, Button as B, Grid as We, Toggle as cn, Checkbox as kn, Date as Fe, Box as qt, Tag as Ee, Tabs as st, SkeletonIcon as Bt, Fieldset as Ue, OptionList as Gt, Checkpicker as Yt, Label as Wt, OptionItem as Xt } from "@inubekit/inubekit";
4
+ import C, { keyframes as An, ThemeContext as $n } from "styled-components";
5
+ import { ValueDataType as _, ValueHowToSetUp as ee, DecisionConditionRender as rn, DecisionConditionRenderNew as Vn } from "@isettingkit/input";
6
+ import { DecisionViewConditionRenderer as $e, DecisionViewConditionRendererNew as Ze } from "@isettingkit/view";
7
7
  import { createPortal as un } from "react-dom";
8
8
  import { useFormik as In } from "formik";
9
- import { string as le, mixed as Me, object as ne, number as se, lazy as Be, date as Le } from "yup";
10
- import V, { useState as z, useRef as Ie, useEffect as Ee, useContext as Rn, forwardRef as Qt, useMemo as dt, useCallback as Zt } from "react";
11
- import { Link as ct, useLocation as Kt } from "react-router-dom";
9
+ import { string as ie, mixed as Me, object as ne, number as le, lazy as Be, date as Le } from "yup";
10
+ import V, { useState as U, useRef as Ie, useEffect as ke, useContext as Rn, forwardRef as Qt, useMemo as dt, useCallback as Kt } from "react";
11
+ import { Link as ct, useLocation as Zt } from "react-router-dom";
12
12
  import Jt from "axios";
13
13
  import { franc as er } from "franc-min";
14
- const nr = w.div`
14
+ const nr = C.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) || E.palette.neutral.N30;
19
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
20
20
  }};
21
21
  box-sizing: border-box;
22
22
  display: flex;
@@ -27,7 +27,7 @@ const nr = w.div`
27
27
  height: 100%;
28
28
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
29
29
  `;
30
- w.div`
30
+ C.div`
31
31
  width: 100%;
32
32
  height: 100%;
33
33
  overflow-y: auto;
@@ -50,10 +50,10 @@ const Xe = (e) => {
50
50
  const { children: n, controls: t = !0, handleDelete: r, id: o } = e;
51
51
  return /* @__PURE__ */ a(nr, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "16px", padding: "12px 16px", children: [
52
52
  n,
53
- t && /* @__PURE__ */ m(O, { children: [
54
- /* @__PURE__ */ a(B, {}),
53
+ t && /* @__PURE__ */ m(z, { children: [
54
+ /* @__PURE__ */ a(G, {}),
55
55
  /* @__PURE__ */ a(v, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ a(
56
- M,
56
+ j,
57
57
  {
58
58
  cursorHover: !0,
59
59
  appearance: "danger",
@@ -81,16 +81,16 @@ const dr = {
81
81
  }, _e = (e) => {
82
82
  const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), r = dr[e == null ? void 0 : e.howToSetTheDecision] || tr;
83
83
  return t && r(n) || n || void 0;
84
- }, jn = w.div`
84
+ }, jn = C.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) || E.palette.neutral.N30;
90
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
91
91
  }};
92
92
  }
93
- `, Un = w.div`
93
+ `, Un = C.div`
94
94
  width: 100%;
95
95
  height: 100%;
96
96
  overflow-y: auto;
@@ -131,7 +131,7 @@ const dr = {
131
131
  type: "decision"
132
132
  }
133
133
  ) }, t.ruleName),
134
- /* @__PURE__ */ a(B, { dashed: !0 }),
134
+ /* @__PURE__ */ a(G, { dashed: !0 }),
135
135
  /* @__PURE__ */ a(Un, { children: /* @__PURE__ */ m(
136
136
  v,
137
137
  {
@@ -160,8 +160,8 @@ const dr = {
160
160
  )
161
161
  }
162
162
  ) }) }, u.conditionName)),
163
- p.length > 0 && /* @__PURE__ */ a(B, { dashed: !0 }),
164
- d && /* @__PURE__ */ a(O, { children: r && /* @__PURE__ */ a(
163
+ p.length > 0 && /* @__PURE__ */ a(G, { dashed: !0 }),
164
+ d && /* @__PURE__ */ a(z, { children: r && /* @__PURE__ */ a(
165
165
  $e,
166
166
  {
167
167
  element: r.element,
@@ -179,7 +179,7 @@ const dr = {
179
179
  /* @__PURE__ */ a(J, { animated: !0, width: "85px" })
180
180
  ] }, "loading"),
181
181
  /* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
182
- /* @__PURE__ */ a(B, { dashed: !0 }),
182
+ /* @__PURE__ */ a(G, { dashed: !0 }),
183
183
  /* @__PURE__ */ a(J, { animated: !0, width: "150px" })
184
184
  ] }),
185
185
  /* @__PURE__ */ a(Un, { children: /* @__PURE__ */ a(
@@ -212,7 +212,7 @@ const dr = {
212
212
  labelName: r == null ? void 0 : r.terms,
213
213
  value: String(n.effectiveFrom),
214
214
  howToSetTheDecision: ee.RANGE,
215
- decisionDataType: j.DATE
215
+ decisionDataType: _.DATE
216
216
  },
217
217
  valueData: _e({
218
218
  labelName: r == null ? void 0 : r.terms,
@@ -221,20 +221,20 @@ const dr = {
221
221
  to: String(n.validUntil)
222
222
  },
223
223
  howToSetTheDecision: ee.RANGE,
224
- decisionDataType: j.DATE
224
+ decisionDataType: _.DATE
225
225
  })
226
226
  } : o && !i ? {
227
227
  element: {
228
228
  labelName: r == null ? void 0 : r.terms,
229
229
  value: String(n.effectiveFrom),
230
230
  howToSetTheDecision: ee.EQUAL,
231
- decisionDataType: j.DATE
231
+ decisionDataType: _.DATE
232
232
  },
233
233
  valueData: _e({
234
234
  labelName: r == null ? void 0 : r.terms,
235
235
  value: String(n.effectiveFrom),
236
236
  howToSetTheDecision: ee.EQUAL,
237
- decisionDataType: j.DATE
237
+ decisionDataType: _.DATE
238
238
  })
239
239
  } : null, d = n ? {
240
240
  labelName: n.labelName || "",
@@ -258,15 +258,15 @@ const dr = {
258
258
  visibleConditions: l
259
259
  }
260
260
  );
261
- }, ur = w.div`
261
+ }, ur = C.div`
262
262
  position: relative;
263
263
  & > div {
264
264
  padding: 24px 16px;
265
265
  }
266
- `, pr = w.div`
266
+ `, pr = C.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) || E.palette.neutral.N0;
269
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || S.palette.neutral.N0;
270
270
  }};
271
271
  max-width: 450px;
272
272
  max-height: 90vh;
@@ -321,12 +321,12 @@ const dr = {
321
321
  transform: translateY(0);
322
322
  }
323
323
  `;
324
- w.div`
324
+ C.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) || E.palette.neutral.N30;
329
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
330
330
  }};
331
331
  box-sizing: border-box;
332
332
  display: flex;
@@ -335,21 +335,21 @@ w.div`
335
335
  height: 100%;
336
336
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
337
337
  `;
338
- w.div`
338
+ C.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) || E.palette.neutral.N30;
344
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
345
345
  }};
346
346
  }
347
347
  `;
348
- const pt = w.div`
348
+ const pt = C.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) || E.palette.neutral.N10;
352
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N10) || S.palette.neutral.N10;
353
353
  }};
354
354
  justify-content: center;
355
355
  }
@@ -358,18 +358,18 @@ const pt = w.div`
358
358
  height: 100%;
359
359
  padding-bottom: 12px;
360
360
  cursor: pointer;
361
- `, Qe = w.div`
361
+ `, Qe = C.div`
362
362
  width: 100%;
363
363
  height: 100%;
364
364
  & > div {
365
365
  animation: ${gr} 600ms ease-out;
366
366
  }
367
- `, hr = w.div`
367
+ `, hr = C.div`
368
368
  & > div > div {
369
369
  border-radius: 8px;
370
370
  box-sizing: border-box;
371
371
  }
372
- `, fr = w.div`
372
+ `, fr = C.div`
373
373
  & > div {
374
374
  width: 100%;
375
375
  height: 100%;
@@ -440,7 +440,7 @@ const pt = w.div`
440
440
  handleView: () => r ? r() : null,
441
441
  controls: !1,
442
442
  children: /* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
443
- /* @__PURE__ */ a(M, { appearance: "gray", icon: /* @__PURE__ */ a(Ye, {}), size: "35px" }),
443
+ /* @__PURE__ */ a(j, { appearance: "gray", icon: /* @__PURE__ */ a(Ye, {}), size: "35px" }),
444
444
  /* @__PURE__ */ a($, { appearance: "gray", type: "body", size: "large", children: i })
445
445
  ] })
446
446
  }
@@ -504,7 +504,7 @@ const pt = w.div`
504
504
  handleSubmitForm: g,
505
505
  handleDelete: h,
506
506
  terms: f = !0
507
- } = e, x = te("(max-width: 681px)"), y = te("(max-width: 400px)"), { renderedCards: D, shouldRenderAddCard: T } = xr({
507
+ } = e, x = te("(max-width: 681px)"), y = te("(max-width: 400px)"), { renderedCards: w, shouldRenderAddCard: T } = xr({
508
508
  controls: n,
509
509
  customTitleContentAddCard: t,
510
510
  decisions: o,
@@ -512,9 +512,9 @@ const pt = w.div`
512
512
  handleOpenModal: u,
513
513
  handleDelete: h,
514
514
  textValues: i
515
- }), S = (o == null ? void 0 : o.length) === 0 && !p;
516
- return /* @__PURE__ */ m(O, { children: [
517
- /* @__PURE__ */ a(hr, { children: /* @__PURE__ */ a(fr, { children: /* @__PURE__ */ a(v, { direction: "column", gap: "16px", padding: "6px", children: S ? /* @__PURE__ */ m(
515
+ }), E = (o == null ? void 0 : o.length) === 0 && !p;
516
+ return /* @__PURE__ */ m(z, { children: [
517
+ /* @__PURE__ */ a(hr, { children: /* @__PURE__ */ a(fr, { children: /* @__PURE__ */ a(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */ m(
518
518
  v,
519
519
  {
520
520
  direction: "column",
@@ -524,7 +524,7 @@ const pt = w.div`
524
524
  justifyContent: "center",
525
525
  alignItems: "center",
526
526
  children: [
527
- /* @__PURE__ */ a($, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(O, { children: [
527
+ /* @__PURE__ */ a($, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(z, { children: [
528
528
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
529
529
  /* @__PURE__ */ m(
530
530
  $,
@@ -544,7 +544,7 @@ const pt = w.div`
544
544
  "para empezar."
545
545
  ] }) }),
546
546
  /* @__PURE__ */ a(
547
- q,
547
+ B,
548
548
  {
549
549
  iconBefore: /* @__PURE__ */ a(Ye, {}),
550
550
  onClick: () => u ? u() : null,
@@ -566,7 +566,7 @@ const pt = w.div`
566
566
  padding: "6px",
567
567
  height: x ? "auto" : "484px",
568
568
  children: [
569
- D,
569
+ w,
570
570
  T && wn({
571
571
  type: "add",
572
572
  index: o == null ? void 0 : o.length,
@@ -577,7 +577,7 @@ const pt = w.div`
577
577
  handleOpenModal: u,
578
578
  handleDelete: h,
579
579
  textValues: i,
580
- shouldRenderEmptyMessage: S,
580
+ shouldRenderEmptyMessage: E,
581
581
  terms: f
582
582
  })
583
583
  ]
@@ -602,15 +602,15 @@ const pt = w.div`
602
602
  }
603
603
  )
604
604
  ] });
605
- }, Tr = w.div`
605
+ }, Tr = C.div`
606
606
  position: relative;
607
607
  & > div {
608
608
  padding: 24px 16px;
609
609
  }
610
- `, wr = w.div`
610
+ `, wr = C.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) || E.palette.neutral.N0;
613
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || S.palette.neutral.N0;
614
614
  }};
615
615
  max-width: 450px;
616
616
  max-height: 90vh;
@@ -665,12 +665,12 @@ const pt = w.div`
665
665
  transform: translateY(0);
666
666
  }
667
667
  `;
668
- w.div`
668
+ C.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) || E.palette.neutral.N30;
673
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
674
674
  }};
675
675
  box-sizing: border-box;
676
676
  display: flex;
@@ -679,21 +679,21 @@ w.div`
679
679
  height: 100%;
680
680
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
681
681
  `;
682
- w.div`
682
+ C.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) || E.palette.neutral.N30;
688
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
689
689
  }};
690
690
  }
691
691
  `;
692
- w.div`
692
+ C.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) || E.palette.neutral.N10;
696
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N10) || S.palette.neutral.N10;
697
697
  }};
698
698
  justify-content: center;
699
699
  }
@@ -703,19 +703,19 @@ w.div`
703
703
  padding-bottom: 12px;
704
704
  cursor: pointer;
705
705
  `;
706
- w.div`
706
+ C.div`
707
707
  width: 100%;
708
708
  height: 100%;
709
709
  & > div {
710
710
  animation: ${Dr} 600ms ease-out;
711
711
  }
712
712
  `;
713
- const Sr = w.div`
713
+ const Sr = C.div`
714
714
  & > div > div {
715
715
  border-radius: 8px;
716
716
  box-sizing: border-box;
717
717
  }
718
- `, Er = w.div`
718
+ `, Er = C.div`
719
719
  & > div {
720
720
  width: 100%;
721
721
  height: 100%;
@@ -762,16 +762,16 @@ const Sr = w.div`
762
762
  }, He = (e) => {
763
763
  const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), r = Or[e == null ? void 0 : e.howToSetTheDecision] || kr;
764
764
  return t && r(n) || n || void 0;
765
- }, _n = w.div`
765
+ }, _n = C.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) || E.palette.neutral.N30;
771
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
772
772
  }};
773
773
  }
774
- `, Hn = w.div`
774
+ `, Hn = C.div`
775
775
  width: 100%;
776
776
  height: 100%;
777
777
  overflow-y: auto;
@@ -812,7 +812,7 @@ const Sr = w.div`
812
812
  type: "decision"
813
813
  }
814
814
  ) }, t.ruleName),
815
- /* @__PURE__ */ a(B, { dashed: !0 }),
815
+ /* @__PURE__ */ a(G, { dashed: !0 }),
816
816
  /* @__PURE__ */ a(Hn, { children: /* @__PURE__ */ m(
817
817
  v,
818
818
  {
@@ -841,8 +841,8 @@ const Sr = w.div`
841
841
  )
842
842
  }
843
843
  ) }) }, u.conditionName)),
844
- p.length > 0 && /* @__PURE__ */ a(B, { dashed: !0 }),
845
- d && /* @__PURE__ */ a(O, { children: r && /* @__PURE__ */ a(
844
+ p.length > 0 && /* @__PURE__ */ a(G, { dashed: !0 }),
845
+ d && /* @__PURE__ */ a(z, { children: r && /* @__PURE__ */ a(
846
846
  $e,
847
847
  {
848
848
  element: r.element,
@@ -860,7 +860,7 @@ const Sr = w.div`
860
860
  /* @__PURE__ */ a(J, { animated: !0, width: "85px" })
861
861
  ] }, "loading"),
862
862
  /* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
863
- /* @__PURE__ */ a(B, { dashed: !0 }),
863
+ /* @__PURE__ */ a(G, { dashed: !0 }),
864
864
  /* @__PURE__ */ a(J, { animated: !0, width: "150px" })
865
865
  ] }),
866
866
  /* @__PURE__ */ a(Hn, { children: /* @__PURE__ */ a(
@@ -895,7 +895,7 @@ const Sr = w.div`
895
895
  labelName: r == null ? void 0 : r.terms,
896
896
  value: String(n.effectiveFrom),
897
897
  howToSetTheDecision: ee.RANGE,
898
- decisionDataType: j.DATE
898
+ decisionDataType: _.DATE
899
899
  },
900
900
  valueData: He({
901
901
  labelName: r == null ? void 0 : r.terms,
@@ -904,20 +904,20 @@ const Sr = w.div`
904
904
  to: String(n.validUntil)
905
905
  },
906
906
  howToSetTheDecision: ee.RANGE,
907
- decisionDataType: j.DATE
907
+ decisionDataType: _.DATE
908
908
  })
909
909
  } : o && !i ? {
910
910
  element: {
911
911
  labelName: r == null ? void 0 : r.terms,
912
912
  value: String(n.effectiveFrom),
913
913
  howToSetTheDecision: ee.EQUAL,
914
- decisionDataType: j.DATE
914
+ decisionDataType: _.DATE
915
915
  },
916
916
  valueData: He({
917
917
  labelName: r == null ? void 0 : r.terms,
918
918
  value: String(n.effectiveFrom),
919
919
  howToSetTheDecision: ee.EQUAL,
920
- decisionDataType: j.DATE
920
+ decisionDataType: _.DATE
921
921
  })
922
922
  } : null, d = n ? {
923
923
  labelName: n.labelName || "",
@@ -939,12 +939,12 @@ const Sr = w.div`
939
939
  visibleConditions: l
940
940
  }
941
941
  );
942
- }, jr = w.div`
942
+ }, jr = C.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) || E.palette.neutral.N30;
947
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
948
948
  }};
949
949
  box-sizing: border-box;
950
950
  display: flex;
@@ -955,7 +955,7 @@ const Sr = w.div`
955
955
  height: 100%;
956
956
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
957
957
  `;
958
- w.div`
958
+ C.div`
959
959
  width: 100%;
960
960
  height: 100%;
961
961
  overflow-y: auto;
@@ -978,10 +978,10 @@ const Ur = (e) => {
978
978
  const { children: n, controls: t = !0, handleDelete: r, id: o } = e;
979
979
  return /* @__PURE__ */ a(jr, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "16px", padding: "12px 16px", children: [
980
980
  n,
981
- t && /* @__PURE__ */ m(O, { children: [
982
- /* @__PURE__ */ a(B, {}),
981
+ t && /* @__PURE__ */ m(z, { children: [
982
+ /* @__PURE__ */ a(G, {}),
983
983
  /* @__PURE__ */ a(v, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ a(
984
- M,
984
+ j,
985
985
  {
986
986
  cursorHover: !0,
987
987
  appearance: "danger",
@@ -1037,7 +1037,7 @@ const Ur = (e) => {
1037
1037
  handleView: () => r ? r() : null,
1038
1038
  controls: !1,
1039
1039
  children: /* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
1040
- /* @__PURE__ */ a(M, { appearance: "gray", icon: /* @__PURE__ */ a(Ye, {}), size: "35px" }),
1040
+ /* @__PURE__ */ a(j, { appearance: "gray", icon: /* @__PURE__ */ a(Ye, {}), size: "35px" }),
1041
1041
  /* @__PURE__ */ a($, { appearance: "gray", type: "body", size: "large", children: i })
1042
1042
  ] })
1043
1043
  }
@@ -1053,7 +1053,7 @@ const Ur = (e) => {
1053
1053
  const { type: n } = e, t = qr[n];
1054
1054
  return t ? t(e) : null;
1055
1055
  }, Br = (e) => ({
1056
- schema: le().required("Requerido").test(
1056
+ schema: ie().required("Requerido").test(
1057
1057
  "non-empty",
1058
1058
  "El valor no puede estar vacío",
1059
1059
  (n) => n != null && n.trim() !== ""
@@ -1081,8 +1081,8 @@ const Ur = (e) => {
1081
1081
  const n = (e == null ? void 0 : e.from) ?? 0, t = (e == null ? void 0 : e.to) ?? 0;
1082
1082
  return {
1083
1083
  schema: ne({
1084
- from: se().required("El campo 'Rango desde' es requerido").max(t, "'Rango desde' no puede ser mayor que 'Rango hasta'").min(0, "'Rango desde' no puede ser menor que 0"),
1085
- to: se().min(0, "El campo 'Rango hasta' debe ser mayor o igual a 0").required("El campo 'Rango hasta' es requerido").test(
1084
+ from: le().required("El campo 'Rango desde' es requerido").max(t, "'Rango desde' no puede ser mayor que 'Rango hasta'").min(0, "'Rango desde' no puede ser menor que 0"),
1085
+ to: le().min(0, "El campo 'Rango hasta' debe ser mayor o igual a 0").required("El campo 'Rango hasta' es requerido").test(
1086
1086
  "is-greater",
1087
1087
  "El campo 'Rango hasta' debe ser mayor que 'Rango desde'",
1088
1088
  function(r) {
@@ -1093,11 +1093,11 @@ const Ur = (e) => {
1093
1093
  }),
1094
1094
  value: { from: n, to: t }
1095
1095
  };
1096
- }, mn = (e, n) => n === j.PERCENTAGE ? {
1097
- schema: se().required("El campo tipo porcentaje es requerido").min(0, "El campo tipo porcentaje no puede ser menor que 0").max(100, "El campo tipo porcentaje no puede ser mayor que 100"),
1096
+ }, mn = (e, n) => n === _.PERCENTAGE ? {
1097
+ schema: le().required("El campo tipo porcentaje es requerido").min(0, "El campo tipo porcentaje no puede ser menor que 0").max(100, "El campo tipo porcentaje no puede ser mayor que 100"),
1098
1098
  value: e
1099
1099
  } : {
1100
- schema: le().required("Requerido"),
1100
+ schema: ie().required("Requerido"),
1101
1101
  value: e
1102
1102
  }, Xr = {
1103
1103
  [A.LIST_OF_VALUES]: Gr,
@@ -1108,7 +1108,7 @@ const Ur = (e) => {
1108
1108
  [A.EQUAL]: mn
1109
1109
  }, Qr = (e) => Xr[e] || Br;
1110
1110
  var Ln = /* @__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))(Ln || {});
1111
- const nn = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Array.isArray(e) || e.length > 0), Zr = (e, n) => {
1111
+ const nn = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Array.isArray(e) || e.length > 0), Kr = (e, n) => {
1112
1112
  var d;
1113
1113
  const t = Object.entries((e == null ? void 0 : e.conditionsThatEstablishesTheDecision) ?? {}).filter(([, l]) => nn(l)).map(([l, p]) => ({ conditionName: l, value: p }));
1114
1114
  let r = [];
@@ -1127,7 +1127,7 @@ const nn = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Ar
1127
1127
  };
1128
1128
  });
1129
1129
  };
1130
- function Kr({
1130
+ function Zr({
1131
1131
  decision: e,
1132
1132
  onSubmitEvent: n,
1133
1133
  textValues: t
@@ -1135,7 +1135,7 @@ function Kr({
1135
1135
  var c, g;
1136
1136
  const r = ((c = e.conditionGroups[0]) == null ? void 0 : c.conditionsThatEstablishesTheDecision) ?? [], o = r.reduce((h, f) => (nn(f.value) && (h[f.conditionName] = f.value), h), {}), i = Object.keys(o).length > 0, s = {
1137
1137
  ruleName: e.ruleName || "",
1138
- decisionDataType: e.decisionDataType || j.ALPHABETICAL,
1138
+ decisionDataType: e.decisionDataType || _.ALPHABETICAL,
1139
1139
  howToSetTheDecision: e.howToSetTheDecision || "",
1140
1140
  value: e.value ?? "",
1141
1141
  effectiveFrom: e.effectiveFrom || "",
@@ -1151,7 +1151,7 @@ function Kr({
1151
1151
  };
1152
1152
  let d;
1153
1153
  const l = {
1154
- ruleName: le().required("El nombre de la regla es requerido"),
1154
+ ruleName: ie().required("El nombre de la regla es requerido"),
1155
1155
  value: Be(() => Qr(
1156
1156
  d.values.howToSetTheDecision
1157
1157
  )(
@@ -1165,9 +1165,9 @@ function Kr({
1165
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(D) {
1168
+ function(w) {
1169
1169
  const T = this.parent.effectiveFrom;
1170
- return !T || !D ? !0 : new Date(D) >= new Date(T);
1170
+ return !T || !w ? !0 : new Date(w) >= new Date(T);
1171
1171
  }
1172
1172
  ) : f.notRequired()
1173
1173
  ));
@@ -1177,8 +1177,8 @@ function Kr({
1177
1177
  validationSchema: p,
1178
1178
  validateOnBlur: !0,
1179
1179
  onSubmit: (h) => {
1180
- var D;
1181
- const f = ((D = e.conditionGroups) == null ? void 0 : D.ConditionGroupId) ?? "group-primary", x = h.toggleNone ? [] : Zr(h, r), y = {
1180
+ var w;
1181
+ const f = ((w = e.conditionGroups) == null ? void 0 : w.ConditionGroupId) ?? "group-primary", x = h.toggleNone ? [] : Kr(h, r), y = {
1182
1182
  ...e,
1183
1183
  ruleName: h.ruleName,
1184
1184
  decisionDataType: h.decisionDataType,
@@ -1210,16 +1210,16 @@ function Kr({
1210
1210
  });
1211
1211
  } };
1212
1212
  }
1213
- const Jr = w.div`
1213
+ const Jr = C.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) || E.palette.neutral.N30;
1219
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
1220
1220
  }};
1221
1221
  }
1222
- `, eo = w.div`
1222
+ `, eo = C.div`
1223
1223
  width: 100%;
1224
1224
  height: 100%;
1225
1225
  overflow-y: auto;
@@ -1245,8 +1245,8 @@ const Jr = w.div`
1245
1245
  labelToggle: i,
1246
1246
  name: s,
1247
1247
  valueToggle: d = ""
1248
- } = e, [l, p] = z(n);
1249
- return /* @__PURE__ */ m(O, { children: [
1248
+ } = e, [l, p] = U(n);
1249
+ return /* @__PURE__ */ m(z, { children: [
1250
1250
  /* @__PURE__ */ a(v, { children: /* @__PURE__ */ a(
1251
1251
  cn,
1252
1252
  {
@@ -1261,7 +1261,7 @@ const Jr = w.div`
1261
1261
  children: /* @__PURE__ */ a($, { size: "medium", type: "label", weight: "bold", as: "span", children: i })
1262
1262
  }
1263
1263
  ) }),
1264
- l && /* @__PURE__ */ a(O, { children: t })
1264
+ l && /* @__PURE__ */ a(z, { children: t })
1265
1265
  ] });
1266
1266
  }, to = (e) => {
1267
1267
  const {
@@ -1278,14 +1278,14 @@ const Jr = w.div`
1278
1278
  messageEnd: c = "",
1279
1279
  statusStart: g = "pending",
1280
1280
  statusEnd: h = "pending"
1281
- } = e, [f, x] = z(s), [y, D] = z(l), [T, S] = z(p), N = ({ target: k }) => {
1281
+ } = e, [f, x] = U(s), [y, w] = U(l), [T, E] = U(p), N = ({ target: k }) => {
1282
1282
  x(k.checked), r && r(k.checked);
1283
- }, C = (k) => {
1284
- D(k.target.value), n(k);
1283
+ }, D = (k) => {
1284
+ w(k.target.value), n(k);
1285
1285
  }, I = (k) => {
1286
- S(k.target.value), t(k);
1286
+ E(k.target.value), t(k);
1287
1287
  }, F = te("(max-width: 400px)");
1288
- return /* @__PURE__ */ m(O, { children: [
1288
+ return /* @__PURE__ */ m(z, { children: [
1289
1289
  /* @__PURE__ */ m(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
1290
1290
  /* @__PURE__ */ a(
1291
1291
  $,
@@ -1329,7 +1329,7 @@ const Jr = w.div`
1329
1329
  {
1330
1330
  id: "dateStart",
1331
1331
  label: o,
1332
- onChange: C,
1332
+ onChange: D,
1333
1333
  value: y,
1334
1334
  required: d,
1335
1335
  size: "compact",
@@ -1373,7 +1373,7 @@ const Jr = w.div`
1373
1373
  formik: n,
1374
1374
  isDecision: !0
1375
1375
  }),
1376
- /* @__PURE__ */ a(B, { dashed: !0 }),
1376
+ /* @__PURE__ */ a(G, { dashed: !0 }),
1377
1377
  /* @__PURE__ */ a(Jr, { children: /* @__PURE__ */ a(eo, { children: /* @__PURE__ */ m(
1378
1378
  v,
1379
1379
  {
@@ -1424,8 +1424,8 @@ const Jr = w.div`
1424
1424
  ]
1425
1425
  }
1426
1426
  ) }) }),
1427
- t.terms && /* @__PURE__ */ m(O, { children: [
1428
- /* @__PURE__ */ a(B, { dashed: !0 }),
1427
+ t.terms && /* @__PURE__ */ m(z, { children: [
1428
+ /* @__PURE__ */ a(G, { dashed: !0 }),
1429
1429
  /* @__PURE__ */ a(
1430
1430
  to,
1431
1431
  {
@@ -1446,16 +1446,16 @@ const Jr = w.div`
1446
1446
  }
1447
1447
  )
1448
1448
  ] }),
1449
- /* @__PURE__ */ a(B, {}),
1449
+ /* @__PURE__ */ a(G, {}),
1450
1450
  l && /* @__PURE__ */ 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
- /* @__PURE__ */ a(q, { appearance: "gray", onClick: r, children: t.cancel }),
1453
- /* @__PURE__ */ a(q, { type: "submit", children: t.confirm })
1452
+ /* @__PURE__ */ a(B, { appearance: "gray", onClick: r, children: t.cancel }),
1453
+ /* @__PURE__ */ a(B, { type: "submit", children: t.confirm })
1454
1454
  ] })
1455
1455
  ] }) });
1456
1456
  }, oo = (e) => {
1457
1457
  var h, f;
1458
- const { decision: n, onSubmitEvent: t, textValues: r, onCancel: o } = e, { formik: i, handleToggleNoneChange: s } = Kr({
1458
+ const { decision: n, onSubmitEvent: t, textValues: r, onCancel: o } = e, { formik: i, handleToggleNoneChange: s } = Zr({
1459
1459
  decision: n,
1460
1460
  onSubmitEvent: t,
1461
1461
  textValues: r
@@ -1478,8 +1478,8 @@ const Jr = w.div`
1478
1478
  visibleConditions: l,
1479
1479
  normalizedDecision: d,
1480
1480
  handleToggleNoneChange: s,
1481
- handleConditionToggleChange: (x, y) => (D) => {
1482
- if (!D)
1481
+ handleConditionToggleChange: (x, y) => (w) => {
1482
+ if (!w)
1483
1483
  i.setFieldValue(
1484
1484
  `conditionsThatEstablishesTheDecision.${x}`,
1485
1485
  void 0
@@ -1487,7 +1487,7 @@ const Jr = w.div`
1487
1487
  `conditionsThatEstablishesTheDecision.${x}`,
1488
1488
  !1,
1489
1489
  !1
1490
- ), Object.keys(i.touched).filter((S) => S.startsWith("conditionsThatEstablishesTheDecision.")).some((S) => i.touched[S] === !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
1492
  const T = y ? [] : "";
1493
1493
  s(!1), i.setFieldValue(
@@ -1550,7 +1550,7 @@ const Jr = w.div`
1550
1550
  handleSubmitForm: g,
1551
1551
  handleDelete: h,
1552
1552
  terms: f = !0
1553
- } = e, x = te("(max-width: 681px)"), y = te("(max-width: 400px)"), { renderedCards: D, shouldRenderAddCard: T } = ao({
1553
+ } = e, x = te("(max-width: 681px)"), y = te("(max-width: 400px)"), { renderedCards: w, shouldRenderAddCard: T } = ao({
1554
1554
  controls: n,
1555
1555
  customTitleContentAddCard: t,
1556
1556
  decisions: o,
@@ -1558,9 +1558,9 @@ const Jr = w.div`
1558
1558
  handleOpenModal: u,
1559
1559
  handleDelete: h,
1560
1560
  textValues: i
1561
- }), S = (o == null ? void 0 : o.length) === 0 && !p;
1562
- return /* @__PURE__ */ m(O, { children: [
1563
- /* @__PURE__ */ a(Sr, { children: /* @__PURE__ */ a(Er, { children: /* @__PURE__ */ a(v, { direction: "column", gap: "16px", padding: "6px", children: S ? /* @__PURE__ */ m(
1561
+ }), E = (o == null ? void 0 : o.length) === 0 && !p;
1562
+ return /* @__PURE__ */ m(z, { children: [
1563
+ /* @__PURE__ */ a(Sr, { children: /* @__PURE__ */ a(Er, { children: /* @__PURE__ */ a(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */ m(
1564
1564
  v,
1565
1565
  {
1566
1566
  direction: "column",
@@ -1570,7 +1570,7 @@ const Jr = w.div`
1570
1570
  justifyContent: "center",
1571
1571
  alignItems: "center",
1572
1572
  children: [
1573
- /* @__PURE__ */ a($, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(O, { children: [
1573
+ /* @__PURE__ */ a($, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(z, { children: [
1574
1574
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
1575
1575
  /* @__PURE__ */ m(
1576
1576
  $,
@@ -1590,7 +1590,7 @@ const Jr = w.div`
1590
1590
  "para empezar."
1591
1591
  ] }) }),
1592
1592
  /* @__PURE__ */ a(
1593
- q,
1593
+ B,
1594
1594
  {
1595
1595
  iconBefore: /* @__PURE__ */ a(Ye, {}),
1596
1596
  onClick: () => u ? u() : null,
@@ -1612,7 +1612,7 @@ const Jr = w.div`
1612
1612
  padding: "6px",
1613
1613
  height: x ? "auto" : "484px",
1614
1614
  children: [
1615
- D,
1615
+ w,
1616
1616
  T && Cn({
1617
1617
  type: "add",
1618
1618
  index: o == null ? void 0 : o.length,
@@ -1623,7 +1623,7 @@ const Jr = w.div`
1623
1623
  handleOpenModal: u,
1624
1624
  handleDelete: h,
1625
1625
  textValues: i,
1626
- shouldRenderEmptyMessage: S,
1626
+ shouldRenderEmptyMessage: E,
1627
1627
  terms: f
1628
1628
  })
1629
1629
  ]
@@ -1679,7 +1679,7 @@ const Jr = w.div`
1679
1679
  return n;
1680
1680
  }
1681
1681
  return typeof n == "object" && n !== null && !Array.isArray(n) ? (ho[e == null ? void 0 : e.howToSetTheDecision] || io)(n) : n || void 0;
1682
- }, fo = w.div`
1682
+ }, fo = C.div`
1683
1683
  display: flex;
1684
1684
  justify-content: ${({ $justifyContent: e }) => e};
1685
1685
  align-items: ${({ $alignItems: e }) => e};
@@ -1693,11 +1693,11 @@ const Jr = w.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) || E.palette.neutral.N10}` : `${((i = (o = n == null ? void 0 : n.palette) == null ? void 0 : o.neutral) == null ? void 0 : i.N0) || E.palette.neutral.N0}`;
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}`;
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) || E.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) || S.palette.neutral.N40}` : "none";
1701
1701
  }};
1702
1702
  border-radius: ${({ $borderRadius: e }) => e};
1703
1703
  box-sizing: ${({ $boxSizing: e }) => e};
@@ -1720,7 +1720,7 @@ const Jr = w.div`
1720
1720
  margin: f = "0px",
1721
1721
  padding: x = "0px",
1722
1722
  boxSizing: y,
1723
- scroll: D = !1
1723
+ scroll: w = !1
1724
1724
  } = e;
1725
1725
  return /* @__PURE__ */ a(
1726
1726
  fo,
@@ -1740,24 +1740,24 @@ const Jr = w.div`
1740
1740
  $padding: x,
1741
1741
  $borderRadius: g,
1742
1742
  $boxSizing: y,
1743
- $scroll: D,
1743
+ $scroll: w,
1744
1744
  children: t
1745
1745
  }
1746
1746
  );
1747
1747
  }
1748
1748
  );
1749
1749
  oe.displayName = "BorderStack";
1750
- w.div`
1750
+ C.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) || E.palette.neutral.N30;
1756
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
1757
1757
  }};
1758
1758
  }
1759
1759
  `;
1760
- w.div`
1760
+ C.div`
1761
1761
  width: 100%;
1762
1762
  height: 100%;
1763
1763
  overflow-y: auto;
@@ -1776,13 +1776,13 @@ w.div`
1776
1776
  border-radius: 8px;
1777
1777
  }
1778
1778
  `;
1779
- const mo = w.div`
1779
+ const mo = C.div`
1780
1780
  cursor: pointer;
1781
- `, bo = w.div`
1781
+ `, bo = C.div`
1782
1782
  & > div > div > div > p {
1783
1783
  text-wrap-mode: nowrap;
1784
1784
  }
1785
- `, vo = w.div`
1785
+ `, vo = C.div`
1786
1786
  & > div {
1787
1787
  justify-content: auto;
1788
1788
  gap: 8px;
@@ -1805,9 +1805,9 @@ const mo = w.div`
1805
1805
  onEdit: f,
1806
1806
  onDelete: x,
1807
1807
  tabs: y,
1808
- selectedTab: D,
1808
+ selectedTab: w,
1809
1809
  onTabChange: T,
1810
- currentConditions: S,
1810
+ currentConditions: E,
1811
1811
  hasMultipleGroups: N
1812
1812
  } = e;
1813
1813
  return i ? /* @__PURE__ */ m(v, { direction: "column", gap: "16px", children: [
@@ -1819,7 +1819,7 @@ const mo = w.div`
1819
1819
  children: [
1820
1820
  /* @__PURE__ */ m(v, { gap: "12px", children: [
1821
1821
  /* @__PURE__ */ a(bo, { children: /* @__PURE__ */ a(
1822
- De,
1822
+ Ee,
1823
1823
  {
1824
1824
  id: "tag",
1825
1825
  appearance: "gray",
@@ -1828,7 +1828,7 @@ const mo = w.div`
1828
1828
  }
1829
1829
  ) }),
1830
1830
  /* @__PURE__ */ a(vo, { children: /* @__PURE__ */ a(
1831
- Ke,
1831
+ Ze,
1832
1832
  {
1833
1833
  element: o,
1834
1834
  valueData: qe(
@@ -1839,34 +1839,34 @@ const mo = w.div`
1839
1839
  ) })
1840
1840
  ] }),
1841
1841
  /* @__PURE__ */ m(v, { gap: "12px", children: [
1842
- n && /* @__PURE__ */ m(O, { children: [
1842
+ n && /* @__PURE__ */ m(z, { children: [
1843
1843
  /* @__PURE__ */ a(
1844
- M,
1844
+ j,
1845
1845
  {
1846
1846
  appearance: "primary",
1847
1847
  icon: /* @__PURE__ */ a(Ft, {}),
1848
1848
  size: "24px",
1849
1849
  cursorHover: !0,
1850
- onClick: (C) => {
1851
- C.stopPropagation(), f == null || f();
1850
+ onClick: (D) => {
1851
+ D.stopPropagation(), f == null || f();
1852
1852
  }
1853
1853
  }
1854
1854
  ),
1855
1855
  /* @__PURE__ */ a(
1856
- M,
1856
+ j,
1857
1857
  {
1858
1858
  appearance: "danger",
1859
1859
  icon: /* @__PURE__ */ a(ln, {}),
1860
1860
  size: "24px",
1861
1861
  cursorHover: !0,
1862
- onClick: (C) => {
1863
- C.stopPropagation(), x == null || x();
1862
+ onClick: (D) => {
1863
+ D.stopPropagation(), x == null || x();
1864
1864
  }
1865
1865
  }
1866
1866
  )
1867
1867
  ] }),
1868
1868
  /* @__PURE__ */ a(
1869
- M,
1869
+ j,
1870
1870
  {
1871
1871
  appearance: "dark",
1872
1872
  icon: l ? /* @__PURE__ */ a(Lt, {}) : /* @__PURE__ */ a(Tn, {}),
@@ -1879,9 +1879,9 @@ const mo = w.div`
1879
1879
  },
1880
1880
  r.ruleName
1881
1881
  ) }),
1882
- l && /* @__PURE__ */ m(O, { children: [
1883
- /* @__PURE__ */ a(B, { dashed: !0 }),
1884
- N ? /* @__PURE__ */ a(st, { tabs: y, selectedTab: D, onChange: T }) : /* @__PURE__ */ a(
1882
+ l && /* @__PURE__ */ m(z, { children: [
1883
+ /* @__PURE__ */ a(G, { dashed: !0 }),
1884
+ N ? /* @__PURE__ */ a(st, { tabs: y, selectedTab: w, onChange: T }) : /* @__PURE__ */ a(
1885
1885
  $,
1886
1886
  {
1887
1887
  type: "label",
@@ -1900,7 +1900,7 @@ const mo = w.div`
1900
1900
  gap: "8px",
1901
1901
  justifyContent: t,
1902
1902
  children: [
1903
- S.map((C) => /* @__PURE__ */ a(
1903
+ E.map((D) => /* @__PURE__ */ a(
1904
1904
  oe,
1905
1905
  {
1906
1906
  direction: "column",
@@ -1908,16 +1908,16 @@ const mo = w.div`
1908
1908
  borderRadius: "8px",
1909
1909
  background: !0,
1910
1910
  children: /* @__PURE__ */ a(
1911
- Ke,
1911
+ Ze,
1912
1912
  {
1913
- element: { ...C, value: C.value },
1913
+ element: { ...D, value: D.value },
1914
1914
  valueData: qe(
1915
- C
1915
+ D
1916
1916
  )
1917
1917
  }
1918
1918
  )
1919
1919
  },
1920
- C.conditionName
1920
+ D.conditionName
1921
1921
  )),
1922
1922
  u && g && /* @__PURE__ */ a(
1923
1923
  oe,
@@ -1927,7 +1927,7 @@ const mo = w.div`
1927
1927
  borderRadius: "8px",
1928
1928
  background: !0,
1929
1929
  children: /* @__PURE__ */ a(
1930
- Ke,
1930
+ Ze,
1931
1931
  {
1932
1932
  element: g.element,
1933
1933
  valueData: g.valueData
@@ -1944,7 +1944,7 @@ const mo = w.div`
1944
1944
  borderRadius: "8px",
1945
1945
  background: !0,
1946
1946
  children: /* @__PURE__ */ a(
1947
- Ke,
1947
+ Ze,
1948
1948
  {
1949
1949
  element: h.element,
1950
1950
  valueData: h.valueData
@@ -1997,7 +1997,7 @@ const mo = w.div`
1997
1997
  }, ht = (e, n) => Object.fromEntries(
1998
1998
  Object.entries(e).map(([t, r]) => [t, r.filter(n)])
1999
1999
  ), Bn = (e, n) => e === "group-primary" ? "Condición principal" : `Condición alterna N° ${String(n).padStart(2, "0")}`, ft = (e) => {
2000
- var be;
2000
+ var he, fe, me;
2001
2001
  const {
2002
2002
  decision: n,
2003
2003
  loading: t = !1,
@@ -2013,58 +2013,68 @@ const mo = w.div`
2013
2013
  labelName: r == null ? void 0 : r.effectiveFrom,
2014
2014
  value: String(n.effectiveFrom),
2015
2015
  howToSetTheDecision: ee.EQUAL,
2016
- decisionDataType: j.DATE
2016
+ decisionDataType: _.DATE
2017
2017
  },
2018
2018
  valueData: qe({
2019
2019
  labelName: r == null ? void 0 : r.effectiveFrom,
2020
2020
  value: String(n.effectiveFrom),
2021
2021
  howToSetTheDecision: ee.EQUAL,
2022
- decisionDataType: j.DATE
2022
+ decisionDataType: _.DATE
2023
2023
  })
2024
2024
  } : null, h = c ? {
2025
2025
  element: {
2026
2026
  labelName: r == null ? void 0 : r.validUntil,
2027
2027
  value: n.validUntil instanceof Date ? n.validUntil.toISOString() : n.validUntil,
2028
2028
  howToSetTheDecision: ee.EQUAL,
2029
- decisionDataType: j.DATE
2029
+ decisionDataType: _.DATE
2030
2030
  },
2031
2031
  valueData: qe({
2032
2032
  labelName: r == null ? void 0 : r.validUntil,
2033
2033
  value: n.validUntil instanceof Date ? n.validUntil.toISOString() : n.validUntil,
2034
2034
  howToSetTheDecision: ee.EQUAL,
2035
- decisionDataType: j.DATE
2035
+ decisionDataType: _.DATE
2036
2036
  })
2037
2037
  } : null, f = n ? {
2038
2038
  labelName: n.labelName || "",
2039
- decisionDataType: n.decisionDataType || j.ALPHABETICAL,
2039
+ decisionDataType: n.decisionDataType || _.ALPHABETICAL,
2040
2040
  value: qe(n),
2041
2041
  howToSetTheDecision: n.howToSetTheDecision || ee.EQUAL
2042
- } : null, x = n ? Oe(n) : {}, y = ht(x, (P) => !P.hidden), D = Object.keys(y), T = [
2043
- ...D.filter((P) => P === "group-primary"),
2044
- ...D.filter((P) => P !== "group-primary")
2045
- ], S = {};
2046
- let N = 1;
2047
- const C = T.map((P) => {
2048
- const de = P === "group-primary" ? "mainCondition" : `alternateCondition-${N++}`;
2049
- return S[de] = P, {
2050
- id: de,
2051
- label: P === "group-primary" ? Bn(P, 0) : Bn(P, Number(de.split("-").at(-1))),
2042
+ } : null, x = n ? Oe(n) : {}, y = ((fe = (he = n == null ? void 0 : n.conditionGroups) == null ? void 0 : he.map(
2043
+ (L) => L == null ? void 0 : L.ConditionGroupId
2044
+ )) == null ? void 0 : fe.filter(Boolean)) || Object.keys(x), w = y[0] || "group-primary", T = V.useMemo(() => {
2045
+ const L = {}, O = x[w] || [], M = x["group-primary"] || [];
2046
+ L["group-primary"] = w === "group-primary" ? M : [...O, ...M];
2047
+ for (const P of y)
2048
+ !P || P === w || P !== "group-primary" && x[P] && (L[P] = x[P]);
2049
+ for (const P of Object.keys(x))
2050
+ P === "group-primary" || P === w || P in L || (L[P] = x[P]);
2051
+ return L;
2052
+ }, [x, w, y]), E = ht(T, (L) => !L.hidden), N = V.useMemo(() => {
2053
+ const L = ["group-primary", ...Object.keys(T).filter((O) => O !== "group-primary")];
2054
+ return Array.from(new Set(L));
2055
+ }, [T]), D = {};
2056
+ let I = 1;
2057
+ const F = N.map((L) => {
2058
+ const O = L === "group-primary" ? "mainCondition" : `alternateCondition-${I++}`;
2059
+ return D[O] = L, {
2060
+ id: O,
2061
+ label: L === "group-primary" ? Bn(L, 0) : Bn(L, Number(O.split("-").at(-1))),
2052
2062
  isDisabled: !1
2053
2063
  };
2054
- }), [I, F] = V.useState(
2055
- ((be = C[0]) == null ? void 0 : be.id) ?? "mainCondition"
2056
- ), k = (P) => F(P), _ = S[I] ?? "group-primary", ae = y[_] ?? [], he = T.length > 1, fe = Array.from({ length: 5 }), pe = !!(!t && n && r && f), ie = ae.length < 2 ? "start" : "space-between", me = `N° ${String((o ?? 0) + 1).padStart(2, "0")}`;
2064
+ }), [k, H] = V.useState(
2065
+ ((me = F[0]) == null ? void 0 : me.id) ?? "mainCondition"
2066
+ ), se = (L) => H(L), ve = D[k] ?? "group-primary", pe = E[ve] ?? [], ge = N.length > 1, ae = Array.from({ length: 5 }), ye = !!(!t && n && r && f), Se = pe.length < 2 ? "start" : "space-between", de = `N° ${String((o ?? 0) + 1).padStart(2, "0")}`;
2057
2067
  return /* @__PURE__ */ a(
2058
2068
  yo,
2059
2069
  {
2060
- conditionsAlignment: ie,
2070
+ conditionsAlignment: Se,
2061
2071
  controls: p,
2062
2072
  decision: n,
2063
2073
  decisionMapper: f,
2064
- loading: pe,
2065
- skeleton: fe,
2074
+ loading: ye,
2075
+ skeleton: ae,
2066
2076
  textValues: r,
2067
- tagLabel: me,
2077
+ tagLabel: de,
2068
2078
  isOpen: i,
2069
2079
  onToggle: s,
2070
2080
  hasEffectiveFrom: u,
@@ -2073,11 +2083,11 @@ const mo = w.div`
2073
2083
  validUntilRenderer: h,
2074
2084
  onEdit: d,
2075
2085
  onDelete: l,
2076
- tabs: C,
2077
- selectedTab: I,
2078
- onTabChange: k,
2079
- currentConditions: ae,
2080
- hasMultipleGroups: he
2086
+ tabs: F,
2087
+ selectedTab: k,
2088
+ onTabChange: se,
2089
+ currentConditions: pe,
2090
+ hasMultipleGroups: ge
2081
2091
  }
2082
2092
  );
2083
2093
  }, xo = An`
@@ -2090,12 +2100,12 @@ const mo = w.div`
2090
2100
  transform: translateY(0);
2091
2101
  }
2092
2102
  `;
2093
- w.div`
2103
+ C.div`
2094
2104
  border-radius: 8px;
2095
2105
  border: 1px solid
2096
2106
  ${({ theme: e }) => {
2097
2107
  var n, t;
2098
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || E.palette.neutral.N30;
2108
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
2099
2109
  }};
2100
2110
  box-sizing: border-box;
2101
2111
  display: flex;
@@ -2104,37 +2114,37 @@ w.div`
2104
2114
  height: 100%;
2105
2115
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
2106
2116
  `;
2107
- w.div`
2117
+ C.div`
2108
2118
  & > div {
2109
2119
  border-radius: 8px;
2110
2120
  border: 1px solid
2111
2121
  ${({ theme: e }) => {
2112
2122
  var n, t;
2113
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || E.palette.neutral.N30;
2123
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
2114
2124
  }};
2115
2125
  }
2116
2126
  `;
2117
- const To = w.div`
2127
+ const To = C.div`
2118
2128
  & > div {
2119
2129
  box-shadow: 0px 2px 3px 0px
2120
2130
  ${({ theme: e }) => {
2121
2131
  var n, t;
2122
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutralAlpha) == null ? void 0 : t.N30A) || E.palette.neutralAlpha.N30A;
2132
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutralAlpha) == null ? void 0 : t.N30A) || S.palette.neutralAlpha.N30A;
2123
2133
  }};
2124
2134
  cursor: pointer;
2125
2135
  }
2126
- `, wo = w.div`
2136
+ `, wo = C.div`
2127
2137
  width: 100%;
2128
2138
  height: 100%;
2129
2139
  & > div {
2130
2140
  animation: ${xo} 600ms ease-out;
2131
2141
  }
2132
- `, Co = w.div`
2142
+ `, Co = C.div`
2133
2143
  & > div > div {
2134
2144
  border-radius: 8px;
2135
2145
  box-sizing: border-box;
2136
2146
  }
2137
- `, Do = w.div`
2147
+ `, Do = C.div`
2138
2148
  & > div {
2139
2149
  width: 100%;
2140
2150
  height: 100%;
@@ -2229,7 +2239,7 @@ const To = w.div`
2229
2239
  children: [
2230
2240
  /* @__PURE__ */ a($, { appearance: "gray", type: "label", size: "large", weight: "bold", children: n || "Agregar decisión" }),
2231
2241
  /* @__PURE__ */ a(
2232
- M,
2242
+ j,
2233
2243
  {
2234
2244
  appearance: "gray",
2235
2245
  icon: /* @__PURE__ */ a(Ye, {}),
@@ -2289,16 +2299,16 @@ const To = w.div`
2289
2299
  })
2290
2300
  ), c = ((r == null ? void 0 : r.length) === 0 || r.length < Math.floor(window.innerWidth / 300)) && !o && n;
2291
2301
  return { renderedCards: u, shouldRenderAddCard: c };
2292
- }, $o = w.div`
2302
+ }, $o = C.div`
2293
2303
  position: relative;
2294
2304
  & > div {
2295
2305
  padding: 24px 16px;
2296
2306
  place-items: unset;
2297
2307
  }
2298
- `, Io = w.div`
2308
+ `, Io = C.div`
2299
2309
  background-color: ${({ theme: e }) => {
2300
2310
  var n, t;
2301
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || E.palette.neutral.N0;
2311
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || S.palette.neutral.N0;
2302
2312
  }};
2303
2313
  max-height: 90vh;
2304
2314
  width: 100%;
@@ -2353,14 +2363,14 @@ const To = w.div`
2353
2363
  ] }),
2354
2364
  /* @__PURE__ */ a(sn, { size: "24px", cursor: "pointer", onClick: o })
2355
2365
  ] }),
2356
- /* @__PURE__ */ a(B, { dashed: !0 })
2366
+ /* @__PURE__ */ a(G, { dashed: !0 })
2357
2367
  ] }),
2358
2368
  n
2359
2369
  ] }) }) }) }),
2360
2370
  s
2361
2371
  );
2362
2372
  }, Fo = (e) => ({
2363
- schema: le().required("Requerido").test(
2373
+ schema: ie().required("Requerido").test(
2364
2374
  "non-empty",
2365
2375
  "El valor no puede estar vacío",
2366
2376
  (n) => n != null && n.trim() !== ""
@@ -2388,8 +2398,8 @@ const To = w.div`
2388
2398
  const n = (e == null ? void 0 : e.from) ?? 0, t = (e == null ? void 0 : e.to) ?? 0;
2389
2399
  return {
2390
2400
  schema: ne({
2391
- from: se().required("El campo de tipo rango es requerido").max(t, "El rango desde no puede ser mayor al rango hasta").min(0, "El rango desde no puede ser menor a 0"),
2392
- to: se().min(0, "El rengo hasta debe ser mayor o igual a 0").required("El rango hasta es requerido").test(
2401
+ from: le().required("El campo de tipo rango es requerido").max(t, "El rango desde no puede ser mayor al rango hasta").min(0, "El rango desde no puede ser menor a 0"),
2402
+ to: le().min(0, "El rengo hasta debe ser mayor o igual a 0").required("El rango hasta es requerido").test(
2393
2403
  "is-greater",
2394
2404
  "El rengo hasta debe ser mayor a el rango desde",
2395
2405
  function(r) {
@@ -2403,25 +2413,25 @@ const To = w.div`
2403
2413
  }, bn = (e, n) => {
2404
2414
  if (typeof e == "object" && e !== null && "from" in e && "to" in e) {
2405
2415
  const t = e;
2406
- return n === j.PERCENTAGE ? {
2416
+ return n === _.PERCENTAGE ? {
2407
2417
  schema: ne({
2408
- from: se().required("El campo desde es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100"),
2409
- to: se().required("El campo hasta es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100")
2418
+ from: le().required("El campo desde es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100"),
2419
+ to: le().required("El campo hasta es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100")
2410
2420
  }),
2411
2421
  value: t
2412
2422
  } : {
2413
2423
  schema: ne({
2414
- from: le().required("Requerido"),
2415
- to: le().required("Requerido")
2424
+ from: ie().required("Requerido"),
2425
+ to: ie().required("Requerido")
2416
2426
  }),
2417
2427
  value: t
2418
2428
  };
2419
2429
  }
2420
- return n === j.PERCENTAGE ? {
2421
- schema: se().required("El campo porcentaje es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100"),
2430
+ return n === _.PERCENTAGE ? {
2431
+ schema: le().required("El campo porcentaje es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100"),
2422
2432
  value: e
2423
2433
  } : {
2424
- schema: le().required("Requerido"),
2434
+ schema: ie().required("Requerido"),
2425
2435
  value: e
2426
2436
  };
2427
2437
  }, Mo = {
@@ -2432,7 +2442,7 @@ const To = w.div`
2432
2442
  [A.LESS_THAN]: bn,
2433
2443
  [A.EQUAL]: bn
2434
2444
  }, Gn = (e) => Mo[e] || Fo;
2435
- var ge = /* @__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))(ge || {});
2445
+ var be = /* @__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))(be || {});
2436
2446
  function zo({
2437
2447
  decision: e,
2438
2448
  onSubmitEvent: n,
@@ -2440,7 +2450,7 @@ function zo({
2440
2450
  }) {
2441
2451
  const r = Oe(e) || {}, o = () => Object.values(r).flat(), i = {
2442
2452
  ruleName: e.ruleName || "",
2443
- decisionDataType: e.decisionDataType || j.ALPHABETICAL,
2453
+ decisionDataType: e.decisionDataType || _.ALPHABETICAL,
2444
2454
  howToSetTheDecision: e.howToSetTheDecision || "",
2445
2455
  value: e.value || "",
2446
2456
  effectiveFrom: e.effectiveFrom || "",
@@ -2452,7 +2462,7 @@ function zo({
2452
2462
  };
2453
2463
  let s;
2454
2464
  const d = {
2455
- ruleName: le().required("El nombre de la decision es requerido"),
2465
+ ruleName: ie().required("El nombre de la decision es requerido"),
2456
2466
  value: Be(() => Gn(
2457
2467
  s.values.howToSetTheDecision
2458
2468
  )(
@@ -2465,10 +2475,10 @@ function zo({
2465
2475
  (x, y) => {
2466
2476
  var T;
2467
2477
  if (((T = s.values.conditionsThatEstablishesTheDecision) == null ? void 0 : T[y.conditionName]) !== void 0) {
2468
- const S = Gn(
2478
+ const E = Gn(
2469
2479
  y.howToSetTheCondition
2470
2480
  );
2471
- x[y.conditionName] = S(
2481
+ x[y.conditionName] = E(
2472
2482
  y.value,
2473
2483
  y.conditionDataType
2474
2484
  ).schema;
@@ -2507,15 +2517,15 @@ function zo({
2507
2517
  onSubmit: (u) => {
2508
2518
  const c = Object.fromEntries(
2509
2519
  Object.entries(r).map(([h, f]) => {
2510
- const y = f.filter((D) => {
2511
- var S;
2512
- const T = (S = u.conditionsThatEstablishesTheDecision) == null ? void 0 : S[D.conditionName];
2520
+ const y = f.filter((w) => {
2521
+ var E;
2522
+ const T = (E = u.conditionsThatEstablishesTheDecision) == null ? void 0 : E[w.conditionName];
2513
2523
  return T != null && T !== "";
2514
- }).map((D) => {
2524
+ }).map((w) => {
2515
2525
  var T;
2516
2526
  return {
2517
- ...D,
2518
- value: (T = u.conditionsThatEstablishesTheDecision) == null ? void 0 : T[D.conditionName]
2527
+ ...w,
2528
+ value: (T = u.conditionsThatEstablishesTheDecision) == null ? void 0 : T[w.conditionName]
2519
2529
  };
2520
2530
  });
2521
2531
  return [h, y];
@@ -2540,7 +2550,7 @@ function zo({
2540
2550
  void 0
2541
2551
  );
2542
2552
  else {
2543
- const h = g.howToSetTheCondition === ge.LIST_OF_VALUES_MULTI ? [] : "";
2553
+ const h = g.howToSetTheCondition === be.LIST_OF_VALUES_MULTI ? [] : "";
2544
2554
  s.setFieldValue(
2545
2555
  `conditionsThatEstablishesTheDecision.${g.conditionName}`,
2546
2556
  h
@@ -2549,17 +2559,17 @@ function zo({
2549
2559
  });
2550
2560
  } };
2551
2561
  }
2552
- w.div`
2562
+ C.div`
2553
2563
  & > div {
2554
2564
  border-radius: 8px;
2555
2565
  border: 1px solid
2556
2566
  ${({ theme: e }) => {
2557
2567
  var n, t;
2558
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || E.palette.neutral.N30;
2568
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
2559
2569
  }};
2560
2570
  }
2561
2571
  `;
2562
- w.div`
2572
+ C.div`
2563
2573
  width: 100%;
2564
2574
  height: 100%;
2565
2575
  overflow-y: auto;
@@ -2577,7 +2587,7 @@ w.div`
2577
2587
  border-radius: 8px;
2578
2588
  }
2579
2589
  `;
2580
- const Vo = w.div`
2590
+ const Vo = C.div`
2581
2591
  display: flex;
2582
2592
  width: -webkit-fill-available;
2583
2593
  & > div {
@@ -2601,12 +2611,12 @@ const Vo = w.div`
2601
2611
  messageEnd: c = "",
2602
2612
  statusStart: g = "pending",
2603
2613
  statusEnd: h = "pending"
2604
- } = e, [f, x] = z(s), [y, D] = z(l), [T, S] = z(p), N = ({ target: k }) => {
2614
+ } = e, [f, x] = U(s), [y, w] = U(l), [T, E] = U(p), N = ({ target: k }) => {
2605
2615
  x(k.checked), r && r(k.checked);
2606
- }, C = (k) => {
2607
- D(k.target.value), n(k);
2616
+ }, D = (k) => {
2617
+ w(k.target.value), n(k);
2608
2618
  }, I = (k) => {
2609
- S(k.target.value), t(k);
2619
+ E(k.target.value), t(k);
2610
2620
  }, F = te("(max-width: 400px)");
2611
2621
  return /* @__PURE__ */ m(v, { direction: "column", width: "100%", gap: "20px", children: [
2612
2622
  /* @__PURE__ */ m(v, { justifyContent: "space-between", children: [
@@ -2633,7 +2643,7 @@ const Vo = w.div`
2633
2643
  {
2634
2644
  id: "dateStart",
2635
2645
  label: o,
2636
- onChange: C,
2646
+ onChange: D,
2637
2647
  value: y,
2638
2648
  required: d,
2639
2649
  size: "compact",
@@ -2678,10 +2688,10 @@ const Vo = w.div`
2678
2688
  portalId: f,
2679
2689
  showRedefineConfirm: x,
2680
2690
  onOpenRedefineConfirm: y,
2681
- onCloseRedefineConfirm: D,
2691
+ onCloseRedefineConfirm: w,
2682
2692
  onConfirmRedefine: T
2683
2693
  } = e;
2684
- return /* @__PURE__ */ m(O, { children: [
2694
+ return /* @__PURE__ */ m(z, { children: [
2685
2695
  /* @__PURE__ */ a("form", { onSubmit: o.handleSubmit, children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", width: "100%", children: [
2686
2696
  /* @__PURE__ */ a(Ue, { legend: "Decisión N° 01", spacing: "wide", children: /* @__PURE__ */ a(v, { justifyContent: "center", width: "-webkit-fill-available", children: Vn({
2687
2697
  condition: i,
@@ -2699,7 +2709,7 @@ const Vo = w.div`
2699
2709
  ),
2700
2710
  /* @__PURE__ */ m(v, { justifyContent: "flex-end", alignItems: "center", children: [
2701
2711
  /* @__PURE__ */ a(
2702
- M,
2712
+ j,
2703
2713
  {
2704
2714
  icon: /* @__PURE__ */ a(Ot, {}),
2705
2715
  appearance: "help",
@@ -2708,7 +2718,7 @@ const Vo = w.div`
2708
2718
  }
2709
2719
  ),
2710
2720
  /* @__PURE__ */ a(
2711
- q,
2721
+ B,
2712
2722
  {
2713
2723
  type: "button",
2714
2724
  iconBefore: /* @__PURE__ */ a(Pt, {}),
@@ -2720,7 +2730,7 @@ const Vo = w.div`
2720
2730
  }
2721
2731
  )
2722
2732
  ] }),
2723
- /* @__PURE__ */ a(v, { direction: "column", gap: "20px", children: r == null ? void 0 : r.map((S) => /* @__PURE__ */ m(
2733
+ /* @__PURE__ */ a(v, { direction: "column", gap: "20px", children: r == null ? void 0 : r.map((E) => /* @__PURE__ */ m(
2724
2734
  v,
2725
2735
  {
2726
2736
  gap: "16px",
@@ -2729,22 +2739,22 @@ const Vo = w.div`
2729
2739
  /* @__PURE__ */ a(Vo, { children: /* @__PURE__ */ a(
2730
2740
  Vn,
2731
2741
  {
2732
- condition: S,
2742
+ condition: E,
2733
2743
  formik: o
2734
2744
  }
2735
2745
  ) }),
2736
2746
  /* @__PURE__ */ a(
2737
- M,
2747
+ j,
2738
2748
  {
2739
2749
  icon: /* @__PURE__ */ a(ln, {}),
2740
2750
  appearance: "danger",
2741
2751
  cursorHover: !0,
2742
- onClick: () => d(S.conditionName)
2752
+ onClick: () => d(E.conditionName)
2743
2753
  }
2744
2754
  )
2745
2755
  ]
2746
2756
  },
2747
- S.conditionName
2757
+ E.conditionName
2748
2758
  )) }),
2749
2759
  p && /* @__PURE__ */ a($, { type: "label", size: "medium", appearance: "danger", children: t ?? "Existen errores en el formulario, por favor revísalos." })
2750
2760
  ] }) }),
@@ -2759,17 +2769,17 @@ const Vo = w.div`
2759
2769
  messageEnd: o.errors.validUntil,
2760
2770
  statusStart: g,
2761
2771
  statusEnd: c,
2762
- onHandleStartChange: (S) => o.setFieldValue("effectiveFrom", S.target.value),
2763
- onHandleEndChange: (S) => o.setFieldValue("validUntil", S.target.value),
2764
- onCheckClosedChange: (S) => {
2765
- o.setFieldValue("checkClosed", S), S && o.setFieldValue("validUntil", "");
2772
+ onHandleStartChange: (E) => o.setFieldValue("effectiveFrom", E.target.value),
2773
+ onHandleEndChange: (E) => o.setFieldValue("validUntil", E.target.value),
2774
+ onCheckClosedChange: (E) => {
2775
+ o.setFieldValue("checkClosed", E), E && o.setFieldValue("validUntil", "");
2766
2776
  },
2767
2777
  checkedClosed: o.values.checkClosed
2768
2778
  }
2769
2779
  ) }),
2770
2780
  /* @__PURE__ */ m(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
2771
- /* @__PURE__ */ a(q, { appearance: "gray", onClick: s, variant: "outlined", children: h.cancel }),
2772
- /* @__PURE__ */ a(q, { type: "submit", children: h.confirm })
2781
+ /* @__PURE__ */ a(B, { appearance: "gray", onClick: s, variant: "outlined", children: h.cancel }),
2782
+ /* @__PURE__ */ a(B, { type: "submit", children: h.confirm })
2773
2783
  ] })
2774
2784
  ] }) }),
2775
2785
  x && f && /* @__PURE__ */ a(
@@ -2777,22 +2787,22 @@ const Vo = w.div`
2777
2787
  {
2778
2788
  portalId: f,
2779
2789
  title: "Redefinir la condición",
2780
- onCloseModal: D,
2790
+ onCloseModal: w,
2781
2791
  children: /* @__PURE__ */ m(v, { direction: "column", gap: "16px", children: [
2782
2792
  /* @__PURE__ */ 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 ." }),
2783
2793
  /* @__PURE__ */ m(v, { justifyContent: "end", gap: "12px", children: [
2784
2794
  /* @__PURE__ */ a(
2785
- q,
2795
+ B,
2786
2796
  {
2787
2797
  type: "button",
2788
2798
  appearance: "gray",
2789
2799
  variant: "outlined",
2790
- onClick: D,
2800
+ onClick: w,
2791
2801
  cursorHover: !0,
2792
2802
  children: "Cancelar"
2793
2803
  }
2794
2804
  ),
2795
- /* @__PURE__ */ a(q, { type: "button", onClick: T, cursorHover: !0, children: "Confirmar" })
2805
+ /* @__PURE__ */ a(B, { type: "button", onClick: T, cursorHover: !0, children: "Confirmar" })
2796
2806
  ] })
2797
2807
  ] })
2798
2808
  }
@@ -2850,19 +2860,19 @@ function Qo(e) {
2850
2860
  return "sea";
2851
2861
  }
2852
2862
  }
2853
- const Zo = (e) => {
2863
+ const Ko = (e) => {
2854
2864
  if (typeof e == "string") {
2855
2865
  const n = e.toLowerCase();
2856
- if (n.includes("equal")) return ge.EQUAL;
2857
- if (n.includes("greater")) return ge.GREATER_THAN;
2858
- if (n.includes("less")) return ge.LESS_THAN;
2859
- if (n.includes("range") || n.includes("between")) return ge.RANGE;
2860
- if (n.includes("multi")) return ge.LIST_OF_VALUES_MULTI;
2866
+ if (n.includes("equal")) return be.EQUAL;
2867
+ if (n.includes("greater")) return be.GREATER_THAN;
2868
+ if (n.includes("less")) return be.LESS_THAN;
2869
+ if (n.includes("range") || n.includes("between")) return be.RANGE;
2870
+ if (n.includes("multi")) return be.LIST_OF_VALUES_MULTI;
2861
2871
  if (n.includes("list_of_values") || n.includes("among") || n.includes("in"))
2862
- return ge.LIST_OF_VALUES;
2872
+ return be.LIST_OF_VALUES;
2863
2873
  }
2864
- return e ?? ge.EQUAL;
2865
- }, Yn = (e, n) => e === "group-primary" ? "Condición principal" : `Condición alterna N° ${String(n).padStart(2, "0")}`, Ko = (e) => {
2874
+ return e ?? be.EQUAL;
2875
+ }, Yn = (e, n) => e === "group-primary" ? "Condición principal" : `Condición alterna N° ${String(n).padStart(2, "0")}`, Zo = (e) => {
2866
2876
  var Ve;
2867
2877
  const {
2868
2878
  decision: n,
@@ -2883,111 +2893,111 @@ const Zo = (e) => {
2883
2893
  ...f.filter((R) => R === "group-primary"),
2884
2894
  ...f.filter((R) => R !== "group-primary")
2885
2895
  ], y = {};
2886
- let D = 1;
2896
+ let w = 1;
2887
2897
  const T = x.map((R) => {
2888
- const H = R === "group-primary" ? "mainCondition" : `alternateCondition-${D++}`;
2889
- return y[H] = R, {
2890
- id: H,
2891
- label: R === "group-primary" ? Yn(R, 0) : Yn(R, Number(H.split("-").at(-1))),
2898
+ const q = R === "group-primary" ? "mainCondition" : `alternateCondition-${w++}`;
2899
+ return y[q] = R, {
2900
+ id: q,
2901
+ label: R === "group-primary" ? Yn(R, 0) : Yn(R, Number(q.split("-").at(-1))),
2892
2902
  isDisabled: !1
2893
2903
  };
2894
- }), [S, N] = V.useState(
2904
+ }), [E, N] = V.useState(
2895
2905
  ((Ve = T[0]) == null ? void 0 : Ve.id) ?? "mainCondition"
2896
- ), C = (R) => N(R), I = y[S] ?? "group-primary", F = V.useMemo(() => {
2906
+ ), D = (R) => N(R), I = y[E] ?? "group-primary", F = V.useMemo(() => {
2897
2907
  const R = [
2898
- ...Object.keys(h).filter((Z) => Z === "group-primary"),
2899
- ...Object.keys(h).filter((Z) => Z !== "group-primary")
2908
+ ...Object.keys(h).filter((K) => K === "group-primary"),
2909
+ ...Object.keys(h).filter((K) => K !== "group-primary")
2900
2910
  ];
2901
- let H = !1;
2902
- const Q = R.map((Z) => {
2903
- const At = (h[Z] ?? []).map((Ze, $t) => {
2904
- const Mn = !H && Z === "group-primary" && $t === 0;
2905
- Mn && (H = !0);
2906
- const It = Zo(Ze.howToSetTheCondition ?? Ze.valueUse), Rt = _o({
2907
- label: Ze.labelName || "",
2911
+ let q = !1;
2912
+ const Q = R.map((K) => {
2913
+ const At = (h[K] ?? []).map((Ke, $t) => {
2914
+ const Mn = !q && K === "group-primary" && $t === 0;
2915
+ Mn && (q = !0);
2916
+ const It = Ko(Ke.howToSetTheCondition ?? Ke.valueUse), Rt = _o({
2917
+ label: Ke.labelName || "",
2908
2918
  howToSet: It,
2909
2919
  isFirst: Mn
2910
2920
  });
2911
- return { ...Ze, labelName: Rt };
2921
+ return { ...Ke, labelName: Rt };
2912
2922
  });
2913
- return [Z, At];
2923
+ return [K, At];
2914
2924
  });
2915
2925
  return Object.fromEntries(Q);
2916
- }, [h]), k = F[I] ?? [], _ = F["group-primary"] ?? [], ae = {
2926
+ }, [h]), k = F[I] ?? [], H = F["group-primary"] ?? [], se = {
2917
2927
  decisionDataType: n.decisionDataType,
2918
2928
  howToSetTheCondition: n.howToSetTheDecision,
2919
2929
  labelName: n.labelName,
2920
2930
  listOfPossibleValues: n.listOfPossibleValues,
2921
2931
  ruleName: n.ruleName
2922
- }, he = l.submitCount > 0 || !!l.touched.effectiveFrom, fe = l.submitCount > 0 || !!l.touched.validUntil, pe = he ? l.errors.effectiveFrom ? "invalid" : "valid" : void 0, ie = fe ? l.errors.validUntil ? "invalid" : "valid" : void 0, me = V.useMemo(() => {
2932
+ }, ve = l.submitCount > 0 || !!l.touched.effectiveFrom, pe = l.submitCount > 0 || !!l.touched.validUntil, ge = ve ? l.errors.effectiveFrom ? "invalid" : "valid" : void 0, ae = pe ? l.errors.validUntil ? "invalid" : "valid" : void 0, ye = V.useMemo(() => {
2923
2933
  const R = l.errors.conditionsThatEstablishesTheDecision;
2924
2934
  if (!R) return;
2925
2935
  if (typeof R == "string") return R;
2926
- const H = (Q) => {
2936
+ const q = (Q) => {
2927
2937
  if (Q) {
2928
2938
  if (typeof Q == "string") return Q;
2929
2939
  if (Array.isArray(Q))
2930
- for (const Z of Q) {
2931
- const ye = H(Z);
2932
- if (ye) return ye;
2940
+ for (const K of Q) {
2941
+ const xe = q(K);
2942
+ if (xe) return xe;
2933
2943
  }
2934
2944
  else if (typeof Q == "object")
2935
- for (const Z of Object.values(Q)) {
2936
- const ye = H(Z);
2937
- if (ye) return ye;
2945
+ for (const K of Object.values(Q)) {
2946
+ const xe = q(K);
2947
+ if (xe) return xe;
2938
2948
  }
2939
2949
  }
2940
2950
  };
2941
- return H(R);
2942
- }, [l.errors.conditionsThatEstablishesTheDecision]), be = l.submitCount > 0 && !!me, P = (R) => R != null && R.isMulti || R != null && R.multiple || (R == null ? void 0 : R.valueUse) === "Among" ? [] : "", de = (R) => {
2943
- const Q = Object.values(c).flat().find((ye) => ye.conditionName === R), Z = P(Q);
2951
+ return q(R);
2952
+ }, [l.errors.conditionsThatEstablishesTheDecision]), Se = l.submitCount > 0 && !!ye, de = (R) => R != null && R.isMulti || R != null && R.multiple || (R == null ? void 0 : R.valueUse) === "Among" ? [] : "", he = (R) => {
2953
+ const Q = Object.values(c).flat().find((xe) => xe.conditionName === R), K = de(Q);
2944
2954
  l.setFieldValue(
2945
2955
  `conditionsThatEstablishesTheDecision.${R}`,
2946
- Z
2956
+ K
2947
2957
  ), l.setFieldTouched(
2948
2958
  `conditionsThatEstablishesTheDecision.${R}`,
2949
2959
  !1,
2950
2960
  !1
2951
2961
  );
2952
- }, ke = () => {
2953
- (c[I] ?? []).forEach((H) => {
2954
- const Q = `conditionsThatEstablishesTheDecision.${H.conditionName}`;
2955
- l.setFieldValue(Q, P(H)), l.setFieldTouched(Q, !1, !1);
2962
+ }, fe = () => {
2963
+ (c[I] ?? []).forEach((q) => {
2964
+ const Q = `conditionsThatEstablishesTheDecision.${q.conditionName}`;
2965
+ l.setFieldValue(Q, de(q)), l.setFieldTouched(Q, !1, !1);
2956
2966
  });
2957
- }, [Ae, ve] = V.useState(!1);
2967
+ }, [me, L] = V.useState(!1);
2958
2968
  return /* @__PURE__ */ a(
2959
2969
  Uo,
2960
2970
  {
2961
- activeTab: S,
2962
- conditionsErrorText: me,
2971
+ activeTab: E,
2972
+ conditionsErrorText: ye,
2963
2973
  currentConditions: k,
2964
2974
  decision: n,
2965
2975
  formik: l,
2966
- normalizedDecision: ae,
2976
+ normalizedDecision: se,
2967
2977
  onCancel: o,
2968
- onRedefineCurrentTab: ke,
2969
- onTabChange: C,
2978
+ onRedefineCurrentTab: fe,
2979
+ onTabChange: D,
2970
2980
  onClearCondition: (R) => {
2971
- de(R), i == null || i(R);
2981
+ he(R), i == null || i(R);
2972
2982
  },
2973
- showConditionsError: be,
2983
+ showConditionsError: Se,
2974
2984
  tabs: T,
2975
- termEndStatus: ie,
2976
- termStartStatus: pe,
2985
+ termEndStatus: ae,
2986
+ termStartStatus: ge,
2977
2987
  textValues: r,
2978
- visibleConditions: _,
2988
+ visibleConditions: H,
2979
2989
  visibleConditionsByGroup: F,
2980
2990
  handleToggleNoneChange: p,
2981
2991
  portalId: "redefine-confirm-portal",
2982
- showRedefineConfirm: Ae,
2983
- onOpenRedefineConfirm: () => ve(!0),
2984
- onCloseRedefineConfirm: () => ve(!1),
2992
+ showRedefineConfirm: me,
2993
+ onOpenRedefineConfirm: () => L(!0),
2994
+ onCloseRedefineConfirm: () => L(!1),
2985
2995
  onConfirmRedefine: () => {
2986
- ke();
2996
+ fe();
2987
2997
  const R = (c[I] ?? []).map(
2988
- (H) => H.conditionName
2998
+ (q) => q.conditionName
2989
2999
  );
2990
- s == null || s(R), ve(!1);
3000
+ s == null || s(R), L(!1);
2991
3001
  }
2992
3002
  }
2993
3003
  );
@@ -3009,8 +3019,8 @@ const Zo = (e) => {
3009
3019
  terms: f = !0,
3010
3020
  onRemoveCondition: x,
3011
3021
  onRestoreConditions: y,
3012
- baseDecisionTemplate: D
3013
- } = e, [T, S] = z(null), N = te("(max-width: 681px)"), { renderedCards: C, shouldRenderAddCard: I } = Ao({
3022
+ baseDecisionTemplate: w
3023
+ } = e, [T, E] = U(null), N = te("(max-width: 681px)"), { renderedCards: D, shouldRenderAddCard: I } = Ao({
3014
3024
  controls: n,
3015
3025
  customTitleContentAddCard: t,
3016
3026
  decisions: o,
@@ -3019,9 +3029,9 @@ const Zo = (e) => {
3019
3029
  handleDelete: h,
3020
3030
  textValues: i,
3021
3031
  isOpenFor: (k) => T === k,
3022
- toggleAt: (k) => S((_) => _ === k ? null : k)
3032
+ toggleAt: (k) => E((H) => H === k ? null : k)
3023
3033
  }), F = (o == null ? void 0 : o.length) === 0 && !p;
3024
- return /* @__PURE__ */ m(O, { children: [
3034
+ return /* @__PURE__ */ m(z, { children: [
3025
3035
  /* @__PURE__ */ a(Co, { children: /* @__PURE__ */ a(Do, { children: /* @__PURE__ */ a(v, { direction: "column", gap: "16px", padding: "6px", children: F ? /* @__PURE__ */ a(Ue, { legend: "Decisiones", children: /* @__PURE__ */ m(
3026
3036
  v,
3027
3037
  {
@@ -3032,7 +3042,7 @@ const Zo = (e) => {
3032
3042
  alignItems: "center",
3033
3043
  children: [
3034
3044
  /* @__PURE__ */ a(
3035
- M,
3045
+ j,
3036
3046
  {
3037
3047
  appearance: "help",
3038
3048
  icon: /* @__PURE__ */ a(Mt, {}),
@@ -3049,7 +3059,7 @@ const Zo = (e) => {
3049
3059
  children: "Sin decisiones"
3050
3060
  }
3051
3061
  ),
3052
- /* @__PURE__ */ a($, { as: "span", size: "medium", appearance: "gray", children: r || /* @__PURE__ */ m(O, { children: [
3062
+ /* @__PURE__ */ a($, { as: "span", size: "medium", appearance: "gray", children: r || /* @__PURE__ */ m(z, { children: [
3053
3063
  "Aun no tienes decisiones definidas, para empezar haz clic en",
3054
3064
  t || ' "Agregar decisión"'
3055
3065
  ] }) })
@@ -3068,7 +3078,7 @@ const Zo = (e) => {
3068
3078
  padding: "6px",
3069
3079
  height: N ? "auto" : "484px",
3070
3080
  children: [
3071
- C,
3081
+ D,
3072
3082
  I && Dn({
3073
3083
  type: "add",
3074
3084
  index: o == null ? void 0 : o.length,
@@ -3093,10 +3103,10 @@ const Zo = (e) => {
3093
3103
  title: l ? "Editar Decisión" : "Configurar Decisión",
3094
3104
  description: "Diligencia los campos para configurar tu decisión.",
3095
3105
  children: /* @__PURE__ */ a(
3096
- Ko,
3106
+ Zo,
3097
3107
  {
3098
3108
  decision: l || s,
3099
- fullTemplate: D ?? s,
3109
+ fullTemplate: w ?? s,
3100
3110
  onSubmitEvent: g,
3101
3111
  textValues: i,
3102
3112
  onCancel: () => c ? c() : () => {
@@ -3110,9 +3120,9 @@ const Zo = (e) => {
3110
3120
  ] });
3111
3121
  }, Jo = {
3112
3122
  border: {
3113
- color: E.palette.neutral.N40
3123
+ color: S.palette.neutral.N40
3114
3124
  }
3115
- }, ea = w.div`
3125
+ }, ea = C.div`
3116
3126
  border-width: 1px;
3117
3127
  border-style: solid;
3118
3128
  border-color: ${({ theme: e }) => {
@@ -3148,70 +3158,70 @@ function na(e) {
3148
3158
  );
3149
3159
  }
3150
3160
  const ta = (e, n) => {
3151
- const [t, r] = z([]), [o, i] = z([]), [s, d] = z(!1), l = Ie(null);
3152
- return Ee(() => {
3161
+ const [t, r] = U([]), [o, i] = U([]), [s, d] = U(!1), l = Ie(null);
3162
+ return ke(() => {
3153
3163
  if (!e.current || !l.current) return;
3154
3164
  const p = e.current, u = l.current, c = () => {
3155
- var S;
3165
+ var E;
3156
3166
  const h = p.clientWidth, f = Array.from(
3157
3167
  u.querySelectorAll('[data-filter-tag="true"]')
3158
3168
  ), x = 48;
3159
3169
  let y = 0;
3160
- const D = [], T = [];
3170
+ const w = [], T = [];
3161
3171
  for (let N = 0; N < n.length; N++) {
3162
- const C = ((S = f[N]) == null ? void 0 : S.offsetWidth) ?? 0;
3163
- y + C + x <= h ? (D.push(n[N]), y += C) : T.push(n[N]);
3172
+ const D = ((E = f[N]) == null ? void 0 : E.offsetWidth) ?? 0;
3173
+ y + D + x <= h ? (w.push(n[N]), y += D) : T.push(n[N]);
3164
3174
  }
3165
- r(D), i(T), d(T.length > 0);
3175
+ r(w), i(T), d(T.length > 0);
3166
3176
  }, g = new ResizeObserver(() => {
3167
3177
  requestAnimationFrame(c);
3168
3178
  });
3169
3179
  return g.observe(p), () => g.disconnect();
3170
3180
  }, [n, e]), { visible: t, hidden: o, showOverflowIndicator: s, measurementRef: l };
3171
3181
  };
3172
- w.div`
3182
+ C.div`
3173
3183
  & > div {
3174
3184
  width: 100%;
3175
3185
  }
3176
3186
  `;
3177
- const ra = w.div`
3187
+ const ra = C.div`
3178
3188
  position: absolute;
3179
3189
  top: calc(100% + 4px);
3180
3190
  right: 0;
3181
3191
  z-index: 1000;
3182
3192
  width: 170px;
3183
- `, oa = w.div`
3193
+ `, oa = C.div`
3184
3194
  position: absolute;
3185
3195
  visibility: hidden;
3186
3196
  pointer-events: none;
3187
3197
  height: 0;
3188
3198
  overflow: hidden;
3189
- `, aa = w.div`
3199
+ `, aa = C.div`
3190
3200
  cursor: pointer;
3191
3201
  `, Sn = {
3192
3202
  border: {
3193
3203
  color: {
3194
- regular: E.palette.neutral.N40,
3195
- disabled: E.palette.neutral.N40,
3196
- focus: E.palette.blue.B300,
3197
- invalid: E.palette.red.R400
3204
+ regular: S.palette.neutral.N40,
3205
+ disabled: S.palette.neutral.N40,
3206
+ focus: S.palette.blue.B300,
3207
+ invalid: S.palette.red.R400
3198
3208
  }
3199
3209
  },
3200
3210
  background: {
3201
3211
  color: {
3202
- regular: E.palette.neutral.N0,
3203
- disabled: E.palette.neutral.N10
3212
+ regular: S.palette.neutral.N0,
3213
+ disabled: S.palette.neutral.N10
3204
3214
  }
3205
3215
  },
3206
3216
  content: {
3207
3217
  color: {
3208
- regular: E.palette.neutral.N900,
3209
- disabled: E.palette.neutral.N70
3218
+ regular: S.palette.neutral.N900,
3219
+ disabled: S.palette.neutral.N70
3210
3220
  }
3211
3221
  },
3212
3222
  placeholder: {
3213
3223
  color: {
3214
- regular: E.palette.neutral.N300
3224
+ regular: S.palette.neutral.N300
3215
3225
  }
3216
3226
  },
3217
3227
  option: {
@@ -3220,11 +3230,11 @@ const ra = w.div`
3220
3230
  hover: "primary"
3221
3231
  },
3222
3232
  background: {
3223
- regular: E.palette.neutral.N0,
3224
- hover: E.palette.neutral.N30
3233
+ regular: S.palette.neutral.N0,
3234
+ hover: S.palette.neutral.N30
3225
3235
  }
3226
3236
  }
3227
- }, ia = w.li`
3237
+ }, ia = C.li`
3228
3238
  display: flex;
3229
3239
  align-items: center;
3230
3240
  align-self: stretch;
@@ -3243,8 +3253,8 @@ const ra = w.div`
3243
3253
  }};
3244
3254
  }
3245
3255
  `, la = (e) => {
3246
- var g, h, f, x, y, D;
3247
- const { id: n, label: t, leadingIcon: r, onClose: o } = e, [i, s] = z(!1), d = () => s(!0), l = () => s(!1), p = Rn($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) ?? Sn.option.appearance.hover, c = ((D = (y = (x = p == null ? void 0 : p.input) == null ? void 0 : x.option) == null ? void 0 : y.appearance) == null ? void 0 : D.regular) ?? Sn.option.appearance.regular;
3256
+ var g, h, f, x, y, w;
3257
+ const { id: n, label: t, leadingIcon: r, onClose: o } = e, [i, s] = U(!1), d = () => s(!0), l = () => s(!1), p = Rn($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) ?? Sn.option.appearance.hover, c = ((w = (y = (x = p == null ? void 0 : p.input) == null ? void 0 : x.option) == null ? void 0 : y.appearance) == null ? void 0 : w.regular) ?? Sn.option.appearance.regular;
3248
3258
  return /* @__PURE__ */ a(
3249
3259
  ia,
3250
3260
  {
@@ -3263,7 +3273,7 @@ const ra = w.div`
3263
3273
  width: "100%",
3264
3274
  children: [
3265
3275
  r && /* @__PURE__ */ a(
3266
- M,
3276
+ j,
3267
3277
  {
3268
3278
  icon: r,
3269
3279
  size: "medium",
@@ -3280,7 +3290,7 @@ const ra = w.div`
3280
3290
  }
3281
3291
  ),
3282
3292
  /* @__PURE__ */ a(
3283
- M,
3293
+ j,
3284
3294
  {
3285
3295
  icon: /* @__PURE__ */ a(zt, {}),
3286
3296
  size: "small",
@@ -3309,38 +3319,38 @@ const ra = w.div`
3309
3319
  hidden: c,
3310
3320
  showOverflowIndicator: g,
3311
3321
  measurementRef: h
3312
- } = ta(d, n), [f, x] = z(!1), y = (C) => {
3313
- C.stopPropagation(), x((I) => !I);
3322
+ } = ta(d, n), [f, x] = U(!1), y = (D) => {
3323
+ D.stopPropagation(), x((I) => !I);
3314
3324
  };
3315
- Ee(() => {
3316
- const C = (I) => {
3317
- var _, ae;
3325
+ ke(() => {
3326
+ const D = (I) => {
3327
+ var H, se;
3318
3328
  const F = I.target;
3319
- !((_ = l.current) != null && _.contains(F)) && !((ae = p.current) != null && ae.contains(F)) && x(!1);
3329
+ !((H = l.current) != null && H.contains(F)) && !((se = p.current) != null && se.contains(F)) && x(!1);
3320
3330
  };
3321
- return f && window.addEventListener("mousedown", C), () => window.removeEventListener("mousedown", C);
3331
+ return f && window.addEventListener("mousedown", D), () => window.removeEventListener("mousedown", D);
3322
3332
  }, [f]);
3323
- const D = n.length === 0, T = f && c.length > 0, S = c.map((C) => ({
3324
- id: C.label,
3325
- value: C.label,
3326
- label: C.label,
3327
- icon: C.icon
3328
- })), N = (C) => {
3333
+ const w = n.length === 0, T = f && c.length > 0, E = c.map((D) => ({
3334
+ id: D.label,
3335
+ value: D.label,
3336
+ label: D.label,
3337
+ icon: D.icon
3338
+ })), N = (D) => {
3329
3339
  var I, F;
3330
- (F = (I = c.find((k) => k.label === C)) == null ? void 0 : I.onClose) == null || F.call(I), x(!1);
3340
+ (F = (I = c.find((k) => k.label === D)) == null ? void 0 : I.onClose) == null || F.call(I), x(!1);
3331
3341
  };
3332
3342
  return /* @__PURE__ */ m(na, { borderRadius: "8px", width: "100%", children: [
3333
- /* @__PURE__ */ a(oa, { ref: h, children: n.map((C) => /* @__PURE__ */ a("div", { "data-filter-tag": "true", children: /* @__PURE__ */ a(
3334
- De,
3343
+ /* @__PURE__ */ a(oa, { ref: h, children: n.map((D) => /* @__PURE__ */ a("div", { "data-filter-tag": "true", children: /* @__PURE__ */ a(
3344
+ Ee,
3335
3345
  {
3336
3346
  appearance: "primary",
3337
3347
  displayIcon: !0,
3338
3348
  removable: !0,
3339
- icon: C.icon,
3340
- label: C.label,
3341
- onClose: C.onClose
3349
+ icon: D.icon,
3350
+ label: D.label,
3351
+ onClose: D.onClose
3342
3352
  }
3343
- ) }, C.label)) }),
3353
+ ) }, D.label)) }),
3344
3354
  /* @__PURE__ */ m(We, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
3345
3355
  /* @__PURE__ */ a(
3346
3356
  oe,
@@ -3354,19 +3364,19 @@ const ra = w.div`
3354
3364
  alignItems: "center",
3355
3365
  padding: "0px 8px",
3356
3366
  border: !0,
3357
- children: D ? /* @__PURE__ */ a($, { size: "small", type: "label", appearance: "gray", children: o }) : /* @__PURE__ */ m(O, { children: [
3358
- u.map((C) => /* @__PURE__ */ a(
3359
- De,
3367
+ children: w ? /* @__PURE__ */ a($, { size: "small", type: "label", appearance: "gray", children: o }) : /* @__PURE__ */ m(z, { children: [
3368
+ u.map((D) => /* @__PURE__ */ a(
3369
+ Ee,
3360
3370
  {
3361
3371
  "data-filter-tag": "true",
3362
3372
  appearance: "primary",
3363
3373
  displayIcon: !0,
3364
3374
  removable: !0,
3365
- icon: C.icon,
3366
- label: C.label,
3367
- onClose: C.onClose
3375
+ icon: D.icon,
3376
+ label: D.label,
3377
+ onClose: D.onClose
3368
3378
  },
3369
- C.label
3379
+ D.label
3370
3380
  )),
3371
3381
  g && /* @__PURE__ */ m(
3372
3382
  "div",
@@ -3375,7 +3385,7 @@ const ra = w.div`
3375
3385
  style: { position: "relative", display: "inline-block" },
3376
3386
  children: [
3377
3387
  /* @__PURE__ */ a(aa, { onClick: y, children: /* @__PURE__ */ a(
3378
- De,
3388
+ Ee,
3379
3389
  {
3380
3390
  appearance: "primary",
3381
3391
  label: `+${c.length}`
@@ -3384,20 +3394,20 @@ const ra = w.div`
3384
3394
  T && /* @__PURE__ */ a(ra, { ref: l, children: /* @__PURE__ */ a(
3385
3395
  Gt,
3386
3396
  {
3387
- options: S,
3397
+ options: E,
3388
3398
  onOptionClick: N,
3389
- children: c.map((C) => /* @__PURE__ */ a(
3399
+ children: c.map((D) => /* @__PURE__ */ a(
3390
3400
  la,
3391
3401
  {
3392
- id: C.label,
3393
- label: C.label,
3394
- leadingIcon: C.icon,
3402
+ id: D.label,
3403
+ label: D.label,
3404
+ leadingIcon: D.icon,
3395
3405
  onClose: () => {
3396
3406
  var I;
3397
- (I = C.onClose) == null || I.call(C), x(!1);
3407
+ (I = D.onClose) == null || I.call(D), x(!1);
3398
3408
  }
3399
3409
  },
3400
- C.label
3410
+ D.label
3401
3411
  ))
3402
3412
  }
3403
3413
  ) })
@@ -3408,10 +3418,10 @@ const ra = w.div`
3408
3418
  }
3409
3419
  ),
3410
3420
  /* @__PURE__ */ a(
3411
- q,
3421
+ B,
3412
3422
  {
3413
3423
  cursorHover: !0,
3414
- disabled: D,
3424
+ disabled: w,
3415
3425
  iconBefore: /* @__PURE__ */ a(it, {}),
3416
3426
  onClick: t,
3417
3427
  variant: "outlined",
@@ -3419,7 +3429,7 @@ const ra = w.div`
3419
3429
  }
3420
3430
  ),
3421
3431
  /* @__PURE__ */ a(
3422
- q,
3432
+ B,
3423
3433
  {
3424
3434
  cursorHover: !0,
3425
3435
  iconBefore: /* @__PURE__ */ a(lt, {}),
@@ -3430,12 +3440,12 @@ const ra = w.div`
3430
3440
  )
3431
3441
  ] })
3432
3442
  ] });
3433
- }, sa = w.div`
3443
+ }, sa = C.div`
3434
3444
  display: flex;
3435
3445
  flex-direction: column;
3436
3446
  background-color: ${({ theme: e }) => {
3437
3447
  var n, t;
3438
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || E.palette.neutral.N0;
3448
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || S.palette.neutral.N0;
3439
3449
  }};
3440
3450
  width: ${({ $smallScreen: e }) => e ? "auto" : "450px"};
3441
3451
  height: auto;
@@ -3466,7 +3476,7 @@ const ra = w.div`
3466
3476
  /* @__PURE__ */ m(v, { alignItems: "center", children: [
3467
3477
  /* @__PURE__ */ a($, { children: "Cerrar" }),
3468
3478
  /* @__PURE__ */ a(
3469
- M,
3479
+ j,
3470
3480
  {
3471
3481
  appearance: "dark",
3472
3482
  icon: /* @__PURE__ */ a(sn, {}),
@@ -3476,12 +3486,12 @@ const ra = w.div`
3476
3486
  )
3477
3487
  ] })
3478
3488
  ] }),
3479
- /* @__PURE__ */ a(B, {})
3489
+ /* @__PURE__ */ a(G, {})
3480
3490
  ] }),
3481
3491
  r,
3482
3492
  /* @__PURE__ */ m(v, { gap: "20px", justifyContent: "flex-end", children: [
3483
3493
  /* @__PURE__ */ a(
3484
- q,
3494
+ B,
3485
3495
  {
3486
3496
  appearance: "gray",
3487
3497
  onClick: s,
@@ -3492,7 +3502,7 @@ const ra = w.div`
3492
3502
  }
3493
3503
  ),
3494
3504
  /* @__PURE__ */ a(
3495
- q,
3505
+ B,
3496
3506
  {
3497
3507
  appearance: "primary",
3498
3508
  loading: o,
@@ -3509,9 +3519,9 @@ const ra = w.div`
3509
3519
  }, yl = (e) => {
3510
3520
  const { appliedFilters: n, fields: t, onChange: r, noFiltersLabel: o } = e, i = te("(max-width: 768px)"), s = !n || n.length === 0;
3511
3521
  return /* @__PURE__ */ m(v, { direction: "column", gap: "16px", children: [
3512
- i && /* @__PURE__ */ m(O, { children: [
3522
+ i && /* @__PURE__ */ m(z, { children: [
3513
3523
  /* @__PURE__ */ m(v, { gap: "6px", width: "100%", alignItems: "center", children: [
3514
- /* @__PURE__ */ a(M, { appearance: "gray", icon: /* @__PURE__ */ a(lt, {}) }),
3524
+ /* @__PURE__ */ a(j, { appearance: "gray", icon: /* @__PURE__ */ a(lt, {}) }),
3515
3525
  /* @__PURE__ */ a(
3516
3526
  oe,
3517
3527
  {
@@ -3525,7 +3535,7 @@ const ra = w.div`
3525
3535
  width: "100%",
3526
3536
  height: "36px",
3527
3537
  children: s ? /* @__PURE__ */ a($, { size: "small", type: "label", appearance: "gray", children: o }) : n == null ? void 0 : n.map((d) => /* @__PURE__ */ a(
3528
- De,
3538
+ Ee,
3529
3539
  {
3530
3540
  appearance: "primary",
3531
3541
  displayIcon: !0,
@@ -3539,10 +3549,10 @@ const ra = w.div`
3539
3549
  }
3540
3550
  )
3541
3551
  ] }),
3542
- /* @__PURE__ */ a(B, { dashed: !0 })
3552
+ /* @__PURE__ */ a(G, { dashed: !0 })
3543
3553
  ] }),
3544
3554
  t.map((d) => /* @__PURE__ */ m(v, { gap: "6px", alignItems: "center", children: [
3545
- /* @__PURE__ */ a(v, { padding: "22px 0 0 0", children: /* @__PURE__ */ a(M, { appearance: "primary", icon: d.icon }) }),
3555
+ /* @__PURE__ */ a(v, { padding: "22px 0 0 0", children: /* @__PURE__ */ a(j, { appearance: "primary", icon: d.icon }) }),
3546
3556
  /* @__PURE__ */ a(
3547
3557
  Yt,
3548
3558
  {
@@ -3631,7 +3641,7 @@ const ra = w.div`
3631
3641
  } : t;
3632
3642
  });
3633
3643
  }, ca = (e) => ({
3634
- schema: le().required("Requerido").test(
3644
+ schema: ie().required("Requerido").test(
3635
3645
  "non-empty",
3636
3646
  "El valor no puede estar vacío",
3637
3647
  (n) => n != null && n.trim() !== ""
@@ -3659,8 +3669,8 @@ const ra = w.div`
3659
3669
  const n = (e == null ? void 0 : e.from) ?? 0, t = (e == null ? void 0 : e.to) ?? 0;
3660
3670
  return {
3661
3671
  schema: ne({
3662
- from: se().required("El campo 'Rango desde' es requerido").max(t, "'Rango desde' no puede ser mayor que 'Rango hasta'").min(0, "'Rango desde' no puede ser menor que 0"),
3663
- to: se().min(0, "El campo 'Rango hasta' debe ser mayor o igual a 0").required("El campo 'Rango hasta' es requerido").test(
3672
+ from: le().required("El campo 'Rango desde' es requerido").max(t, "'Rango desde' no puede ser mayor que 'Rango hasta'").min(0, "'Rango desde' no puede ser menor que 0"),
3673
+ to: le().min(0, "El campo 'Rango hasta' debe ser mayor o igual a 0").required("El campo 'Rango hasta' es requerido").test(
3664
3674
  "is-greater",
3665
3675
  "El campo 'Rango hasta' debe ser mayor que 'Rango desde'",
3666
3676
  function(r) {
@@ -3671,11 +3681,11 @@ const ra = w.div`
3671
3681
  }),
3672
3682
  value: { from: n, to: t }
3673
3683
  };
3674
- }, vn = (e, n) => n === j.PERCENTAGE ? {
3675
- schema: se().required("El campo tipo porcentaje es requerido").min(0, "El campo tipo porcentaje no puede ser menor que 0").max(100, "El campo tipo porcentaje no puede ser mayor que 100"),
3684
+ }, vn = (e, n) => n === _.PERCENTAGE ? {
3685
+ schema: le().required("El campo tipo porcentaje es requerido").min(0, "El campo tipo porcentaje no puede ser menor que 0").max(100, "El campo tipo porcentaje no puede ser mayor que 100"),
3676
3686
  value: e
3677
3687
  } : {
3678
- schema: le().required("Requerido"),
3688
+ schema: ie().required("Requerido"),
3679
3689
  value: e
3680
3690
  }, ha = {
3681
3691
  [A.LIST_OF_VALUES]: ua,
@@ -3692,7 +3702,7 @@ function fa({
3692
3702
  }) {
3693
3703
  const r = {
3694
3704
  ruleName: e.ruleName || "",
3695
- decisionDataType: e.decisionDataType || j.ALPHABETICAL,
3705
+ decisionDataType: e.decisionDataType || _.ALPHABETICAL,
3696
3706
  howToSetTheDecision: e.howToSetTheDecision || "",
3697
3707
  value: e.value || "",
3698
3708
  effectiveFrom: e.effectiveFrom || "",
@@ -3704,7 +3714,7 @@ function fa({
3704
3714
  };
3705
3715
  let o;
3706
3716
  const i = {
3707
- ruleName: le().required("El nombre de la regla es requerido"),
3717
+ ruleName: ie().required("El nombre de la regla es requerido"),
3708
3718
  value: Be(() => Wn(
3709
3719
  o.values.howToSetTheDecision
3710
3720
  )(
@@ -3825,16 +3835,16 @@ function fa({
3825
3835
  });
3826
3836
  } };
3827
3837
  }
3828
- const ma = w.div`
3838
+ const ma = C.div`
3829
3839
  & > div {
3830
3840
  border-radius: 8px;
3831
3841
  border: 1px solid
3832
3842
  ${({ theme: e }) => {
3833
3843
  var n, t;
3834
- return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || E.palette.neutral.N30;
3844
+ return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || S.palette.neutral.N30;
3835
3845
  }};
3836
3846
  }
3837
- `, ba = w.div`
3847
+ `, ba = C.div`
3838
3848
  width: 100%;
3839
3849
  height: 100%;
3840
3850
  overflow-y: auto;
@@ -3860,12 +3870,12 @@ const ma = w.div`
3860
3870
  labelToggle: i,
3861
3871
  name: s,
3862
3872
  valueToggle: d = ""
3863
- } = e, [l, p] = z(n), u = (c) => {
3873
+ } = e, [l, p] = U(n), u = (c) => {
3864
3874
  p(c.target.checked), r(c);
3865
3875
  };
3866
- return Ee(() => {
3876
+ return ke(() => {
3867
3877
  p(n);
3868
- }, [n]), /* @__PURE__ */ m(O, { children: [
3878
+ }, [n]), /* @__PURE__ */ m(z, { children: [
3869
3879
  /* @__PURE__ */ a(v, { children: /* @__PURE__ */ a(
3870
3880
  cn,
3871
3881
  {
@@ -3878,7 +3888,7 @@ const ma = w.div`
3878
3888
  children: /* @__PURE__ */ a($, { size: "medium", type: "label", weight: "bold", children: i })
3879
3889
  }
3880
3890
  ) }),
3881
- l && /* @__PURE__ */ a(O, { children: t })
3891
+ l && /* @__PURE__ */ a(z, { children: t })
3882
3892
  ] });
3883
3893
  }, ya = (e) => {
3884
3894
  const {
@@ -3895,14 +3905,14 @@ const ma = w.div`
3895
3905
  messageEnd: c = "",
3896
3906
  statusStart: g = "pending",
3897
3907
  statusEnd: h = "pending"
3898
- } = e, [f, x] = z(s), [y, D] = z(l), [T, S] = z(p), N = ({ target: k }) => {
3908
+ } = e, [f, x] = U(s), [y, w] = U(l), [T, E] = U(p), N = ({ target: k }) => {
3899
3909
  x(k.checked), r && r(k.checked);
3900
- }, C = (k) => {
3901
- D(k.target.value), n(k);
3910
+ }, D = (k) => {
3911
+ w(k.target.value), n(k);
3902
3912
  }, I = (k) => {
3903
- S(k.target.value), t(k);
3913
+ E(k.target.value), t(k);
3904
3914
  }, F = te("(max-width: 400px)");
3905
- return /* @__PURE__ */ m(O, { children: [
3915
+ return /* @__PURE__ */ m(z, { children: [
3906
3916
  /* @__PURE__ */ m(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
3907
3917
  /* @__PURE__ */ a(
3908
3918
  $,
@@ -3946,7 +3956,7 @@ const ma = w.div`
3946
3956
  {
3947
3957
  id: "dateStart",
3948
3958
  label: o,
3949
- onChange: C,
3959
+ onChange: D,
3950
3960
  value: y,
3951
3961
  required: d,
3952
3962
  size: "compact",
@@ -3990,7 +4000,7 @@ const ma = w.div`
3990
4000
  formik: n,
3991
4001
  isDecision: !0
3992
4002
  }),
3993
- /* @__PURE__ */ a(B, { dashed: !0 }),
4003
+ /* @__PURE__ */ a(G, { dashed: !0 }),
3994
4004
  /* @__PURE__ */ a(ma, { children: /* @__PURE__ */ a(ba, { children: /* @__PURE__ */ m(
3995
4005
  v,
3996
4006
  {
@@ -4038,8 +4048,8 @@ const ma = w.div`
4038
4048
  ]
4039
4049
  }
4040
4050
  ) }) }),
4041
- t.terms && /* @__PURE__ */ m(O, { children: [
4042
- /* @__PURE__ */ a(B, { dashed: !0 }),
4051
+ t.terms && /* @__PURE__ */ m(z, { children: [
4052
+ /* @__PURE__ */ a(G, { dashed: !0 }),
4043
4053
  /* @__PURE__ */ a(
4044
4054
  ya,
4045
4055
  {
@@ -4060,11 +4070,11 @@ const ma = w.div`
4060
4070
  }
4061
4071
  )
4062
4072
  ] }),
4063
- /* @__PURE__ */ a(B, {}),
4073
+ /* @__PURE__ */ a(G, {}),
4064
4074
  l && /* @__PURE__ */ 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." }),
4065
4075
  /* @__PURE__ */ m(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
4066
- /* @__PURE__ */ a(q, { appearance: "gray", onClick: r, children: t.cancel }),
4067
- /* @__PURE__ */ a(q, { type: "submit", children: t.confirm })
4076
+ /* @__PURE__ */ a(B, { appearance: "gray", onClick: r, children: t.cancel }),
4077
+ /* @__PURE__ */ a(B, { type: "submit", children: t.confirm })
4068
4078
  ] })
4069
4079
  ] }) });
4070
4080
  }, Ta = (e) => {
@@ -4103,10 +4113,10 @@ const ma = w.div`
4103
4113
  !1
4104
4114
  );
4105
4115
  else {
4106
- const D = x ? [] : "";
4116
+ const w = x ? [] : "";
4107
4117
  i.setFieldValue(
4108
4118
  `conditionsThatEstablishesTheDecision.${f}`,
4109
- D
4119
+ w
4110
4120
  );
4111
4121
  }
4112
4122
  },
@@ -4150,29 +4160,29 @@ const ma = w.div`
4150
4160
  )
4151
4161
  } : t;
4152
4162
  });
4153
- }, xe = {
4163
+ }, Te = {
4154
4164
  item: {
4155
4165
  background: {
4156
- active: E.palette.blue.B50,
4157
- inactive: E.palette.neutral.N0,
4158
- hover: E.palette.neutral.N20,
4159
- disabled: E.palette.neutral.N20
4166
+ active: S.palette.blue.B50,
4167
+ inactive: S.palette.neutral.N0,
4168
+ hover: S.palette.neutral.N20,
4169
+ disabled: S.palette.neutral.N20
4160
4170
  }
4161
4171
  },
4162
4172
  border: {
4163
4173
  expanded: {
4164
- color: E.palette.blue.B400
4174
+ color: S.palette.blue.B400
4165
4175
  },
4166
4176
  contracted: {
4167
- color: E.palette.neutral.N0
4177
+ color: S.palette.neutral.N0
4168
4178
  }
4169
4179
  }
4170
- }, wa = w.div`
4180
+ }, wa = C.div`
4171
4181
  & > div {
4172
4182
  border: 1px solid
4173
4183
  ${({ theme: e, $active: n }) => {
4174
4184
  var t, r, o, i;
4175
- return n ? ((r = (t = e == null ? void 0 : e.border) == null ? void 0 : t.expanded) == null ? void 0 : r.color) || xe.border.expanded.color : ((i = (o = e == null ? void 0 : e.border) == null ? void 0 : o.contracted) == null ? void 0 : i.color) || xe.border.contracted.color;
4185
+ return n ? ((r = (t = e == null ? void 0 : e.border) == null ? void 0 : t.expanded) == null ? void 0 : r.color) || Te.border.expanded.color : ((i = (o = e == null ? void 0 : e.border) == null ? void 0 : o.contracted) == null ? void 0 : i.color) || Te.border.contracted.color;
4176
4186
  }};
4177
4187
  }
4178
4188
  &:hover {
@@ -4180,44 +4190,44 @@ const ma = w.div`
4180
4190
  background-color: ${({ theme: e, $disabled: n }) => {
4181
4191
  var t, r, o;
4182
4192
  if (!n)
4183
- 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) || xe.item.background.hover;
4193
+ 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) || Te.item.background.hover;
4184
4194
  }};
4185
4195
  }
4186
- `, Xn = w.div`
4196
+ `, Xn = C.div`
4187
4197
  display: flex;
4188
4198
  align-items: center;
4189
4199
  gap: 12px;
4190
4200
  width: 100%;
4191
4201
  outline: none;
4192
4202
  cursor: pointer;
4193
- `, Ca = w.div`
4203
+ `, Ca = C.div`
4194
4204
  display: flex;
4195
4205
  align-items: center;
4196
4206
  outline: none;
4197
4207
  cursor: pointer;
4198
- `, Da = w(ct)`
4208
+ `, Da = C(ct)`
4199
4209
  display: flex;
4200
4210
  align-items: center;
4201
4211
  text-decoration: none;
4202
- `, Sa = w(ct)`
4212
+ `, Sa = C(ct)`
4203
4213
  display: block;
4204
4214
  text-decoration: none;
4205
4215
  color: inherit;
4206
- `, Ea = w.div`
4216
+ `, Ea = C.div`
4207
4217
  & > div {
4208
4218
  border-bottom: 1px solid
4209
4219
  ${({ theme: e, $active: n }) => {
4210
4220
  var t, r, o, i;
4211
- return n ? ((r = (t = e == null ? void 0 : e.border) == null ? void 0 : t.expanded) == null ? void 0 : r.color) || xe.border.expanded.color : ((i = (o = e == null ? void 0 : e.border) == null ? void 0 : o.contracted) == null ? void 0 : i.color) || xe.border.contracted.color;
4221
+ return n ? ((r = (t = e == null ? void 0 : e.border) == null ? void 0 : t.expanded) == null ? void 0 : r.color) || Te.border.expanded.color : ((i = (o = e == null ? void 0 : e.border) == null ? void 0 : o.contracted) == null ? void 0 : i.color) || Te.border.contracted.color;
4212
4222
  }};
4213
4223
  border-radius: 8px 8px 0 0;
4214
4224
  }
4215
- `, mt = w.div`
4225
+ `, mt = C.div`
4216
4226
  display: block;
4217
4227
  text-decoration: none;
4218
4228
  background-color: ${({ theme: e, $active: n }) => {
4219
4229
  var t, r, o, i, s, d;
4220
- return n ? ((o = (r = (t = e == null ? void 0 : e.menu) == null ? void 0 : t.item) == null ? void 0 : r.background) == null ? void 0 : o.active) || xe.item.background.active : ((d = (s = (i = e == null ? void 0 : e.menu) == null ? void 0 : i.item) == null ? void 0 : s.background) == null ? void 0 : d.inactive) || xe.item.background.inactive;
4230
+ return n ? ((o = (r = (t = e == null ? void 0 : e.menu) == null ? void 0 : t.item) == null ? void 0 : r.background) == null ? void 0 : o.active) || Te.item.background.active : ((d = (s = (i = e == null ? void 0 : e.menu) == null ? void 0 : i.item) == null ? void 0 : s.background) == null ? void 0 : d.inactive) || Te.item.background.inactive;
4221
4231
  }};
4222
4232
  &:last-child {
4223
4233
  border-radius: 0 0 8px 8px;
@@ -4227,10 +4237,10 @@ const ma = w.div`
4227
4237
  background-color: ${({ $active: e, theme: n, $disabled: t }) => {
4228
4238
  var r, o, i;
4229
4239
  if (!t && !e)
4230
- 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) || xe.item.background.hover;
4240
+ 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) || Te.item.background.hover;
4231
4241
  }};
4232
4242
  }
4233
- `, Na = w.div`
4243
+ `, Na = C.div`
4234
4244
  display: flex;
4235
4245
  flex-direction: column;
4236
4246
 
@@ -4264,7 +4274,7 @@ const ma = w.div`
4264
4274
  padding: "12px 8px",
4265
4275
  children: [
4266
4276
  /* @__PURE__ */ a(
4267
- M,
4277
+ j,
4268
4278
  {
4269
4279
  appearance: c,
4270
4280
  cursorHover: !0,
@@ -4294,7 +4304,7 @@ const ma = w.div`
4294
4304
  padding: "12px 8px",
4295
4305
  children: [
4296
4306
  /* @__PURE__ */ a(
4297
- M,
4307
+ j,
4298
4308
  {
4299
4309
  appearance: c,
4300
4310
  cursorHover: !0,
@@ -4337,7 +4347,7 @@ const ma = w.div`
4337
4347
  gap: "8px",
4338
4348
  padding: x ? "8px 4px" : "8px 32px",
4339
4349
  children: [
4340
- x && /* @__PURE__ */ a(M, { appearance: "primary", icon: /* @__PURE__ */ a(Vt, {}) }),
4350
+ x && /* @__PURE__ */ a(j, { appearance: "primary", icon: /* @__PURE__ */ a(Vt, {}) }),
4341
4351
  /* @__PURE__ */ a(
4342
4352
  $,
4343
4353
  {
@@ -4353,11 +4363,11 @@ const ma = w.div`
4353
4363
  ) }) }, f.id);
4354
4364
  }) })
4355
4365
  ] }) });
4356
- }, Aa = w.div`
4366
+ }, Aa = C.div`
4357
4367
  & > div {
4358
4368
  background: ${({ $background: e, theme: n }) => {
4359
4369
  var t, r, o, i;
4360
- return e ? `${((r = (t = n == null ? void 0 : n.palette) == null ? void 0 : t.neutral) == null ? void 0 : r.N20) || E.palette.neutral.N20}` : `${((i = (o = n == null ? void 0 : n.palette) == null ? void 0 : o.neutral) == null ? void 0 : i.N0) || E.palette.neutral.N0}`;
4370
+ 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}`;
4361
4371
  }};
4362
4372
  }
4363
4373
  height: 90vh;
@@ -4367,7 +4377,7 @@ const ma = w.div`
4367
4377
  if (r.path && (e === r.path || e.startsWith(r.path + "/")) || (t = r.links) != null && t.some((o) => o.path === e)) return r.id;
4368
4378
  return null;
4369
4379
  }, El = (e) => {
4370
- const { collapseOnNavigate: n = !1, defaultOpenId: t = null, groups: r } = e, o = Kt(), [i, s] = V.useState(t), d = V.useRef(o.pathname), l = V.useCallback(
4380
+ const { collapseOnNavigate: n = !1, defaultOpenId: t = null, groups: r } = e, o = Zt(), [i, s] = V.useState(t), d = V.useRef(o.pathname), l = V.useCallback(
4371
4381
  (u) => {
4372
4382
  var c;
4373
4383
  return (c = u.find((g) => g.path === o.pathname)) == null ? void 0 : c.id;
@@ -4403,10 +4413,10 @@ const ma = w.div`
4403
4413
  u.id
4404
4414
  )) }) });
4405
4415
  };
4406
- function Y(e) {
4416
+ function W(e) {
4407
4417
  e.preventDefault();
4408
4418
  }
4409
- function Ce(e) {
4419
+ function De(e) {
4410
4420
  e.stopPropagation();
4411
4421
  }
4412
4422
  function bt() {
@@ -4450,7 +4460,7 @@ function ze(e) {
4450
4460
  return { x: e.clientX, y: e.clientY };
4451
4461
  }
4452
4462
  Array();
4453
- var On = typeof window < "u", G = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap();
4463
+ var On = typeof window < "u", Y = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap();
4454
4464
  function Tt() {
4455
4465
  if (!On) return !1;
4456
4466
  if ("userAgentData" in navigator)
@@ -4492,7 +4502,7 @@ var Ra = {
4492
4502
  scrollDebounceTimeout: void 0,
4493
4503
  frameIdX: void 0,
4494
4504
  frameIdY: void 0
4495
- }, b = Ra, we = !1, Qn, yn;
4505
+ }, b = Ra, Ce = !1, Qn, yn;
4496
4506
  function Fa() {
4497
4507
  b.scrollDebounceTimeout && clearTimeout(b.scrollDebounceTimeout), b.longPressTimeout && clearTimeout(b.longPressTimeout), b.frameIdX !== void 0 && cancelAnimationFrame(b.frameIdX), b.frameIdY !== void 0 && cancelAnimationFrame(b.frameIdY), b = { ...{
4498
4508
  affectedNodes: [],
@@ -4535,10 +4545,10 @@ function Fa() {
4535
4545
  } };
4536
4546
  }
4537
4547
  function wt(e) {
4538
- return Object.assign(b, e), e.initialParent.data.emit("dragStarted", b), we = !1, b.emit("dragStarted", b), b;
4548
+ return Object.assign(b, e), e.initialParent.data.emit("dragStarted", b), Ce = !1, b.emit("dragStarted", b), b;
4539
4549
  }
4540
4550
  function La() {
4541
- b.activeState && Ne(b.activeState.parent, void 0, b), b.selectedState && Se(b.selectedState.nodes, b.selectedState.parent, b), b.selectedState = b.activeState = void 0;
4551
+ b.activeState && Ae(b.activeState.parent, void 0, b), b.selectedState && Ne(b.selectedState.nodes, b.selectedState.parent, b), b.selectedState = b.activeState = void 0;
4542
4552
  }
4543
4553
  function Oa() {
4544
4554
  if (b.pointerDown && (b.pointerDown.node.el.draggable = !0), b.pointerDown = void 0, !re(b)) return;
@@ -4546,28 +4556,28 @@ function Oa() {
4546
4556
  re(b) && e.handleEnd(b);
4547
4557
  }
4548
4558
  function Pa(e) {
4549
- e.key === "Escape" && (b.selectedState && Se(b.selectedState.nodes, b.selectedState.parent, b), b.activeState && Ne(b.activeState.parent, void 0, b), b.selectedState = b.activeState = void 0);
4559
+ e.key === "Escape" && (b.selectedState && Ne(b.selectedState.nodes, b.selectedState.parent, b), b.activeState && Ae(b.activeState.parent, void 0, b), b.selectedState = b.activeState = void 0);
4550
4560
  }
4551
4561
  function Ma(e) {
4552
- if (!W(b)) return;
4553
- we = !0;
4562
+ if (!X(b)) return;
4563
+ Ce = !0;
4554
4564
  const n = b.initialParent.data.config.handleEnd;
4555
4565
  n(b);
4556
4566
  }
4557
4567
  function za(e) {
4558
- if (!W(b)) return;
4559
- Y(e);
4568
+ if (!X(b)) return;
4569
+ W(e);
4560
4570
  const { x: n, y: t } = ze(e);
4561
- W(b) && hn({ x: n, y: t }, e, b);
4571
+ X(b) && hn({ x: n, y: t }, e, b);
4562
4572
  }
4563
4573
  function Va(e) {
4564
4574
  if (!b.pointerDown || !b.pointerDown.validated) return;
4565
4575
  const n = b.pointerDown.parent.data.config;
4566
4576
  if (!(e.pointerType === "mouse" && !Tt()))
4567
4577
  if (re(b))
4568
- re(b) && Zn(e, b);
4578
+ re(b) && Kn(e, b);
4569
4579
  else {
4570
- if (Y(e), n.longPress && !b.longPress) {
4580
+ if (W(e), n.longPress && !b.longPress) {
4571
4581
  clearTimeout(b.longPressTimeout), b.longPress = !1;
4572
4582
  return;
4573
4583
  }
@@ -4581,7 +4591,7 @@ function Va(e) {
4581
4591
  t,
4582
4592
  r
4583
4593
  );
4584
- Zn(e, o, !0);
4594
+ Kn(e, o, !0);
4585
4595
  }
4586
4596
  }
4587
4597
  function ja({
@@ -4599,12 +4609,12 @@ function ja({
4599
4609
  keydown: Pa,
4600
4610
  drop: Ma,
4601
4611
  pointermove: Va,
4602
- pointercancel: K(r.handlePointercancel),
4612
+ pointercancel: Z(r.handlePointercancel),
4603
4613
  touchmove: (c) => {
4604
- W(b) && c.cancelable && Y(c);
4614
+ X(b) && c.cancelable && W(c);
4605
4615
  },
4606
4616
  contextmenu: (c) => {
4607
- re(b) && Y(c);
4617
+ re(b) && W(c);
4608
4618
  }
4609
4619
  })), Dt(e);
4610
4620
  const [o, i] = bt(), s = {
@@ -4644,7 +4654,7 @@ function ja({
4644
4654
  reapplyDragClasses: Ya,
4645
4655
  tearDownNode: Xa,
4646
4656
  tearDownNodeRemap: Wa,
4647
- remapFinished: Za,
4657
+ remapFinished: Ka,
4648
4658
  threshold: {
4649
4659
  horizontal: 0,
4650
4660
  vertical: 0
@@ -4657,7 +4667,7 @@ function ja({
4657
4667
  on: i,
4658
4668
  emit: o
4659
4669
  };
4660
- new MutationObserver(Qa).observe(e, { childList: !0 }), G.set(e, s), (l = r.plugins) == null || l.forEach((c) => {
4670
+ new MutationObserver(Qa).observe(e, { childList: !0 }), Y.set(e, s), (l = r.plugins) == null || l.forEach((c) => {
4661
4671
  var g, h;
4662
4672
  (h = (g = c(e)) == null ? void 0 : g.tearDown) == null || h.call(g);
4663
4673
  }), (p = r.plugins) == null || p.forEach((c) => {
@@ -4728,7 +4738,7 @@ function Ua({
4728
4738
  state: b
4729
4739
  });
4730
4740
  }
4731
- function Ne(e, n, t) {
4741
+ function Ae(e, n, t) {
4732
4742
  if (!n) {
4733
4743
  t.activeState = void 0;
4734
4744
  return;
@@ -4738,11 +4748,11 @@ function Ne(e, n, t) {
4738
4748
  parent: e
4739
4749
  };
4740
4750
  }
4741
- function Se(e, n, t) {
4751
+ function Ne(e, n, t) {
4742
4752
  const r = n.data.config.selectedClass;
4743
4753
  if (!t.selectedState) return;
4744
4754
  const o = Array.from(e);
4745
- Te(
4755
+ we(
4746
4756
  e.map((i) => i.el),
4747
4757
  r
4748
4758
  );
@@ -4759,11 +4769,11 @@ function Je(e, n, t, r, o = !1) {
4759
4769
  r.selectedState = {
4760
4770
  nodes: n,
4761
4771
  parent: e
4762
- }, Ne(e, t, r);
4772
+ }, Ae(e, t, r);
4763
4773
  }
4764
4774
  function _a(e, n) {
4765
4775
  const t = e.targetData.parent.data.enabledNodes[0];
4766
- t && (n.selectedState && n.selectedState.parent.el !== e.targetData.parent.el ? Ne(e.targetData.parent, t, n) : n.selectedState || Ne(e.targetData.parent, t, n));
4776
+ t && (n.selectedState && n.selectedState.parent.el !== e.targetData.parent.el ? Ae(e.targetData.parent, t, n) : n.selectedState || Ae(e.targetData.parent, t, n));
4767
4777
  }
4768
4778
  function Ha({
4769
4779
  currentParent: e,
@@ -4806,15 +4816,15 @@ function En(e, n, t) {
4806
4816
  n.setValues(t, e);
4807
4817
  }
4808
4818
  function qa(e, n) {
4809
- Ce(e.e), we = !0;
4819
+ De(e.e), Ce = !0;
4810
4820
  const t = n.initialParent.data.config.handleEnd;
4811
4821
  t(n);
4812
4822
  }
4813
4823
  function Dt(e) {
4814
- const n = G.get(e);
4824
+ const n = Y.get(e);
4815
4825
  n && n.abortControllers.mainParent && n.abortControllers.mainParent.abort();
4816
4826
  }
4817
- function W(e) {
4827
+ function X(e) {
4818
4828
  return "draggedNode" in e && !!e.draggedNode;
4819
4829
  }
4820
4830
  function re(e) {
@@ -4827,7 +4837,7 @@ function Ba(e, n) {
4827
4837
  scroll: en(n.config.handleParentScroll),
4828
4838
  drop: en(n.config.handleParentDrop),
4829
4839
  hasNestedParent: (t) => {
4830
- const r = G.get(t.target);
4840
+ const r = Y.get(t.target);
4831
4841
  r && (r.nestedParent = t.detail.parent);
4832
4842
  },
4833
4843
  focus: en(n.config.handleParentFocus)
@@ -4848,7 +4858,7 @@ function Ba(e, n) {
4848
4858
  if (!o) return;
4849
4859
  const i = r.parentNode;
4850
4860
  if (!(i instanceof HTMLElement)) return;
4851
- const s = G.get(i);
4861
+ const s = Y.get(i);
4852
4862
  s && (b.pointerDown = {
4853
4863
  parent: {
4854
4864
  el: i,
@@ -4868,24 +4878,24 @@ function Ga(e) {
4868
4878
  var t;
4869
4879
  const n = e.parent.data.config;
4870
4880
  e.node.data.abortControllers.mainNode = on(e.node.el, {
4871
- keydown: K(n.handleNodeKeydown),
4872
- dragstart: K(n.handleDragstart),
4873
- dragover: K(n.handleNodeDragover),
4874
- dragenter: K(n.handleNodeDragenter),
4875
- dragleave: K(n.handleNodeDragleave),
4876
- dragend: K(n.handleDragend),
4877
- drop: K(n.handleNodeDrop),
4878
- focus: K(n.handleNodeFocus),
4879
- blur: K(n.handleNodeBlur),
4880
- pointerup: K(n.handleNodePointerup),
4881
- pointercancel: K(n.handlePointercancel),
4882
- pointerdown: K(n.handleNodePointerdown),
4881
+ keydown: Z(n.handleNodeKeydown),
4882
+ dragstart: Z(n.handleDragstart),
4883
+ dragover: Z(n.handleNodeDragover),
4884
+ dragenter: Z(n.handleNodeDragenter),
4885
+ dragleave: Z(n.handleNodeDragleave),
4886
+ dragend: Z(n.handleDragend),
4887
+ drop: Z(n.handleNodeDrop),
4888
+ focus: Z(n.handleNodeFocus),
4889
+ blur: Z(n.handleNodeBlur),
4890
+ pointerup: Z(n.handleNodePointerup),
4891
+ pointercancel: Z(n.handlePointercancel),
4892
+ pointerdown: Z(n.handleNodePointerdown),
4883
4893
  handleNodePointerover: n.handleNodePointerover,
4884
4894
  touchmove: (r) => {
4885
- W(b) && r.cancelable && Y(r);
4895
+ X(b) && r.cancelable && W(r);
4886
4896
  },
4887
4897
  contextmenu: (r) => {
4888
- re(b) && Y(r);
4898
+ re(b) && W(r);
4889
4899
  }
4890
4900
  }), e.node.el.draggable = !0, n.reapplyDragClasses(e.node.el, e.parent.data), (t = e.parent.data.config.plugins) == null || t.forEach((r) => {
4891
4901
  var o, i;
@@ -4900,7 +4910,7 @@ function St(e) {
4900
4910
  });
4901
4911
  }
4902
4912
  function Ya(e, n) {
4903
- if (!W(b)) return;
4913
+ if (!X(b)) return;
4904
4914
  const t = re(b) ? n.config.synthDropZoneClass : n.config.dropZoneClass;
4905
4915
  b.draggedNode.el === e && Re([e], t, !0);
4906
4916
  }
@@ -4922,11 +4932,11 @@ function Qa(e) {
4922
4932
  if (e.length === 1 && e[0].addedNodes.length === 1 && !(e[0].addedNodes[0] instanceof HTMLElement))
4923
4933
  return;
4924
4934
  const n = e[0].target;
4925
- !(n instanceof HTMLElement) || !G.get(n) || pn(n);
4935
+ !(n instanceof HTMLElement) || !Y.get(n) || pn(n);
4926
4936
  }
4927
4937
  function pn(e, n) {
4928
4938
  var d;
4929
- const t = G.get(e);
4939
+ const t = Y.get(e);
4930
4940
  if (!t) return;
4931
4941
  t.privateClasses = Array.from(e.classList);
4932
4942
  const r = [], o = t.config;
@@ -4965,7 +4975,7 @@ function pn(e, n) {
4965
4975
  index: l
4966
4976
  }
4967
4977
  );
4968
- if (!W(b) && b.activeState && Ge(b.activeState.node.data.value, c.value) && Ne(
4978
+ if (!X(b) && b.activeState && Ge(b.activeState.node.data.value, c.value) && Ae(
4969
4979
  {
4970
4980
  data: t,
4971
4981
  el: e
@@ -4975,7 +4985,7 @@ function pn(e, n) {
4975
4985
  data: c
4976
4986
  },
4977
4987
  b
4978
- ), W(b) && Ge(b.draggedNode.data.value, c.value)) {
4988
+ ), X(b) && Ge(b.draggedNode.data.value, c.value)) {
4979
4989
  b.draggedNode.data = c, b.draggedNode.el = p;
4980
4990
  const g = b.draggedNodes.find(
4981
4991
  (h) => h.data.value === c.value
@@ -5005,15 +5015,15 @@ function pn(e, n) {
5005
5015
  }
5006
5016
  });
5007
5017
  }
5008
- G.set(e, { ...t, enabledNodes: s }), o.remapFinished(t), (d = t.config.plugins) == null || d.forEach((l) => {
5018
+ Y.set(e, { ...t, enabledNodes: s }), o.remapFinished(t), (d = t.config.plugins) == null || d.forEach((l) => {
5009
5019
  var p, u;
5010
5020
  (u = (p = l(e)) == null ? void 0 : p.remapFinished) == null || u.call(p);
5011
5021
  });
5012
5022
  }
5013
- function Za() {
5023
+ function Ka() {
5014
5024
  b.remapJustFinished = !0, "draggedNode" in b && (b.affectedNodes = []);
5015
5025
  }
5016
- function Ka(e) {
5026
+ function Za(e) {
5017
5027
  return !!e.targetData.parent.data.config.nativeDrag;
5018
5028
  }
5019
5029
  function Ja(e) {
@@ -5030,19 +5040,19 @@ function Ja(e) {
5030
5040
  return [];
5031
5041
  }
5032
5042
  function ei(e) {
5033
- W(b) && (b.emit("scrollStarted", b), !re(b) && (b.preventEnter = !0, yn && clearTimeout(yn), yn = setTimeout(() => {
5043
+ X(b) && (b.emit("scrollStarted", b), !re(b) && (b.preventEnter = !0, yn && clearTimeout(yn), yn = setTimeout(() => {
5034
5044
  b.preventEnter = !1, b.emit("scrollEnded", b);
5035
5045
  }, 100)));
5036
5046
  }
5037
5047
  function ni(e, n) {
5038
5048
  const t = e.targetData.parent.data.config;
5039
- if (!t.nativeDrag || !Ka(e) || !Et({
5049
+ if (!t.nativeDrag || !Za(e) || !Et({
5040
5050
  x: e.e.clientX,
5041
5051
  y: e.e.clientY,
5042
5052
  node: e.targetData.node,
5043
5053
  config: t
5044
5054
  })) {
5045
- Y(e.e);
5055
+ W(e.e);
5046
5056
  return;
5047
5057
  }
5048
5058
  let r = t.draggedNodes({
@@ -5068,7 +5078,7 @@ function ni(e, n) {
5068
5078
  }
5069
5079
  function ti(e, n) {
5070
5080
  var d, l;
5071
- if (Ce(e.e), n.pointerDown = {
5081
+ if (De(e.e), n.pointerDown = {
5072
5082
  parent: e.targetData.parent,
5073
5083
  node: e.targetData.node,
5074
5084
  validated: !1
@@ -5101,7 +5111,7 @@ function ti(e, n) {
5101
5111
  const p = e.targetData.parent.data.enabledNodes;
5102
5112
  if (n.selectedState && n.activeState)
5103
5113
  if (n.selectedState.parent.el !== e.targetData.parent.el) {
5104
- Se(n.selectedState.nodes, n.selectedState.parent, n), n.selectedState = void 0;
5114
+ Ne(n.selectedState.nodes, n.selectedState.parent, n), n.selectedState = void 0;
5105
5115
  for (let u = 0; u <= s.data.index; u++)
5106
5116
  r.push(p[u]);
5107
5117
  } else {
@@ -5128,7 +5138,7 @@ function ti(e, n) {
5128
5138
  }
5129
5139
  (l = (d = n.selectedState) == null ? void 0 : d.nodes) != null && l.length ? n.selectedState.nodes.findIndex(
5130
5140
  (u) => u.el === e.targetData.node.el
5131
- ) === -1 && (n.selectedState.parent.el !== e.targetData.parent.el ? Se(n.selectedState.nodes, e.targetData.parent, n) : t.config.multiDrag && Tt() ? r.push(...n.selectedState.nodes) : Se(n.selectedState.nodes, e.targetData.parent, n), Je(
5141
+ ) === -1 && (n.selectedState.parent.el !== e.targetData.parent.el ? Ne(n.selectedState.nodes, e.targetData.parent, n) : t.config.multiDrag && Tt() ? r.push(...n.selectedState.nodes) : Ne(n.selectedState.nodes, e.targetData.parent, n), Je(
5132
5142
  e.targetData.parent,
5133
5143
  r,
5134
5144
  e.targetData.node,
@@ -5147,7 +5157,7 @@ function ri(e, n, t, r = !1) {
5147
5157
  n.map((o) => o.el),
5148
5158
  r ? t.synthDraggingClass : t.draggingClass
5149
5159
  ), setTimeout(() => {
5150
- Te(
5160
+ we(
5151
5161
  n.map((o) => o.el),
5152
5162
  r ? t.synthDraggingClass : t.draggingClass
5153
5163
  ), Re(
@@ -5156,14 +5166,14 @@ function ri(e, n, t, r = !1) {
5156
5166
  ), Re(
5157
5167
  n.map((o) => o.el),
5158
5168
  r ? t.synthDropZoneClass : t.dropZoneClass
5159
- ), Te(
5169
+ ), we(
5160
5170
  n.map((o) => o.el),
5161
5171
  t.selectedClass
5162
5172
  );
5163
5173
  });
5164
5174
  }
5165
5175
  function oi(e, n) {
5166
- Ce(e.e);
5176
+ De(e.e);
5167
5177
  const t = wt(
5168
5178
  Ct(
5169
5179
  e.targetData.node,
@@ -5240,7 +5250,7 @@ function ii(e) {
5240
5250
  }
5241
5251
  function li(e, n) {
5242
5252
  const t = e.targetData.parent.data.config;
5243
- t.nativeDrag && (Ce(e.e), we = !0, t.handleEnd(n));
5253
+ t.nativeDrag && (De(e.e), Ce = !0, t.handleEnd(n));
5244
5254
  }
5245
5255
  function si(e) {
5246
5256
  e.e.target !== e.e.currentTarget && b.pointerDown && (b.pointerDown.node.el.draggable = !1);
@@ -5251,8 +5261,8 @@ function di(e) {
5251
5261
  function ci(e, n) {
5252
5262
  const t = e.targetData.parent.data.config;
5253
5263
  if (t.nativeDrag) {
5254
- if (Y(e.e), Ce(e.e), we) {
5255
- we = !1;
5264
+ if (W(e.e), De(e.e), Ce) {
5265
+ Ce = !1;
5256
5266
  return;
5257
5267
  }
5258
5268
  t.handleEnd(n);
@@ -5261,11 +5271,11 @@ function ci(e, n) {
5261
5271
  function ui(e, n) {
5262
5272
  var r;
5263
5273
  if (!re(n)) return;
5264
- if (Y(e.e), we) {
5265
- we = !1;
5274
+ if (W(e.e), Ce) {
5275
+ Ce = !1;
5266
5276
  return;
5267
5277
  }
5268
- const t = (r = G.get(n.initialParent.el)) == null ? void 0 : r.config;
5278
+ const t = (r = Y.get(n.initialParent.el)) == null ? void 0 : r.config;
5269
5279
  t != null && t.onDragend && t.onDragend({
5270
5280
  parent: n.currentParent,
5271
5281
  values: Pe(n.currentParent.el, n.currentParent.data),
@@ -5277,10 +5287,10 @@ function ui(e, n) {
5277
5287
  function pi(e) {
5278
5288
  var u, c, g, h, f;
5279
5289
  e.draggedNode && (e.draggedNode.el.draggable = !0);
5280
- const n = e.draggedNodes.map((x) => x.el), t = e.initialParent.data, r = re(e), o = (u = G.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;
5290
+ const n = e.draggedNodes.map((x) => x.el), t = e.initialParent.data, r = re(e), o = (u = Y.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;
5281
5291
  re(e) && (e.clonedDraggedNode && e.clonedDraggedNode.remove(), e.longPressTimeout && clearTimeout(e.longPressTimeout)), Nn(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(() => {
5282
- Te(n, i), Te(n, s), Te(n, d);
5283
- }), Se(e.draggedNodes, e.currentParent, e), Ne(e.currentParent, void 0, e);
5292
+ we(n, i), we(n, s), we(n, d);
5293
+ }), Ne(e.draggedNodes, e.currentParent, e), Ae(e.currentParent, void 0, e);
5284
5294
  const p = { ...e };
5285
5295
  (f = o == null ? void 0 : o.onDragend) == null || f.call(o, {
5286
5296
  parent: p.currentParent,
@@ -5294,12 +5304,12 @@ function pi(e) {
5294
5304
  }), e.emit("dragEnded", p), Fa();
5295
5305
  }
5296
5306
  function gi(e, n) {
5297
- Ce(e.e), !n.pointerSelection && n.selectedState && Se(n.selectedState.nodes, e.targetData.parent, n);
5307
+ De(e.e), !n.pointerSelection && n.selectedState && Ne(n.selectedState.nodes, e.targetData.parent, n);
5298
5308
  const t = e.targetData.parent.data.config;
5299
- n.pointerSelection = !1, "longPressTimeout" in n && n.longPressTimeout && clearTimeout(n.longPressTimeout), n.longPress = !1, Te(
5309
+ n.pointerSelection = !1, "longPressTimeout" in n && n.longPressTimeout && clearTimeout(n.longPressTimeout), n.longPress = !1, we(
5300
5310
  e.targetData.parent.data.enabledNodes.map((r) => r.el),
5301
5311
  t.longPressClass
5302
- ), W(n) && t.handleEnd(n);
5312
+ ), X(n) && t.handleEnd(n);
5303
5313
  }
5304
5314
  function hi(e, n, t, r, o, i) {
5305
5315
  var f, x;
@@ -5333,12 +5343,12 @@ function hi(e, n, t, r, o, i) {
5333
5343
  "height",
5334
5344
  "boxSizing",
5335
5345
  "overflow"
5336
- ], u = (y, D) => {
5346
+ ], u = (y, w) => {
5337
5347
  const T = window.getComputedStyle(y);
5338
- p.forEach((S) => {
5339
- D.style[S] = T[S];
5348
+ p.forEach((E) => {
5349
+ w.style[E] = T[E];
5340
5350
  });
5341
- }, c = (y, D = {}) => {
5351
+ }, c = (y, w = {}) => {
5342
5352
  Object.assign(y.style, {
5343
5353
  position: "absolute",
5344
5354
  zIndex: "9999",
@@ -5349,7 +5359,7 @@ function hi(e, n, t, r, o, i) {
5349
5359
  overflow: "hidden",
5350
5360
  width: `${i.width}px`,
5351
5361
  height: `${i.height}px`,
5352
- ...D
5362
+ ...w
5353
5363
  });
5354
5364
  };
5355
5365
  if (s.synthDragImage)
@@ -5358,9 +5368,9 @@ function hi(e, n, t, r, o, i) {
5358
5368
  d = e.el.cloneNode(!0), u(e.el, d), d.setAttribute("popover", "manual"), c(d);
5359
5369
  else {
5360
5370
  const y = document.createElement("div");
5361
- y.setAttribute("popover", "manual"), o.forEach((D) => {
5362
- const T = D.el.cloneNode(!0);
5363
- u(D.el, T), T.style.pointerEvents = "none", T.style.margin = "0", y.append(T);
5371
+ y.setAttribute("popover", "manual"), o.forEach((w) => {
5372
+ const T = w.el.cloneNode(!0);
5373
+ u(w.el, T), T.style.pointerEvents = "none", T.style.margin = "0", y.append(T);
5364
5374
  }), 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;
5365
5375
  }
5366
5376
  d.id = "dnd-dragged-node-clone", n.el.appendChild(d), d.showPopover();
@@ -5387,7 +5397,7 @@ function hi(e, n, t, r, o, i) {
5387
5397
  function fi(e, n, t) {
5388
5398
  const r = e.targetData.parent.data.config;
5389
5399
  n.longPressTimeout = setTimeout(() => {
5390
- n && (n.longPress = !0, r.longPressClass && e.e.cancelable && Re([t.el], r.longPressClass), Y(e.e));
5400
+ n && (n.longPress = !0, r.longPressClass && e.e.cancelable && Re([t.el], r.longPressClass), W(e.e));
5391
5401
  }, r.longPressDuration || 1e3);
5392
5402
  }
5393
5403
  function Nn(e, n = !0, t = !0) {
@@ -5396,12 +5406,12 @@ function Nn(e, n = !0, t = !0) {
5396
5406
  function Nt(e, n = !1) {
5397
5407
  var u;
5398
5408
  const { x: t, y: r } = e.coordinates, o = e.startLeft ?? 0, i = e.startTop ?? 0, s = window.scrollX ?? 0, d = window.scrollY ?? 0, l = t - o + s, p = r - i + d;
5399
- e.clonedDraggedNode.style.transform = `translate3d(${l}px, ${p}px, 0px)`, n && (e.clonedDraggedNode.style.opacity = "1", Te(
5409
+ e.clonedDraggedNode.style.transform = `translate3d(${l}px, ${p}px, 0px)`, n && (e.clonedDraggedNode.style.opacity = "1", we(
5400
5410
  e.draggedNodes.map((c) => c.el),
5401
5411
  (u = e.initialParent.data.config) == null ? void 0 : u.longPressClass
5402
5412
  ));
5403
5413
  }
5404
- function Zn(e, n, t = !1) {
5414
+ function Kn(e, n, t = !1) {
5405
5415
  const r = ze(e);
5406
5416
  n.coordinates.x = r.x, n.coordinates.y = r.y, Nt(n, t), n.scrollDebounceTimeout && (clearTimeout(n.scrollDebounceTimeout), n.scrollDebounceTimeout = void 0), n.scrollDebounceTimeout = setTimeout(() => {
5407
5417
  re(n) && hn(n.coordinates, e, n);
@@ -5437,13 +5447,13 @@ function mi(e, n) {
5437
5447
  var i;
5438
5448
  if (!e.targetData.parent.data.config.nativeDrag) return;
5439
5449
  const { x: r, y: o } = ze(e.e);
5440
- n.coordinates.y = o, n.coordinates.x = r, Y(e.e), Ce(e.e), W(n) && hn({ x: r, y: o }, e.e, n), e.targetData.parent.el === ((i = n.currentParent) == null ? void 0 : i.el) ? kt(e, n) : gn(e, n);
5450
+ n.coordinates.y = o, n.coordinates.x = r, W(e.e), De(e.e), X(n) && hn({ x: r, y: o }, e.e, n), e.targetData.parent.el === ((i = n.currentParent) == null ? void 0 : i.el) ? kt(e, n) : gn(e, n);
5441
5451
  }
5442
5452
  function bi(e, n) {
5443
5453
  if (!e.targetData.parent.data.config.nativeDrag) return;
5444
- Y(e.e), Ce(e.e);
5454
+ W(e.e), De(e.e);
5445
5455
  const { x: r, y: o } = ze(e.e);
5446
- W(n) && hn({ x: r, y: o }, e.e, n), gn(e, n);
5456
+ X(n) && hn({ x: r, y: o }, e.e, n), gn(e, n);
5447
5457
  }
5448
5458
  function vi(e) {
5449
5459
  e.detail.targetData.parent.el !== e.detail.state.currentParent.el && gn(e.detail, e.detail.state);
@@ -5467,10 +5477,10 @@ function yi({
5467
5477
  ) : !(!i.group || i.group !== s.group);
5468
5478
  }
5469
5479
  function xi(e, n) {
5470
- Y(e.e);
5480
+ W(e.e);
5471
5481
  }
5472
5482
  function Ti(e, n) {
5473
- Y(e.e);
5483
+ W(e.e);
5474
5484
  }
5475
5485
  function wi(e, n, t, r) {
5476
5486
  var u;
@@ -5519,11 +5529,11 @@ function kt(e, n) {
5519
5529
  targetNodes: [e.targetData.node]
5520
5530
  });
5521
5531
  }
5522
- function K(e) {
5532
+ function Z(e) {
5523
5533
  function n(t) {
5524
5534
  const r = ue.get(t);
5525
5535
  if (!r) return;
5526
- const o = G.get(t.parentNode);
5536
+ const o = Y.get(t.parentNode);
5527
5537
  if (o)
5528
5538
  return {
5529
5539
  node: {
@@ -5549,7 +5559,7 @@ function K(e) {
5549
5559
  };
5550
5560
  }
5551
5561
  function gn(e, n) {
5552
- Y(e.e), yi({
5562
+ W(e.e), yi({
5553
5563
  currentParent: n.currentParent,
5554
5564
  targetParent: e.targetData.parent,
5555
5565
  initialParent: n.initialParent,
@@ -5567,7 +5577,7 @@ function gn(e, n) {
5567
5577
  }
5568
5578
  function en(e) {
5569
5579
  function n(t) {
5570
- const r = G.get(t);
5580
+ const r = Y.get(t);
5571
5581
  if (r)
5572
5582
  return {
5573
5583
  parent: {
@@ -5614,7 +5624,7 @@ function Ci(e, n, t, r = !1) {
5614
5624
  ) : e.classList.add(s);
5615
5625
  return t.privateClasses = i, t;
5616
5626
  }
5617
- function Te(e, n) {
5627
+ function we(e, n) {
5618
5628
  if (!n) return;
5619
5629
  const t = xt(n);
5620
5630
  if (t.length)
@@ -5623,44 +5633,44 @@ function Te(e, n) {
5623
5633
  r.classList.remove(...t);
5624
5634
  continue;
5625
5635
  }
5626
- const o = ue.get(r) || G.get(r);
5636
+ const o = ue.get(r) || Y.get(r);
5627
5637
  if (o)
5628
5638
  for (const i of t)
5629
5639
  o.privateClasses.includes(i) || r.classList.remove(i);
5630
5640
  }
5631
5641
  }
5632
- function Kn(e, n, t, r, o) {
5642
+ function Zn(e, n, t, r, o) {
5633
5643
  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;
5634
5644
  if (d) {
5635
- const x = e[l], y = e[p], D = x > 0, T = x + y < (s ? o.state.rootScrollWidth || 0 : e[c]);
5645
+ const x = e[l], y = e[p], w = x > 0, T = x + y < (s ? o.state.rootScrollWidth || 0 : e[c]);
5636
5646
  return s ? {
5637
- left: D && g < y * 0.075,
5647
+ left: w && g < y * 0.075,
5638
5648
  right: T && g > y * (1 - 0.075)
5639
5649
  } : {
5640
- up: D && g < y * 0.075,
5650
+ up: w && g < y * 0.075,
5641
5651
  down: T && g > y * (1 - 0.075)
5642
5652
  };
5643
5653
  }
5644
5654
  if ((f === "auto" || f === "scroll") && e !== document.body && e !== document.documentElement) {
5645
- const x = e[c], y = e[u], D = e[l], T = D > 0, S = D < x - y;
5655
+ const x = e[c], y = e[u], w = e[l], T = w > 0, E = w < x - y;
5646
5656
  return s ? {
5647
5657
  left: T && g < h + y * 0.075,
5648
- right: S && g > h + y * (1 - 0.075)
5658
+ right: E && g > h + y * (1 - 0.075)
5649
5659
  } : {
5650
5660
  up: T && g < h + y * 0.075,
5651
- down: S && g > h + y * (1 - 0.075)
5661
+ down: E && g > h + y * (1 - 0.075)
5652
5662
  };
5653
5663
  }
5654
5664
  return s ? { left: !1, right: !1 } : { up: !1, down: !1 };
5655
5665
  }
5656
5666
  function Di(e, n, t, r) {
5657
- if (!W(t) || !t.draggedNode)
5667
+ if (!X(t) || !t.draggedNode)
5658
5668
  return;
5659
5669
  t.preventEnter = !0;
5660
5670
  const o = r.axis === "x", i = r.direction === "positive" ? 1 : -1, s = 20, d = o ? "lastScrollDirectionX" : "lastScrollDirectionY", l = o ? "frameIdX" : "frameIdY";
5661
5671
  t[l] !== void 0 && (cancelAnimationFrame(t[l]), t[l] = void 0), t[d] = r.direction;
5662
5672
  const p = () => {
5663
- if (!W(t) || !t.draggedNode) {
5673
+ if (!X(t) || !t.draggedNode) {
5664
5674
  t[l] !== void 0 && (cancelAnimationFrame(t[l]), t[l] = void 0);
5665
5675
  return;
5666
5676
  }
@@ -5678,7 +5688,7 @@ function Jn(e, n, t) {
5678
5688
  return n >= r.left && n <= r.right && t >= r.top && t <= r.bottom;
5679
5689
  }
5680
5690
  function hn(e, n, t) {
5681
- if (!W(t) || !t.draggedNode)
5691
+ if (!X(t) || !t.draggedNode)
5682
5692
  return;
5683
5693
  Nn(t);
5684
5694
  const { x: r, y: o } = e;
@@ -5686,10 +5696,10 @@ function hn(e, n, t) {
5686
5696
  const s = (l, p, u) => {
5687
5697
  Di(u, n, t, { axis: l, direction: p }), i = !0;
5688
5698
  }, d = (l) => {
5689
- const p = window.getComputedStyle(l), u = l.getBoundingClientRect(), c = Kn(l, n, p, u, {
5699
+ const p = window.getComputedStyle(l), u = l.getBoundingClientRect(), c = Zn(l, n, p, u, {
5690
5700
  axis: "x",
5691
5701
  state: t
5692
- }), g = Kn(l, n, p, u, { axis: "y" });
5702
+ }), g = Zn(l, n, p, u, { axis: "y" });
5693
5703
  (c.left || c.right) && (t.lastScrollContainerX = l, s("x", c.right ? "positive" : "negative", l)), (g.up || g.down) && (t.lastScrollContainerY = l, s("y", g.down ? "positive" : "negative", l));
5694
5704
  };
5695
5705
  if (t.lastScrollContainerX && Jn(t.lastScrollContainerX, r, o) && d(t.lastScrollContainerX), !i && t.lastScrollContainerY && Jn(t.lastScrollContainerY, r, o) && d(t.lastScrollContainerY), !i) {
@@ -5708,14 +5718,14 @@ function Si(e) {
5708
5718
  if (!fn(n)) return;
5709
5719
  let t, r = !0;
5710
5720
  for (; n && r; ) {
5711
- if (ue.has(n) || G.has(n)) {
5712
- r = !1, t = G.has(n);
5721
+ if (ue.has(n) || Y.has(n)) {
5722
+ r = !1, t = Y.has(n);
5713
5723
  break;
5714
5724
  }
5715
5725
  n = n.parentNode;
5716
5726
  }
5717
5727
  if (t) {
5718
- const o = G.get(n);
5728
+ const o = Y.get(n);
5719
5729
  return o ? {
5720
5730
  parent: {
5721
5731
  el: n,
@@ -5725,7 +5735,7 @@ function Si(e) {
5725
5735
  } else {
5726
5736
  const o = ue.get(n);
5727
5737
  if (!o) return;
5728
- const i = G.get(n.parentNode);
5738
+ const i = Y.get(n.parentNode);
5729
5739
  return i ? {
5730
5740
  node: {
5731
5741
  el: n,
@@ -5784,26 +5794,26 @@ function et(e) {
5784
5794
  }));
5785
5795
  }
5786
5796
  function Ii(e, n = {}) {
5787
- const t = Ie(null), [r, o] = z(e);
5797
+ const t = Ie(null), [r, o] = U(e);
5788
5798
  function i(s = {}) {
5789
5799
  et({ parent: t, state: [r, o], ...s });
5790
5800
  }
5791
- return Ee(() => {
5801
+ return ke(() => {
5792
5802
  et({ parent: t, state: [r, o], ...n });
5793
- }, [r]), Ee(() => () => {
5803
+ }, [r]), ke(() => () => {
5794
5804
  t.current && Dt(t.current);
5795
5805
  }, []), [t, r, o, i];
5796
5806
  }
5797
5807
  const nt = {
5798
5808
  border: {
5799
5809
  selected: {
5800
- color: E.palette.blue.B400
5810
+ color: S.palette.blue.B400
5801
5811
  },
5802
5812
  clear: {
5803
- color: E.palette.neutral.N40
5813
+ color: S.palette.neutral.N40
5804
5814
  }
5805
5815
  }
5806
- }, Ri = w.ul`
5816
+ }, Ri = C.ul`
5807
5817
  list-style: none;
5808
5818
  padding: 0;
5809
5819
  margin: 0;
@@ -5812,7 +5822,7 @@ const nt = {
5812
5822
  gap: 12px;
5813
5823
  width: 100%;
5814
5824
  justify-content: ${({ $isEmpty: e }) => e ? "center" : "flex-start"};
5815
- `, Fi = w.li`
5825
+ `, Fi = C.li`
5816
5826
  & > div {
5817
5827
  border: 1px solid
5818
5828
  ${({ theme: e, $active: n }) => {
@@ -5835,8 +5845,8 @@ const nt = {
5835
5845
  ), x = V.useRef(i);
5836
5846
  V.useEffect(() => {
5837
5847
  if (l) return;
5838
- const N = (C) => {
5839
- const I = C.detail ?? null;
5848
+ const N = (D) => {
5849
+ const I = D.detail ?? null;
5840
5850
  f(I);
5841
5851
  };
5842
5852
  return window.addEventListener(xn, N), () => window.removeEventListener(xn, N);
@@ -5845,10 +5855,10 @@ const nt = {
5845
5855
  l || window.dispatchEvent(
5846
5856
  new CustomEvent(xn, { detail: N })
5847
5857
  );
5848
- }, [l]), D = (N) => {
5858
+ }, [l]), w = (N) => {
5849
5859
  var k;
5850
5860
  if (l) return;
5851
- const C = N.target, I = (k = C == null ? void 0 : C.closest) == null ? void 0 : k.call(C, "li.dnd-item"), F = (I == null ? void 0 : I.getAttribute("data-label")) || null;
5861
+ const D = N.target, I = (k = D == null ? void 0 : D.closest) == null ? void 0 : k.call(D, "li.dnd-item"), F = (I == null ? void 0 : I.getAttribute("data-label")) || null;
5852
5862
  F && (f(F), y(F));
5853
5863
  }, T = V.useCallback(() => {
5854
5864
  l || (f(null), y(null));
@@ -5863,7 +5873,7 @@ const nt = {
5863
5873
  if (l) return;
5864
5874
  const N = x.current;
5865
5875
  if (g.length !== N.length && g.length === N.length + 1) {
5866
- const C = new Set(N), I = g.find((F) => !C.has(F)) || null;
5876
+ const D = new Set(N), I = g.find((F) => !D.has(F)) || null;
5867
5877
  if (I) {
5868
5878
  const F = t === "left" ? "right" : "left";
5869
5879
  d == null || d({ item: I, from: F, to: t });
@@ -5871,7 +5881,7 @@ const nt = {
5871
5881
  }
5872
5882
  x.current = g;
5873
5883
  }, [g, t, d, l]);
5874
- const S = g.length === 0;
5884
+ const E = g.length === 0;
5875
5885
  return /* @__PURE__ */ a(
5876
5886
  Ue,
5877
5887
  {
@@ -5883,14 +5893,14 @@ const nt = {
5883
5893
  Ri,
5884
5894
  {
5885
5895
  ref: c,
5886
- onPointerDownCapture: l ? void 0 : D,
5896
+ onPointerDownCapture: l ? void 0 : w,
5887
5897
  onPointerUpCapture: l ? void 0 : T,
5888
5898
  onPointerCancelCapture: l ? void 0 : T,
5889
- $isEmpty: S,
5899
+ $isEmpty: E,
5890
5900
  $locked: l,
5891
5901
  "aria-disabled": l,
5892
5902
  "data-locked": l || void 0,
5893
- children: S ? /* @__PURE__ */ a(
5903
+ children: E ? /* @__PURE__ */ a(
5894
5904
  oe,
5895
5905
  {
5896
5906
  background: !0,
@@ -5900,14 +5910,14 @@ const nt = {
5900
5910
  justifyContent: "center",
5901
5911
  children: /* @__PURE__ */ a($, { type: "label", size: "medium", appearance: "gray", padding: "12px", children: n || "No hay elementos en esta lista" })
5902
5912
  }
5903
- ) : g.map((N, C) => {
5913
+ ) : g.map((N, D) => {
5904
5914
  const I = !l && h === N;
5905
5915
  return /* @__PURE__ */ a(
5906
5916
  Fi,
5907
5917
  {
5908
5918
  className: `dnd-item${I ? " is-dragging" : ""}`,
5909
5919
  "data-label": N,
5910
- "data-first": !!(s && C === 0) || void 0,
5920
+ "data-first": !!(s && D === 0) || void 0,
5911
5921
  $active: I,
5912
5922
  children: /* @__PURE__ */ a(oe, { border: !0, borderRadius: "8px", width: "100%", children: /* @__PURE__ */ a(
5913
5923
  $,
@@ -5969,7 +5979,7 @@ const nt = {
5969
5979
  ]
5970
5980
  }
5971
5981
  );
5972
- }, Li = w.div`
5982
+ }, Li = C.div`
5973
5983
  & > button {
5974
5984
  height: 66px;
5975
5985
  min-width: 66px;
@@ -5987,7 +5997,7 @@ const nt = {
5987
5997
  }
5988
5998
  }
5989
5999
  }
5990
- `, kl = (e) => /* @__PURE__ */ a(Li, { children: /* @__PURE__ */ a(q, { ...e }) }), Oi = w.div`
6000
+ `, kl = (e) => /* @__PURE__ */ a(Li, { children: /* @__PURE__ */ a(B, { ...e }) }), Oi = C.div`
5991
6001
  display: flex;
5992
6002
  justify-content: space-between;
5993
6003
  align-items: center;
@@ -6020,7 +6030,7 @@ const nt = {
6020
6030
  const { handleBack: n, handleNext: t, disabledBack: r, disabledNext: o, textValues: i } = e;
6021
6031
  return /* @__PURE__ */ m(Oi, { children: [
6022
6032
  /* @__PURE__ */ a(
6023
- q,
6033
+ B,
6024
6034
  {
6025
6035
  ...e,
6026
6036
  iconBefore: /* @__PURE__ */ a(jt, {}),
@@ -6031,7 +6041,7 @@ const nt = {
6031
6041
  }
6032
6042
  ),
6033
6043
  /* @__PURE__ */ a(
6034
- q,
6044
+ B,
6035
6045
  {
6036
6046
  ...e,
6037
6047
  iconBefore: /* @__PURE__ */ a(Ut, {}),
@@ -6045,27 +6055,27 @@ const nt = {
6045
6055
  }, ce = {
6046
6056
  border: {
6047
6057
  color: {
6048
- regular: E.palette.neutral.N40,
6049
- disabled: E.palette.neutral.N40,
6050
- focus: E.palette.blue.B300,
6051
- invalid: E.palette.red.R400
6058
+ regular: S.palette.neutral.N40,
6059
+ disabled: S.palette.neutral.N40,
6060
+ focus: S.palette.blue.B300,
6061
+ invalid: S.palette.red.R400
6052
6062
  }
6053
6063
  },
6054
6064
  background: {
6055
6065
  color: {
6056
- regular: E.palette.neutral.N0,
6057
- disabled: E.palette.neutral.N10
6066
+ regular: S.palette.neutral.N0,
6067
+ disabled: S.palette.neutral.N10
6058
6068
  }
6059
6069
  },
6060
6070
  content: {
6061
6071
  color: {
6062
- regular: E.palette.neutral.N900,
6063
- disabled: E.palette.neutral.N70
6072
+ regular: S.palette.neutral.N900,
6073
+ disabled: S.palette.neutral.N70
6064
6074
  }
6065
6075
  },
6066
6076
  placeholder: {
6067
6077
  color: {
6068
- regular: E.palette.neutral.N300
6078
+ regular: S.palette.neutral.N300
6069
6079
  }
6070
6080
  },
6071
6081
  message: {
@@ -6076,11 +6086,11 @@ const nt = {
6076
6086
  },
6077
6087
  option: {
6078
6088
  background: {
6079
- regular: E.palette.neutral.N0,
6080
- hover: E.palette.neutral.N30
6089
+ regular: S.palette.neutral.N0,
6090
+ hover: S.palette.neutral.N30
6081
6091
  }
6082
6092
  }
6083
- }, Pi = w.ul`
6093
+ }, Pi = C.ul`
6084
6094
  display: flex;
6085
6095
  flex-direction: column;
6086
6096
  padding: 4px 0px;
@@ -6156,17 +6166,17 @@ const nt = {
6156
6166
  children: n
6157
6167
  }
6158
6168
  );
6159
- }, zi = w.div`
6169
+ }, zi = C.div`
6160
6170
  cursor: ${({ $disabled: e }) => e && "not-allowed"};
6161
6171
  width: ${({ $fullwidth: e }) => e ? "100%" : "fit-content"};
6162
6172
  position: relative;
6163
- `, Vi = w.div`
6173
+ `, Vi = C.div`
6164
6174
  display: flex;
6165
6175
  align-items: center;
6166
6176
  margin-bottom: 4px;
6167
6177
  gap: 4px;
6168
6178
  pointer-events: ${({ $disabled: e }) => e && "none"};
6169
- `, ji = w.div`
6179
+ `, ji = C.div`
6170
6180
  display: grid;
6171
6181
  height: ${({ $size: e }) => e === "compact" ? "40px" : "48px"};
6172
6182
  padding: 8px 16px;
@@ -6190,7 +6200,7 @@ const nt = {
6190
6200
  const o = ((s = (i = r == null ? void 0 : r.input) == null ? void 0 : i.border) == null ? void 0 : s.color) || ce.border.color;
6191
6201
  return e ? o.disabled : n ? o.invalid : t ? o.focus : o.regular;
6192
6202
  }};
6193
- `, Ui = w.input`
6203
+ `, Ui = C.input`
6194
6204
  display: ${({ $inputWithData: e }) => e ? "none" : "block"};
6195
6205
  outline: none;
6196
6206
  padding: 0;
@@ -6202,19 +6212,19 @@ const nt = {
6202
6212
  cursor: ${({ readOnly: e, $disabled: n }) => n ? "not-allowed" : e ? "pointer" : "text"};
6203
6213
  font-family: ${({ theme: e }) => {
6204
6214
  var n, t, r;
6205
- 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) || E.typography.body.large.font;
6215
+ 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;
6206
6216
  }};
6207
6217
  font-size: ${({ theme: e }) => {
6208
6218
  var n, t, r;
6209
- 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) || E.typography.body.large.size;
6219
+ 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;
6210
6220
  }};
6211
6221
  line-height: ${({ theme: e }) => {
6212
6222
  var n, t, r;
6213
- 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) || E.typography.body.large.lineHeight;
6223
+ 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;
6214
6224
  }};
6215
6225
  letter-spacing: ${({ theme: e }) => {
6216
6226
  var n, t, r;
6217
- 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) || E.typography.body.large.tracking;
6227
+ 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;
6218
6228
  }};
6219
6229
  font-weight: ${({ theme: e }) => {
6220
6230
  var n, t, r;
@@ -6248,7 +6258,7 @@ const nt = {
6248
6258
  &:-webkit-autofill {
6249
6259
  -webkit-background-clip: text;
6250
6260
  }
6251
- `, _i = w.div`
6261
+ `, _i = C.div`
6252
6262
  display: flex;
6253
6263
  justify-content: flex-end;
6254
6264
  transition: ease;
@@ -6264,7 +6274,7 @@ const qi = (e) => {
6264
6274
  const { message: n } = e, t = Rn($n), r = ((i = (o = t == null ? void 0 : t.input) == null ? void 0 : o.message) == null ? void 0 : i.appearance) || ce.message.appearance;
6265
6275
  return /* @__PURE__ */ m(v, { alignItems: "center", gap: "4px", margin: "4px 0 0 16px", children: [
6266
6276
  /* @__PURE__ */ a(
6267
- M,
6277
+ j,
6268
6278
  {
6269
6279
  appearance: r,
6270
6280
  icon: /* @__PURE__ */ a(Ht, {}),
@@ -6283,7 +6293,7 @@ const qi = (e) => {
6283
6293
  )
6284
6294
  ] });
6285
6295
  }, Bi = Qt((e, n) => {
6286
- var Ae, ve;
6296
+ var me, L;
6287
6297
  const {
6288
6298
  displayList: t,
6289
6299
  disabled: r,
@@ -6300,25 +6310,25 @@ const qi = (e) => {
6300
6310
  required: f,
6301
6311
  size: x,
6302
6312
  value: y,
6303
- picker: D,
6313
+ picker: w,
6304
6314
  showChevron: T,
6305
- checkedItems: S,
6315
+ checkedItems: E,
6306
6316
  editable: N = !1,
6307
- clearable: C,
6317
+ clearable: D,
6308
6318
  onKeyUp: I,
6309
6319
  onBlur: F,
6310
6320
  onChange: k,
6311
- onClick: _,
6312
- onFocus: ae,
6313
- onOptionClick: he,
6314
- onCheckboxChange: fe,
6315
- handleClear: pe
6316
- } = e, ie = Rn($n), me = ((ve = (Ae = ie == null ? void 0 : ie.input) == null ? void 0 : Ae.required) == null ? void 0 : ve.appearance) || ce.required.appearance, be = f && !r, P = D || y === "" ? "" : rt(g, y), de = dt(
6317
- () => g.filter((U) => S.includes(U.id)),
6318
- [g, S]
6319
- ), ke = (U, L) => {
6320
- U.stopPropagation(), fe({
6321
- target: { checked: !1, value: L }
6321
+ onClick: H,
6322
+ onFocus: se,
6323
+ onOptionClick: ve,
6324
+ onCheckboxChange: pe,
6325
+ handleClear: ge
6326
+ } = e, ae = Rn($n), ye = ((L = (me = ae == null ? void 0 : ae.input) == null ? void 0 : me.required) == null ? void 0 : L.appearance) || ce.required.appearance, Se = f && !r, de = w || y === "" ? "" : rt(g, y), he = dt(
6327
+ () => g.filter((O) => E.includes(O.id)),
6328
+ [g, E]
6329
+ ), fe = (O, M) => {
6330
+ O.stopPropagation(), pe({
6331
+ target: { checked: !1, value: M }
6322
6332
  });
6323
6333
  };
6324
6334
  return /* @__PURE__ */ m(zi, { $fullwidth: i, $disabled: r, ref: n, children: [
@@ -6341,7 +6351,7 @@ const qi = (e) => {
6341
6351
  children: l
6342
6352
  }
6343
6353
  ),
6344
- be && /* @__PURE__ */ a($, { appearance: me, size: "small", type: "body", children: "(Requerido)" })
6354
+ Se && /* @__PURE__ */ a($, { appearance: ye, size: "small", type: "body", children: "(Requerido)" })
6345
6355
  ]
6346
6356
  }
6347
6357
  ),
@@ -6351,7 +6361,7 @@ const qi = (e) => {
6351
6361
  $disabled: r,
6352
6362
  $focused: o,
6353
6363
  $invalid: d,
6354
- onClick: N ? void 0 : _,
6364
+ onClick: N ? void 0 : H,
6355
6365
  $value: y,
6356
6366
  $size: x,
6357
6367
  children: [
@@ -6360,7 +6370,7 @@ const qi = (e) => {
6360
6370
  {
6361
6371
  $inputWithData: !!y,
6362
6372
  autoComplete: "off",
6363
- value: P,
6373
+ value: de,
6364
6374
  name: c,
6365
6375
  id: s,
6366
6376
  placeholder: h,
@@ -6370,10 +6380,10 @@ const qi = (e) => {
6370
6380
  $fullwidth: i,
6371
6381
  $focused: o,
6372
6382
  readOnly: !N,
6373
- onFocus: ae,
6383
+ onFocus: se,
6374
6384
  onBlur: F,
6375
- onChange: (U) => k(c, U.target.value),
6376
- onClick: N ? _ : void 0,
6385
+ onChange: (O) => k(c, O.target.value),
6386
+ onClick: N ? H : void 0,
6377
6387
  onKeyUp: I
6378
6388
  }
6379
6389
  ),
@@ -6385,30 +6395,30 @@ const qi = (e) => {
6385
6395
  alignItems: "center",
6386
6396
  justifyContent: "space-between",
6387
6397
  children: [
6388
- /* @__PURE__ */ a(v, { gap: "8px", alignItems: "center", wrap: "wrap", children: C && !r && (D ? de.map((U) => /* @__PURE__ */ a(
6389
- De,
6398
+ /* @__PURE__ */ a(v, { gap: "8px", alignItems: "center", wrap: "wrap", children: D && !r && (w ? he.map((O) => /* @__PURE__ */ a(
6399
+ Ee,
6390
6400
  {
6391
6401
  appearance: "gray",
6392
- label: U.label,
6402
+ label: O.label,
6393
6403
  removable: !0,
6394
6404
  displayIcon: !1,
6395
- onClose: (L) => ke(L, U.id)
6405
+ onClose: (M) => fe(M, O.id)
6396
6406
  },
6397
- U.id
6407
+ O.id
6398
6408
  )) : (y ?? "") !== "" && /* @__PURE__ */ a(
6399
- De,
6409
+ Ee,
6400
6410
  {
6401
6411
  appearance: "gray",
6402
6412
  label: rt(g, y),
6403
6413
  removable: !0,
6404
6414
  displayIcon: !1,
6405
- onClose: (U) => {
6406
- U.stopPropagation(), pe();
6415
+ onClose: (O) => {
6416
+ O.stopPropagation(), ge();
6407
6417
  }
6408
6418
  }
6409
6419
  )) }),
6410
6420
  T && /* @__PURE__ */ a(_i, { $displayList: t, children: /* @__PURE__ */ a(
6411
- M,
6421
+ j,
6412
6422
  {
6413
6423
  appearance: "dark",
6414
6424
  icon: /* @__PURE__ */ a(_t, {}),
@@ -6427,18 +6437,18 @@ const qi = (e) => {
6427
6437
  Mi,
6428
6438
  {
6429
6439
  maxItems: p,
6430
- onOptionClick: he,
6440
+ onOptionClick: ve,
6431
6441
  options: g,
6432
- children: g.map((U) => /* @__PURE__ */ a(
6442
+ children: g.map((O) => /* @__PURE__ */ a(
6433
6443
  Xt,
6434
6444
  {
6435
- id: U.id,
6436
- label: U.label,
6437
- checked: S.includes(U.id),
6438
- onCheckboxChange: fe,
6439
- picker: D
6445
+ id: O.id,
6446
+ label: O.label,
6447
+ checked: E.includes(O.id),
6448
+ onCheckboxChange: pe,
6449
+ picker: w
6440
6450
  },
6441
- U.id
6451
+ O.id
6442
6452
  ))
6443
6453
  }
6444
6454
  )
@@ -6461,77 +6471,77 @@ const qi = (e) => {
6461
6471
  options: f,
6462
6472
  placeholder: x,
6463
6473
  required: y = !1,
6464
- size: D = "wide",
6474
+ size: w = "wide",
6465
6475
  value: T,
6466
- showOptions: S = !1,
6476
+ showOptions: E = !1,
6467
6477
  picker: N = !1,
6468
- showChevron: C = !0,
6478
+ showChevron: D = !0,
6469
6479
  editable: I = !1,
6470
6480
  clearable: F = !0
6471
- } = e, [k, _] = z(!1), [ae, he] = z(!1), [fe, pe] = z([]), ie = Ie(null);
6472
- Ee(() => {
6481
+ } = e, [k, H] = U(!1), [se, ve] = U(!1), [pe, ge] = U([]), ae = Ie(null);
6482
+ ke(() => {
6473
6483
  if (N) {
6474
- const L = T ? T.split(",").map((X) => X.trim()) : [];
6475
- pe(L);
6484
+ const M = T ? T.split(",").map((P) => P.trim()) : [];
6485
+ ge(M);
6476
6486
  }
6477
6487
  }, [T, N]);
6478
- function me() {
6479
- u(l, ""), pe([]), _(!1);
6488
+ function ye() {
6489
+ u(l, ""), ge([]), H(!1);
6480
6490
  }
6481
- function be(L) {
6491
+ function Se(M) {
6482
6492
  if (!n) {
6483
- _(!k);
6493
+ H(!k);
6484
6494
  try {
6485
- c && c(L);
6486
- } catch (X) {
6487
- console.error(`Error when clicking over select. ${X}`);
6495
+ c && c(M);
6496
+ } catch (P) {
6497
+ console.error(`Error when clicking over select. ${P}`);
6488
6498
  }
6489
6499
  }
6490
6500
  }
6491
- const P = Zt((L) => {
6492
- ie.current && L.target && !ie.current.contains(L.target) && _(!1);
6501
+ const de = Kt((M) => {
6502
+ ae.current && M.target && !ae.current.contains(M.target) && H(!1);
6493
6503
  }, []);
6494
- function de(L) {
6504
+ function he(M) {
6495
6505
  try {
6496
- L.type === "focus" && (he(!0), g && g(L)), L.type === "blur" && (he(!1), p && p(L));
6497
- } catch (X) {
6498
- console.error(`Error executing focus/blur callback. ${X}`);
6506
+ M.type === "focus" && (ve(!0), g && g(M)), M.type === "blur" && (ve(!1), p && p(M));
6507
+ } catch (P) {
6508
+ console.error(`Error executing focus/blur callback. ${P}`);
6499
6509
  }
6500
6510
  }
6501
- function ke(L) {
6502
- _(!1);
6511
+ function fe(M) {
6512
+ H(!1);
6503
6513
  try {
6504
- u && u(l, L);
6505
- } catch (X) {
6506
- console.error(`Error when changing value using callback. ${X}`);
6514
+ u && u(l, M);
6515
+ } catch (P) {
6516
+ console.error(`Error when changing value using callback. ${P}`);
6507
6517
  }
6508
6518
  }
6509
- function Ae(L) {
6510
- L.key === "Escape" && _(!1), _(!k);
6519
+ function me(M) {
6520
+ M.key === "Escape" && H(!1), H(!k);
6511
6521
  try {
6512
- h && h(L);
6513
- } catch (X) {
6514
- console.error(`Error when clicking over select. ${X}`);
6522
+ h && h(M);
6523
+ } catch (P) {
6524
+ console.error(`Error when clicking over select. ${P}`);
6515
6525
  }
6516
6526
  }
6517
- function ve(L) {
6518
- const { value: X, checked: Pn } = L.target;
6519
- pe((Ve) => {
6520
- const R = Pn ? [...Ve, X] : Ve.filter((H) => H !== X);
6527
+ function L(M) {
6528
+ const { value: P, checked: Pn } = M.target;
6529
+ ge((Ve) => {
6530
+ const R = Pn ? [...Ve, P] : Ve.filter((q) => q !== P);
6521
6531
  return u(l, R.join(",")), R;
6522
6532
  });
6523
6533
  }
6524
- Ee(() => (document.addEventListener("click", P), () => {
6525
- document.removeEventListener("click", P);
6526
- }), [P]);
6527
- const U = dt(() => F || N ? f : [{ id: "empty-option", label: "", value: "" }, ...f], [f, F, N]);
6534
+ ke(() => (document.addEventListener("click", de), () => {
6535
+ document.removeEventListener("click", de);
6536
+ }), [de]);
6537
+ const O = dt(() => F || N ? f : [{ id: "empty-option", label: "", value: "" }, ...f], [f, F, N]);
6528
6538
  return /* @__PURE__ */ a(
6529
6539
  Bi,
6530
6540
  {
6531
- ref: ie,
6541
+ ref: ae,
6532
6542
  disabled: n,
6533
- displayList: k || S,
6534
- focused: ae,
6543
+ displayList: k || E,
6544
+ focused: se,
6535
6545
  fullwidth: t,
6536
6546
  id: r,
6537
6547
  invalid: o,
@@ -6539,24 +6549,24 @@ const qi = (e) => {
6539
6549
  maxItems: s,
6540
6550
  message: d,
6541
6551
  name: l,
6542
- options: U,
6552
+ options: O,
6543
6553
  placeholder: x,
6544
6554
  required: y,
6545
- size: D,
6555
+ size: w,
6546
6556
  value: T,
6547
6557
  picker: N,
6548
- showChevron: C,
6549
- checkedItems: fe,
6558
+ showChevron: D,
6559
+ checkedItems: pe,
6550
6560
  editable: I,
6551
6561
  clearable: F,
6552
- handleClear: me,
6553
- onBlur: de,
6562
+ handleClear: ye,
6563
+ onBlur: he,
6554
6564
  onChange: u,
6555
- onClick: be,
6556
- onFocus: de,
6557
- onOptionClick: ke,
6558
- onKeyUp: Ae,
6559
- onCheckboxChange: ve
6565
+ onClick: Se,
6566
+ onFocus: he,
6567
+ onOptionClick: fe,
6568
+ onKeyUp: me,
6569
+ onCheckboxChange: L
6560
6570
  }
6561
6571
  );
6562
6572
  }, $l = (e) => {
@@ -6616,10 +6626,10 @@ const qi = (e) => {
6616
6626
  const o = je.keys().next().value;
6617
6627
  o !== void 0 && je.delete(o);
6618
6628
  }
6619
- }, ot = /* @__PURE__ */ new Map(), Qi = 1e3, Zi = (e) => {
6629
+ }, ot = /* @__PURE__ */ new Map(), Qi = 1e3, Ki = (e) => {
6620
6630
  const n = Date.now(), t = ot.get(e) || 0;
6621
6631
  return n - t < Qi ? !0 : (ot.set(e, n), !1);
6622
- }, Ki = (e) => {
6632
+ }, Zi = (e) => {
6623
6633
  const n = er(e);
6624
6634
  return {
6625
6635
  spa: "es",
@@ -6632,9 +6642,9 @@ const qi = (e) => {
6632
6642
  }, Ji = async (e, n, { url: t, apiKey: r }) => {
6633
6643
  const o = `${n}:${e}`, i = Wi(e, n);
6634
6644
  if (i) return i;
6635
- if (Zi(o))
6645
+ if (Ki(o))
6636
6646
  return console.warn(`[Throttle] Skipped translation for: "${e}"`), e;
6637
- const s = Ki(e);
6647
+ const s = Zi(e);
6638
6648
  try {
6639
6649
  const { data: d } = await Jt.post(
6640
6650
  t,
@@ -6690,7 +6700,7 @@ export {
6690
6700
  tt as DraggableList,
6691
6701
  ka as DropdownMenu,
6692
6702
  El as DropdownMenuContainer,
6693
- ge as EValueHowToSetUp,
6703
+ be as EValueHowToSetUp,
6694
6704
  bl as Filter,
6695
6705
  vl as FilterModal,
6696
6706
  yl as FormFilter,