@isettingkit/business-rules 2.2.18 → 2.2.19

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 +996 -993
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,22 +1,22 @@
1
- import { jsx as a, jsxs as v, Fragment as V } from "react/jsx-runtime";
2
- import { MdOutlineDelete as yt, MdClear as Qt, MdAdd as Ke, MdOutlineCreate as lr, MdExpandLess as sr, MdExpandMore as _t, MdInfo as dr, MdCached as cr, MdOutlineInfo as ur, MdClose as pr, MdOutlineFilterAltOff as gr, MdOutlineFilterAlt as _n, MdChevronRight as un, MdArrowRight as hr, MdOutlineArrowCircleLeft as fr, MdOutlineArrowCircleRight as mr, MdKeyboardArrowUp as br, MdKeyboardArrowDown as vr, MdOutlineArrowBack as yr } from "react-icons/md";
3
- import { inube as k, Stack as x, Divider as W, Icon as B, Text as R, SkeletonLine as oe, useMediaQuery as ie, Blanket as Jt, Button as Y, Grid as we, Toggle as Tt, Checkbox as Zt, Date as Fe, Box as Tr, Tag as He, Tabs as Vn, SkeletonIcon as xr, Fieldset as Be, OptionList as wr, Checkpicker as Sr } from "@inubekit/inubekit";
4
- import D, { keyframes as Kt, ThemeContext as Cr } from "styled-components";
1
+ import { jsx as a, jsxs as b, Fragment as V } from "react/jsx-runtime";
2
+ import { MdOutlineDelete as yt, MdClear as Qt, MdAdd as Ke, MdOutlineCreate as lr, MdExpandLess as sr, MdExpandMore as _t, MdInfo as dr, MdCached as cr, MdOutlineInfo as ur, MdClose as pr, MdOutlineFilterAltOff as hr, MdOutlineFilterAlt as _n, MdChevronRight as un, MdArrowRight as gr, MdOutlineArrowCircleLeft as fr, MdOutlineArrowCircleRight as mr, MdKeyboardArrowUp as br, MdKeyboardArrowDown as vr, MdOutlineArrowBack as yr } from "react-icons/md";
3
+ import { inube as A, Stack as T, Divider as W, Icon as B, Text as R, SkeletonLine as ie, useMediaQuery as ae, Blanket as Jt, Button as Y, Grid as Se, Toggle as Tt, Checkbox as Zt, Date as Fe, Box as Tr, Tag as He, Tabs as Vn, SkeletonIcon as xr, Fieldset as Be, OptionList as wr, Checkpicker as Sr } from "@inubekit/inubekit";
4
+ import N, { keyframes as Kt, ThemeContext as Cr } from "styled-components";
5
5
  import { ValueDataType as H, ValueHowToSetUp as P, DecisionConditionRender as ft, DecisionConditionRenderNew as pn } from "@isettingkit/input";
6
6
  import { DecisionViewConditionRenderer as Re, DecisionViewConditionRendererNew as st } from "@isettingkit/view";
7
7
  import { createPortal as en } from "react-dom";
8
8
  import { useFormik as tn } from "formik";
9
- import { string as be, mixed as xe, object as J, number as pe, lazy as Qe, date as Le } from "yup";
9
+ import { string as be, mixed as we, object as Q, number as ge, lazy as Qe, date as Le } from "yup";
10
10
  import _, { useState as q, useRef as qe, useEffect as Je, useContext as Dr, useMemo as Pn } from "react";
11
11
  import { Link as Un, useNavigate as Nr, useLocation as Er } from "react-router-dom";
12
12
  import kr from "axios";
13
13
  import { franc as Ar } from "franc-min";
14
- const $r = D.div`
14
+ const $r = N.div`
15
15
  border-radius: 8px;
16
16
  border: 1px solid
17
17
  ${({ theme: e }) => {
18
18
  var t, n;
19
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
19
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
20
20
  }};
21
21
  box-sizing: border-box;
22
22
  display: flex;
@@ -27,7 +27,7 @@ const $r = D.div`
27
27
  height: 100%;
28
28
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
29
29
  `;
30
- D.div`
30
+ N.div`
31
31
  width: 100%;
32
32
  height: 100%;
33
33
  overflow-y: auto;
@@ -48,11 +48,11 @@ D.div`
48
48
  `;
49
49
  const et = (e) => {
50
50
  const { children: t, controls: n = !0, handleDelete: r, id: o } = e;
51
- return /* @__PURE__ */ a($r, { children: /* @__PURE__ */ v(x, { direction: "column", gap: "16px", padding: "12px 16px", children: [
51
+ return /* @__PURE__ */ a($r, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "16px", padding: "12px 16px", children: [
52
52
  t,
53
- n && /* @__PURE__ */ v(V, { children: [
53
+ n && /* @__PURE__ */ b(V, { children: [
54
54
  /* @__PURE__ */ a(W, {}),
55
- /* @__PURE__ */ a(x, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ a(
55
+ /* @__PURE__ */ a(T, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ a(
56
56
  B,
57
57
  {
58
58
  cursorHover: !0,
@@ -81,16 +81,16 @@ const _r = {
81
81
  }, We = (e) => {
82
82
  const t = e == null ? void 0 : e.value, n = typeof t == "object" && t !== null && !Array.isArray(t), r = _r[e == null ? void 0 : e.howToSetTheDecision] || Ir;
83
83
  return n && r(t) || t || void 0;
84
- }, gn = D.div`
84
+ }, hn = N.div`
85
85
  & > div {
86
86
  border-radius: 8px;
87
87
  border: 1px solid
88
88
  ${({ theme: e }) => {
89
89
  var t, n;
90
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
90
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
91
91
  }};
92
92
  }
93
- `, hn = D.div`
93
+ `, gn = N.div`
94
94
  width: 100%;
95
95
  height: 100%;
96
96
  overflow-y: auto;
@@ -120,8 +120,8 @@ const _r = {
120
120
  textValues: l,
121
121
  visibleConditions: s
122
122
  } = e;
123
- return i ? /* @__PURE__ */ v(x, { direction: "column", gap: "12px", children: [
124
- /* @__PURE__ */ a(x, { direction: "column", alignItems: "center", children: /* @__PURE__ */ a(
123
+ return i ? /* @__PURE__ */ b(T, { direction: "column", gap: "12px", children: [
124
+ /* @__PURE__ */ a(T, { direction: "column", alignItems: "center", children: /* @__PURE__ */ a(
125
125
  Re,
126
126
  {
127
127
  element: o,
@@ -132,8 +132,8 @@ const _r = {
132
132
  }
133
133
  ) }, n.ruleName),
134
134
  /* @__PURE__ */ a(W, { dashed: !0 }),
135
- /* @__PURE__ */ a(hn, { children: /* @__PURE__ */ v(
136
- x,
135
+ /* @__PURE__ */ a(gn, { children: /* @__PURE__ */ b(
136
+ T,
137
137
  {
138
138
  direction: "column",
139
139
  gap: "12px",
@@ -151,7 +151,7 @@ const _r = {
151
151
  children: l.factsThatConditionIt
152
152
  }
153
153
  ),
154
- s.length > 0 && s.map((p) => /* @__PURE__ */ a(gn, { children: /* @__PURE__ */ a(x, { direction: "column", padding: "8px", children: /* @__PURE__ */ a(
154
+ s.length > 0 && s.map((p) => /* @__PURE__ */ a(hn, { children: /* @__PURE__ */ a(T, { direction: "column", padding: "8px", children: /* @__PURE__ */ a(
155
155
  Re,
156
156
  {
157
157
  element: { ...p, value: p.value },
@@ -173,32 +173,32 @@ const _r = {
173
173
  ]
174
174
  }
175
175
  ) })
176
- ] }) : /* @__PURE__ */ v(x, { direction: "column", gap: "12px", children: [
177
- /* @__PURE__ */ v(x, { direction: "column", alignItems: "center", gap: "4px", children: [
178
- /* @__PURE__ */ a(oe, { animated: !0, width: "180px" }),
179
- /* @__PURE__ */ a(oe, { animated: !0, width: "85px" })
176
+ ] }) : /* @__PURE__ */ b(T, { direction: "column", gap: "12px", children: [
177
+ /* @__PURE__ */ b(T, { direction: "column", alignItems: "center", gap: "4px", children: [
178
+ /* @__PURE__ */ a(ie, { animated: !0, width: "180px" }),
179
+ /* @__PURE__ */ a(ie, { animated: !0, width: "85px" })
180
180
  ] }, "loading"),
181
- /* @__PURE__ */ v(x, { direction: "column", gap: "12px", alignItems: "center", children: [
181
+ /* @__PURE__ */ b(T, { direction: "column", gap: "12px", alignItems: "center", children: [
182
182
  /* @__PURE__ */ a(W, { dashed: !0 }),
183
- /* @__PURE__ */ a(oe, { animated: !0, width: "150px" })
183
+ /* @__PURE__ */ a(ie, { animated: !0, width: "150px" })
184
184
  ] }),
185
- /* @__PURE__ */ a(hn, { children: /* @__PURE__ */ a(
186
- x,
185
+ /* @__PURE__ */ a(gn, { children: /* @__PURE__ */ a(
186
+ T,
187
187
  {
188
188
  direction: "column",
189
189
  gap: "12px",
190
190
  justifyContent: "space-between",
191
191
  height: "203px",
192
- children: c.map((p, d) => /* @__PURE__ */ a(gn, { children: /* @__PURE__ */ v(
193
- x,
192
+ children: c.map((p, d) => /* @__PURE__ */ a(hn, { children: /* @__PURE__ */ b(
193
+ T,
194
194
  {
195
195
  direction: "column",
196
196
  gap: "12px",
197
197
  alignItems: "start",
198
198
  padding: "8px",
199
199
  children: [
200
- /* @__PURE__ */ a(oe, { animated: !0, width: "180px" }),
201
- /* @__PURE__ */ a(oe, { animated: !0, width: "85px" })
200
+ /* @__PURE__ */ a(ie, { animated: !0, width: "180px" }),
201
+ /* @__PURE__ */ a(ie, { animated: !0, width: "85px" })
202
202
  ]
203
203
  }
204
204
  ) }, `condition-${d}`))
@@ -206,7 +206,7 @@ const _r = {
206
206
  ) })
207
207
  ] });
208
208
  }, nn = (e) => {
209
- var g;
209
+ var h;
210
210
  const { decision: t, loading: n = !1, textValues: r } = e, o = !!(t != null && t.effectiveFrom), i = !!(t != null && t.validUntil), c = o && i ? {
211
211
  element: {
212
212
  labelName: r == null ? void 0 : r.terms,
@@ -241,8 +241,8 @@ const _r = {
241
241
  decisionDataType: t.decisionDataType || "alphabetical",
242
242
  value: We(t),
243
243
  howToSetTheDecision: t.howToSetTheDecision || "EqualTo"
244
- } : null, l = ((g = t == null ? void 0 : t.conditionsThatEstablishesTheDecision) == null ? void 0 : g.filter(
245
- (h) => !h.hidden
244
+ } : null, l = ((h = t == null ? void 0 : t.conditionsThatEstablishesTheDecision) == null ? void 0 : h.filter(
245
+ (g) => !g.hidden
246
246
  )) || [], s = Array.from({ length: 5 }), p = !!(!n && t && r && u), d = l.length < 2 ? "start" : "space-between";
247
247
  return /* @__PURE__ */ a(
248
248
  Vr,
@@ -258,15 +258,15 @@ const _r = {
258
258
  visibleConditions: l
259
259
  }
260
260
  );
261
- }, Pr = D.div`
261
+ }, Pr = N.div`
262
262
  position: relative;
263
263
  & > div {
264
264
  padding: 24px 16px;
265
265
  }
266
- `, Ur = D.div`
266
+ `, Ur = N.div`
267
267
  background-color: ${({ theme: e }) => {
268
268
  var t, n;
269
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N0) || k.palette.neutral.N0;
269
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N0) || A.palette.neutral.N0;
270
270
  }};
271
271
  max-width: 450px;
272
272
  max-height: 90vh;
@@ -300,10 +300,10 @@ const _r = {
300
300
  throw new Error(
301
301
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
302
302
  );
303
- const c = ie("(max-width: 400px)");
303
+ const c = ae("(max-width: 400px)");
304
304
  return en(
305
- /* @__PURE__ */ a(Pr, { smallScreen: c, children: /* @__PURE__ */ a(Jt, { children: /* @__PURE__ */ a(Ur, { children: /* @__PURE__ */ v(x, { direction: "column", gap: "24px", children: [
306
- /* @__PURE__ */ a(x, { direction: "column", gap: "24px", children: /* @__PURE__ */ v(x, { alignItems: "center", justifyContent: "space-between", children: [
305
+ /* @__PURE__ */ a(Pr, { smallScreen: c, children: /* @__PURE__ */ a(Jt, { children: /* @__PURE__ */ a(Ur, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
306
+ /* @__PURE__ */ a(T, { direction: "column", gap: "24px", children: /* @__PURE__ */ b(T, { alignItems: "center", justifyContent: "space-between", children: [
307
307
  /* @__PURE__ */ a(R, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
308
308
  /* @__PURE__ */ a(Qt, { size: "24px", cursor: "pointer", onClick: r })
309
309
  ] }) }),
@@ -321,12 +321,12 @@ const _r = {
321
321
  transform: translateY(0);
322
322
  }
323
323
  `;
324
- D.div`
324
+ N.div`
325
325
  border-radius: 8px;
326
326
  border: 1px solid
327
327
  ${({ theme: e }) => {
328
328
  var t, n;
329
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
329
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
330
330
  }};
331
331
  box-sizing: border-box;
332
332
  display: flex;
@@ -335,21 +335,21 @@ D.div`
335
335
  height: 100%;
336
336
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
337
337
  `;
338
- D.div`
338
+ N.div`
339
339
  & > div {
340
340
  border-radius: 8px;
341
341
  border: 1px solid
342
342
  ${({ theme: e }) => {
343
343
  var t, n;
344
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
344
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
345
345
  }};
346
346
  }
347
347
  `;
348
- const zn = D.div`
348
+ const zn = N.div`
349
349
  & > div {
350
350
  background-color: ${({ theme: e }) => {
351
351
  var t, n;
352
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N10) || k.palette.neutral.N10;
352
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N10) || A.palette.neutral.N10;
353
353
  }};
354
354
  justify-content: center;
355
355
  }
@@ -358,18 +358,18 @@ const zn = D.div`
358
358
  height: 100%;
359
359
  padding-bottom: 12px;
360
360
  cursor: pointer;
361
- `, tt = D.div`
361
+ `, tt = N.div`
362
362
  width: 100%;
363
363
  height: 100%;
364
364
  & > div {
365
365
  animation: ${Gr} 600ms ease-out;
366
366
  }
367
- `, zr = D.div`
367
+ `, zr = N.div`
368
368
  & > div > div {
369
369
  border-radius: 8px;
370
370
  box-sizing: border-box;
371
371
  }
372
- `, Hr = D.div`
372
+ `, Hr = N.div`
373
373
  & > div {
374
374
  width: 100%;
375
375
  height: 100%;
@@ -405,7 +405,7 @@ const zn = D.div`
405
405
  );
406
406
  }, qr = (e) => {
407
407
  const { decision: t, controls: n, handleOpenModal: r, handleDelete: o, textValues: i } = e;
408
- return t ? /* @__PURE__ */ a(tt, { children: /* @__PURE__ */ v(x, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
408
+ return t ? /* @__PURE__ */ a(tt, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
409
409
  /* @__PURE__ */ a(R, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: t.decisionId }),
410
410
  /* @__PURE__ */ a(
411
411
  et,
@@ -425,7 +425,7 @@ const zn = D.div`
425
425
  handleOpenModal: r,
426
426
  shouldRenderEmptyMessage: o
427
427
  } = e, i = t || "Agregar decisión";
428
- return /* @__PURE__ */ a(tt, { children: o ? null : /* @__PURE__ */ v(x, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
428
+ return /* @__PURE__ */ a(tt, { children: o ? null : /* @__PURE__ */ b(T, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
429
429
  /* @__PURE__ */ a(R, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
430
430
  /* @__PURE__ */ a(
431
431
  zn,
@@ -439,7 +439,7 @@ const zn = D.div`
439
439
  },
440
440
  handleView: () => r ? r() : null,
441
441
  controls: !1,
442
- children: /* @__PURE__ */ v(x, { direction: "column", gap: "12px", alignItems: "center", children: [
442
+ children: /* @__PURE__ */ b(T, { direction: "column", gap: "12px", alignItems: "center", children: [
443
443
  /* @__PURE__ */ a(B, { appearance: "gray", icon: /* @__PURE__ */ a(Ke, {}), size: "35px" }),
444
444
  /* @__PURE__ */ a(R, { appearance: "gray", type: "body", size: "large", children: i })
445
445
  ] })
@@ -501,21 +501,21 @@ const zn = D.div`
501
501
  loading: s,
502
502
  handleOpenModal: p,
503
503
  handleCloseModal: d,
504
- handleSubmitForm: g,
505
- handleDelete: h,
504
+ handleSubmitForm: h,
505
+ handleDelete: g,
506
506
  terms: f = !0
507
- } = e, m = ie("(max-width: 681px)"), b = ie("(max-width: 400px)"), { renderedCards: y, shouldRenderAddCard: w } = Xr({
507
+ } = e, m = ae("(max-width: 681px)"), v = ae("(max-width: 400px)"), { renderedCards: x, shouldRenderAddCard: w } = Xr({
508
508
  controls: t,
509
509
  customTitleContentAddCard: n,
510
510
  decisions: o,
511
511
  loading: s,
512
512
  handleOpenModal: p,
513
- handleDelete: h,
513
+ handleDelete: g,
514
514
  textValues: i
515
515
  }), S = (o == null ? void 0 : o.length) === 0 && !s;
516
- return /* @__PURE__ */ v(V, { children: [
517
- /* @__PURE__ */ a(zr, { children: /* @__PURE__ */ a(Hr, { children: /* @__PURE__ */ a(x, { direction: "column", gap: "16px", padding: "6px", children: S ? /* @__PURE__ */ v(
518
- x,
516
+ return /* @__PURE__ */ b(V, { children: [
517
+ /* @__PURE__ */ a(zr, { children: /* @__PURE__ */ a(Hr, { children: /* @__PURE__ */ a(T, { direction: "column", gap: "16px", padding: "6px", children: S ? /* @__PURE__ */ b(
518
+ T,
519
519
  {
520
520
  direction: "column",
521
521
  gap: "28px",
@@ -524,9 +524,9 @@ const zn = D.div`
524
524
  justifyContent: "center",
525
525
  alignItems: "center",
526
526
  children: [
527
- /* @__PURE__ */ a(R, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ v(V, { children: [
527
+ /* @__PURE__ */ a(R, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ b(V, { children: [
528
528
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
529
- /* @__PURE__ */ v(
529
+ /* @__PURE__ */ b(
530
530
  R,
531
531
  {
532
532
  as: "span",
@@ -553,10 +553,10 @@ const zn = D.div`
553
553
  )
554
554
  ]
555
555
  }
556
- ) : /* @__PURE__ */ v(
557
- we,
556
+ ) : /* @__PURE__ */ b(
557
+ Se,
558
558
  {
559
- templateColumns: b ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
559
+ templateColumns: v ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
560
560
  autoFlow: "row dense",
561
561
  gap: "24px",
562
562
  alignItems: "start",
@@ -566,7 +566,7 @@ const zn = D.div`
566
566
  padding: "6px",
567
567
  height: m ? "auto" : "484px",
568
568
  children: [
569
- y,
569
+ x,
570
570
  w && Vt({
571
571
  type: "add",
572
572
  index: o == null ? void 0 : o.length,
@@ -575,7 +575,7 @@ const zn = D.div`
575
575
  customMessageEmptyDecisions: r,
576
576
  loading: s,
577
577
  handleOpenModal: p,
578
- handleDelete: h,
578
+ handleDelete: g,
579
579
  textValues: i,
580
580
  shouldRenderEmptyMessage: S,
581
581
  terms: f
@@ -593,7 +593,7 @@ const zn = D.div`
593
593
  ra,
594
594
  {
595
595
  decision: l || c,
596
- onSubmitEvent: g,
596
+ onSubmitEvent: h,
597
597
  textValues: i,
598
598
  onCancel: () => d ? d() : () => {
599
599
  }
@@ -602,15 +602,15 @@ const zn = D.div`
602
602
  }
603
603
  )
604
604
  ] });
605
- }, Qr = D.div`
605
+ }, Qr = N.div`
606
606
  position: relative;
607
607
  & > div {
608
608
  padding: 24px 16px;
609
609
  }
610
- `, Jr = D.div`
610
+ `, Jr = N.div`
611
611
  background-color: ${({ theme: e }) => {
612
612
  var t, n;
613
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N0) || k.palette.neutral.N0;
613
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N0) || A.palette.neutral.N0;
614
614
  }};
615
615
  max-width: 450px;
616
616
  max-height: 90vh;
@@ -644,10 +644,10 @@ const zn = D.div`
644
644
  throw new Error(
645
645
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
646
646
  );
647
- const c = ie("(max-width: 400px)");
647
+ const c = ae("(max-width: 400px)");
648
648
  return en(
649
- /* @__PURE__ */ a(Qr, { $smallScreen: c, children: /* @__PURE__ */ a(Jt, { children: /* @__PURE__ */ a(Jr, { children: /* @__PURE__ */ v(x, { direction: "column", gap: "24px", children: [
650
- /* @__PURE__ */ a(x, { direction: "column", gap: "24px", children: /* @__PURE__ */ v(x, { alignItems: "center", justifyContent: "space-between", children: [
649
+ /* @__PURE__ */ a(Qr, { $smallScreen: c, children: /* @__PURE__ */ a(Jt, { children: /* @__PURE__ */ a(Jr, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
650
+ /* @__PURE__ */ a(T, { direction: "column", gap: "24px", children: /* @__PURE__ */ b(T, { alignItems: "center", justifyContent: "space-between", children: [
651
651
  /* @__PURE__ */ a(R, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
652
652
  /* @__PURE__ */ a(Qt, { size: "24px", cursor: "pointer", onClick: r })
653
653
  ] }) }),
@@ -665,12 +665,12 @@ const zn = D.div`
665
665
  transform: translateY(0);
666
666
  }
667
667
  `;
668
- D.div`
668
+ N.div`
669
669
  border-radius: 8px;
670
670
  border: 1px solid
671
671
  ${({ theme: e }) => {
672
672
  var t, n;
673
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
673
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
674
674
  }};
675
675
  box-sizing: border-box;
676
676
  display: flex;
@@ -679,21 +679,21 @@ D.div`
679
679
  height: 100%;
680
680
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
681
681
  `;
682
- D.div`
682
+ N.div`
683
683
  & > div {
684
684
  border-radius: 8px;
685
685
  border: 1px solid
686
686
  ${({ theme: e }) => {
687
687
  var t, n;
688
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
688
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
689
689
  }};
690
690
  }
691
691
  `;
692
- D.div`
692
+ N.div`
693
693
  & > div {
694
694
  background-color: ${({ theme: e }) => {
695
695
  var t, n;
696
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N10) || k.palette.neutral.N10;
696
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N10) || A.palette.neutral.N10;
697
697
  }};
698
698
  justify-content: center;
699
699
  }
@@ -703,19 +703,19 @@ D.div`
703
703
  padding-bottom: 12px;
704
704
  cursor: pointer;
705
705
  `;
706
- D.div`
706
+ N.div`
707
707
  width: 100%;
708
708
  height: 100%;
709
709
  & > div {
710
710
  animation: ${Kr} 600ms ease-out;
711
711
  }
712
712
  `;
713
- const eo = D.div`
713
+ const eo = N.div`
714
714
  & > div > div {
715
715
  border-radius: 8px;
716
716
  box-sizing: border-box;
717
717
  }
718
- `, to = D.div`
718
+ `, to = N.div`
719
719
  & > div {
720
720
  width: 100%;
721
721
  height: 100%;
@@ -762,16 +762,16 @@ const eo = D.div`
762
762
  }, Ye = (e) => {
763
763
  const t = e == null ? void 0 : e.value, n = typeof t == "object" && t !== null && !Array.isArray(t), r = uo[e == null ? void 0 : e.howToSetTheDecision] || ro;
764
764
  return n && r(t) || t || void 0;
765
- }, fn = D.div`
765
+ }, fn = N.div`
766
766
  & > div {
767
767
  border-radius: 8px;
768
768
  border: 1px solid
769
769
  ${({ theme: e }) => {
770
770
  var t, n;
771
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
771
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
772
772
  }};
773
773
  }
774
- `, mn = D.div`
774
+ `, mn = N.div`
775
775
  width: 100%;
776
776
  height: 100%;
777
777
  overflow-y: auto;
@@ -801,8 +801,8 @@ const eo = D.div`
801
801
  textValues: l,
802
802
  visibleConditions: s
803
803
  } = e;
804
- return i ? /* @__PURE__ */ v(x, { direction: "column", gap: "12px", children: [
805
- /* @__PURE__ */ a(x, { direction: "column", alignItems: "center", children: /* @__PURE__ */ a(
804
+ return i ? /* @__PURE__ */ b(T, { direction: "column", gap: "12px", children: [
805
+ /* @__PURE__ */ a(T, { direction: "column", alignItems: "center", children: /* @__PURE__ */ a(
806
806
  Re,
807
807
  {
808
808
  element: o,
@@ -813,8 +813,8 @@ const eo = D.div`
813
813
  }
814
814
  ) }, n.ruleName),
815
815
  /* @__PURE__ */ a(W, { dashed: !0 }),
816
- /* @__PURE__ */ a(mn, { children: /* @__PURE__ */ v(
817
- x,
816
+ /* @__PURE__ */ a(mn, { children: /* @__PURE__ */ b(
817
+ T,
818
818
  {
819
819
  direction: "column",
820
820
  gap: "12px",
@@ -832,7 +832,7 @@ const eo = D.div`
832
832
  children: l.factsThatConditionIt
833
833
  }
834
834
  ),
835
- s.length > 0 && s.map((p) => /* @__PURE__ */ a(fn, { children: /* @__PURE__ */ a(x, { direction: "column", padding: "8px", children: /* @__PURE__ */ a(
835
+ s.length > 0 && s.map((p) => /* @__PURE__ */ a(fn, { children: /* @__PURE__ */ a(T, { direction: "column", padding: "8px", children: /* @__PURE__ */ a(
836
836
  Re,
837
837
  {
838
838
  element: { ...p, value: p.value },
@@ -854,41 +854,41 @@ const eo = D.div`
854
854
  ]
855
855
  }
856
856
  ) })
857
- ] }) : /* @__PURE__ */ v(x, { direction: "column", gap: "12px", children: [
858
- /* @__PURE__ */ v(x, { direction: "column", alignItems: "center", gap: "4px", children: [
859
- /* @__PURE__ */ a(oe, { animated: !0, width: "180px" }),
860
- /* @__PURE__ */ a(oe, { animated: !0, width: "85px" })
857
+ ] }) : /* @__PURE__ */ b(T, { direction: "column", gap: "12px", children: [
858
+ /* @__PURE__ */ b(T, { direction: "column", alignItems: "center", gap: "4px", children: [
859
+ /* @__PURE__ */ a(ie, { animated: !0, width: "180px" }),
860
+ /* @__PURE__ */ a(ie, { animated: !0, width: "85px" })
861
861
  ] }, "loading"),
862
- /* @__PURE__ */ v(x, { direction: "column", gap: "12px", alignItems: "center", children: [
862
+ /* @__PURE__ */ b(T, { direction: "column", gap: "12px", alignItems: "center", children: [
863
863
  /* @__PURE__ */ a(W, { dashed: !0 }),
864
- /* @__PURE__ */ a(oe, { animated: !0, width: "150px" })
864
+ /* @__PURE__ */ a(ie, { animated: !0, width: "150px" })
865
865
  ] }),
866
866
  /* @__PURE__ */ a(mn, { children: /* @__PURE__ */ a(
867
- x,
867
+ T,
868
868
  {
869
869
  direction: "column",
870
870
  gap: "12px",
871
871
  justifyContent: "space-between",
872
872
  height: "203px",
873
- children: c.map((p, d) => /* @__PURE__ */ a(fn, { children: /* @__PURE__ */ v(
874
- x,
873
+ children: c.map((p, d) => /* @__PURE__ */ a(fn, { children: /* @__PURE__ */ b(
874
+ T,
875
875
  {
876
876
  direction: "column",
877
877
  gap: "12px",
878
878
  alignItems: "start",
879
879
  padding: "8px",
880
880
  children: [
881
- /* @__PURE__ */ a(oe, { animated: !0, width: "180px" }),
882
- /* @__PURE__ */ a(oe, { animated: !0, width: "85px" })
881
+ /* @__PURE__ */ a(ie, { animated: !0, width: "180px" }),
882
+ /* @__PURE__ */ a(ie, { animated: !0, width: "85px" })
883
883
  ]
884
884
  }
885
885
  ) }, `condition-${d}`))
886
886
  }
887
887
  ) })
888
888
  ] });
889
- }, go = (e) => Array.isArray(e) ? e[0] : e ?? null, ho = (e) => {
889
+ }, ho = (e) => Array.isArray(e) ? e[0] : e ?? null, go = (e) => {
890
890
  var t;
891
- return ((t = go(e == null ? void 0 : e.conditionGroups)) == null ? void 0 : t.conditionsThatEstablishesTheDecision) ?? [];
891
+ return ((t = ho(e == null ? void 0 : e.conditionGroups)) == null ? void 0 : t.conditionsThatEstablishesTheDecision) ?? [];
892
892
  }, fo = (e) => {
893
893
  const { decision: t, loading: n = !1, textValues: r } = e, o = !!(t != null && t.effectiveFrom), i = !!(t != null && t.validUntil), c = o && i ? {
894
894
  element: {
@@ -924,7 +924,7 @@ const eo = D.div`
924
924
  decisionDataType: t.decisionDataType || "alphabetical",
925
925
  value: Ye(t),
926
926
  howToSetTheDecision: t.howToSetTheDecision || "EqualTo"
927
- } : null, l = ho(t).filter((g) => !(g != null && g.hidden)), s = Array.from({ length: 5 }), p = !!(!n && t && r && u), d = l.length < 2 ? "start" : "space-between";
927
+ } : null, l = go(t).filter((h) => !(h != null && h.hidden)), s = Array.from({ length: 5 }), p = !!(!n && t && r && u), d = l.length < 2 ? "start" : "space-between";
928
928
  return /* @__PURE__ */ a(
929
929
  po,
930
930
  {
@@ -939,12 +939,12 @@ const eo = D.div`
939
939
  visibleConditions: l
940
940
  }
941
941
  );
942
- }, mo = D.div`
942
+ }, mo = N.div`
943
943
  border-radius: 8px;
944
944
  border: 1px solid
945
945
  ${({ theme: e }) => {
946
946
  var t, n;
947
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
947
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
948
948
  }};
949
949
  box-sizing: border-box;
950
950
  display: flex;
@@ -955,7 +955,7 @@ const eo = D.div`
955
955
  height: 100%;
956
956
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
957
957
  `;
958
- D.div`
958
+ N.div`
959
959
  width: 100%;
960
960
  height: 100%;
961
961
  overflow-y: auto;
@@ -976,11 +976,11 @@ D.div`
976
976
  `;
977
977
  const bo = (e) => {
978
978
  const { children: t, controls: n = !0, handleDelete: r, id: o } = e;
979
- return /* @__PURE__ */ a(mo, { children: /* @__PURE__ */ v(x, { direction: "column", gap: "16px", padding: "12px 16px", children: [
979
+ return /* @__PURE__ */ a(mo, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "16px", padding: "12px 16px", children: [
980
980
  t,
981
- n && /* @__PURE__ */ v(V, { children: [
981
+ n && /* @__PURE__ */ b(V, { children: [
982
982
  /* @__PURE__ */ a(W, {}),
983
- /* @__PURE__ */ a(x, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ a(
983
+ /* @__PURE__ */ a(T, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ a(
984
984
  B,
985
985
  {
986
986
  cursorHover: !0,
@@ -996,7 +996,7 @@ const bo = (e) => {
996
996
  ] }) });
997
997
  }, vo = (e) => {
998
998
  const { decision: t, controls: n, handleOpenModal: r, handleDelete: o, textValues: i } = e;
999
- return t ? /* @__PURE__ */ a(tt, { children: /* @__PURE__ */ v(x, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
999
+ return t ? /* @__PURE__ */ a(tt, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
1000
1000
  /* @__PURE__ */ a(R, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: t.decisionId }),
1001
1001
  /* @__PURE__ */ a(
1002
1002
  bo,
@@ -1022,7 +1022,7 @@ const bo = (e) => {
1022
1022
  handleOpenModal: r,
1023
1023
  shouldRenderEmptyMessage: o
1024
1024
  } = e, i = t || "Agregar decisión";
1025
- return /* @__PURE__ */ a(tt, { children: o ? null : /* @__PURE__ */ v(x, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
1025
+ return /* @__PURE__ */ a(tt, { children: o ? null : /* @__PURE__ */ b(T, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
1026
1026
  /* @__PURE__ */ a(R, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
1027
1027
  /* @__PURE__ */ a(
1028
1028
  zn,
@@ -1036,7 +1036,7 @@ const bo = (e) => {
1036
1036
  },
1037
1037
  handleView: () => r ? r() : null,
1038
1038
  controls: !1,
1039
- children: /* @__PURE__ */ v(x, { direction: "column", gap: "12px", alignItems: "center", children: [
1039
+ children: /* @__PURE__ */ b(T, { direction: "column", gap: "12px", alignItems: "center", children: [
1040
1040
  /* @__PURE__ */ a(B, { appearance: "gray", icon: /* @__PURE__ */ a(Ke, {}), size: "35px" }),
1041
1041
  /* @__PURE__ */ a(R, { appearance: "gray", type: "body", size: "large", children: i })
1042
1042
  ] })
@@ -1060,7 +1060,7 @@ const bo = (e) => {
1060
1060
  ),
1061
1061
  value: e
1062
1062
  }), wo = (e) => ({
1063
- schema: xe().test(
1063
+ schema: we().test(
1064
1064
  "isArrayOrString",
1065
1065
  "Debe ser un array de strings/numbers o un solo string",
1066
1066
  (t) => Array.isArray(t) ? t.every(
@@ -1069,7 +1069,7 @@ const bo = (e) => {
1069
1069
  ),
1070
1070
  value: e
1071
1071
  }), So = (e) => ({
1072
- schema: xe().test(
1072
+ schema: we().test(
1073
1073
  "isArrayOrString",
1074
1074
  "Debe ser un array de strings/numbers o un solo string ",
1075
1075
  (t) => Array.isArray(t) ? t.every(
@@ -1080,9 +1080,9 @@ const bo = (e) => {
1080
1080
  }), Co = (e) => {
1081
1081
  const t = (e == null ? void 0 : e.from) ?? 0, n = (e == null ? void 0 : e.to) ?? 0;
1082
1082
  return {
1083
- schema: J({
1084
- from: pe().required("El campo 'Rango desde' es requerido").max(n, "'Rango desde' no puede ser mayor que 'Rango hasta'").min(0, "'Rango desde' no puede ser menor que 0"),
1085
- to: pe().min(0, "El campo 'Rango hasta' debe ser mayor o igual a 0").required("El campo 'Rango hasta' es requerido").test(
1083
+ schema: Q({
1084
+ from: ge().required("El campo 'Rango desde' es requerido").max(n, "'Rango desde' no puede ser mayor que 'Rango hasta'").min(0, "'Rango desde' no puede ser menor que 0"),
1085
+ to: ge().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) {
@@ -1094,7 +1094,7 @@ const bo = (e) => {
1094
1094
  value: { from: t, to: n }
1095
1095
  };
1096
1096
  }, Rt = (e, t) => t === H.PERCENTAGE ? {
1097
- schema: pe().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"),
1097
+ schema: ge().required("El campo tipo porcentaje es requerido").min(0, "El campo tipo porcentaje no puede ser menor que 0").max(100, "El campo tipo porcentaje no puede ser mayor que 100"),
1098
1098
  value: e
1099
1099
  } : {
1100
1100
  schema: be().required("Requerido"),
@@ -1108,18 +1108,18 @@ const bo = (e) => {
1108
1108
  [I.EQUAL]: Rt
1109
1109
  }, No = (e) => Do[e] || xo;
1110
1110
  var rn = /* @__PURE__ */ ((e) => (e.EQUAL = "EqualTo", e.GREATER_THAN = "GreaterThan", e.LESS_THAN = "LessThan", e.LIST_OF_VALUES = "ListOfValues", e.LIST_OF_VALUES_MULTI = "ListOfValuesMulti", e.RANGE = "Range", e))(rn || {});
1111
- const gt = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Array.isArray(e) || e.length > 0), Eo = (e, t) => {
1111
+ const ht = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Array.isArray(e) || e.length > 0), Eo = (e, t) => {
1112
1112
  var u;
1113
- const n = Object.entries((e == null ? void 0 : e.conditionsThatEstablishesTheDecision) ?? {}).filter(([, l]) => gt(l)).map(([l, s]) => ({ conditionName: l, value: s }));
1113
+ const n = Object.entries((e == null ? void 0 : e.conditionsThatEstablishesTheDecision) ?? {}).filter(([, l]) => ht(l)).map(([l, s]) => ({ conditionName: l, value: s }));
1114
1114
  let r = [];
1115
1115
  const o = (u = e == null ? void 0 : e.conditionGroups) == null ? void 0 : u.conditionsThatEstablishesTheDecision;
1116
- Array.isArray(o) ? r = o.filter((l) => gt(l == null ? void 0 : l.value)).map((l) => ({ conditionName: l == null ? void 0 : l.conditionName, value: l == null ? void 0 : l.value })) : o && typeof o == "object" && (r = Object.entries(o).filter(([, l]) => gt(l)).map(([l, s]) => ({ conditionName: l, value: s })));
1116
+ Array.isArray(o) ? r = o.filter((l) => ht(l == null ? void 0 : l.value)).map((l) => ({ conditionName: l == null ? void 0 : l.conditionName, value: l == null ? void 0 : l.value })) : o && typeof o == "object" && (r = Object.entries(o).filter(([, l]) => ht(l)).map(([l, s]) => ({ conditionName: l, value: s })));
1117
1117
  const i = n.length ? n : r, c = new Map(
1118
1118
  (t ?? []).map((l) => [l == null ? void 0 : l.conditionName, l])
1119
1119
  );
1120
1120
  return i.map((l, s) => {
1121
- var g;
1122
- const p = l.conditionName ?? ((g = t == null ? void 0 : t[s]) == null ? void 0 : g.conditionName) ?? void 0;
1121
+ var h;
1122
+ const p = l.conditionName ?? ((h = t == null ? void 0 : t[s]) == null ? void 0 : h.conditionName) ?? void 0;
1123
1123
  return {
1124
1124
  ...(p && c.get(p)) ?? (t == null ? void 0 : t[s]) ?? {},
1125
1125
  ...p ? { conditionName: p } : {},
@@ -1132,8 +1132,8 @@ function ko({
1132
1132
  onSubmitEvent: t,
1133
1133
  textValues: n
1134
1134
  }) {
1135
- var d, g;
1136
- const r = ((d = e.conditionGroups[0]) == null ? void 0 : d.conditionsThatEstablishesTheDecision) ?? [], o = r.reduce((h, f) => (gt(f.value) && (h[f.conditionName] = f.value), h), {}), i = Object.keys(o).length > 0, c = {
1135
+ var d, h;
1136
+ const r = ((d = e.conditionGroups[0]) == null ? void 0 : d.conditionsThatEstablishesTheDecision) ?? [], o = r.reduce((g, f) => (ht(f.value) && (g[f.conditionName] = f.value), g), {}), i = Object.keys(o).length > 0, c = {
1137
1137
  ruleName: e.ruleName || "",
1138
1138
  decisionDataType: e.decisionDataType || H.ALPHABETICAL,
1139
1139
  howToSetTheDecision: e.howToSetTheDecision || "",
@@ -1143,7 +1143,7 @@ function ko({
1143
1143
  toggleNone: !i,
1144
1144
  conditionsThatEstablishesTheDecision: o,
1145
1145
  conditionGroups: {
1146
- ConditionGroupId: ((g = e.conditionGroups) == null ? void 0 : g.ConditionGroupId) ?? "group-primary",
1146
+ ConditionGroupId: ((h = e.conditionGroups) == null ? void 0 : h.ConditionGroupId) ?? "group-primary",
1147
1147
  conditionsThatEstablishesTheDecision: r
1148
1148
  },
1149
1149
  checkClosed: !1,
@@ -1158,68 +1158,68 @@ function ko({
1158
1158
  u.values.value,
1159
1159
  u.values.decisionDataType
1160
1160
  ).schema),
1161
- conditionsThatEstablishesTheDecision: J().shape({})
1161
+ conditionsThatEstablishesTheDecision: Q().shape({})
1162
1162
  };
1163
1163
  n.terms && (l.effectiveFrom = Le().required("La fecha de inicio es requerida"), l.validUntil = Le().when(
1164
1164
  "checkClosed",
1165
- (h, f, { parent: m }) => (m == null ? void 0 : m.checkClosed) ? f.required("La fecha de finalización es requerida").test(
1165
+ (g, f, { parent: m }) => (m == null ? void 0 : m.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(y) {
1168
+ function(x) {
1169
1169
  const w = this.parent.effectiveFrom;
1170
- return !w || !y ? !0 : new Date(y) >= new Date(w);
1170
+ return !w || !x ? !0 : new Date(x) >= new Date(w);
1171
1171
  }
1172
1172
  ) : f.notRequired()
1173
1173
  ));
1174
- const s = J(l);
1174
+ const s = Q(l);
1175
1175
  return u = tn({
1176
1176
  initialValues: c,
1177
1177
  validationSchema: s,
1178
1178
  validateOnBlur: !0,
1179
- onSubmit: (h) => {
1180
- var y;
1181
- const f = ((y = e.conditionGroups) == null ? void 0 : y.ConditionGroupId) ?? "group-primary", m = h.toggleNone ? [] : Eo(h, r), b = {
1179
+ onSubmit: (g) => {
1180
+ var x;
1181
+ const f = ((x = e.conditionGroups) == null ? void 0 : x.ConditionGroupId) ?? "group-primary", m = g.toggleNone ? [] : Eo(g, r), v = {
1182
1182
  ...e,
1183
- ruleName: h.ruleName,
1184
- decisionDataType: h.decisionDataType,
1185
- howToSetTheDecision: h.howToSetTheDecision,
1186
- value: h.value,
1187
- effectiveFrom: h.effectiveFrom,
1188
- validUntil: h.validUntil,
1183
+ ruleName: g.ruleName,
1184
+ decisionDataType: g.decisionDataType,
1185
+ howToSetTheDecision: g.howToSetTheDecision,
1186
+ value: g.value,
1187
+ effectiveFrom: g.effectiveFrom,
1188
+ validUntil: g.validUntil,
1189
1189
  conditionGroups: {
1190
1190
  ConditionGroupId: f,
1191
1191
  conditionsThatEstablishesTheDecision: m
1192
1192
  }
1193
1193
  };
1194
- t(b);
1194
+ t(v);
1195
1195
  }
1196
- }), { formik: u, handleToggleNoneChange: (h) => {
1197
- u.setFieldValue("toggleNone", h), r.forEach((f) => {
1198
- if (h)
1196
+ }), { formik: u, handleToggleNoneChange: (g) => {
1197
+ u.setFieldValue("toggleNone", g), r.forEach((f) => {
1198
+ if (g)
1199
1199
  u.setFieldValue(
1200
1200
  `conditionsThatEstablishesTheDecision.${f.conditionName}`,
1201
1201
  void 0
1202
1202
  );
1203
1203
  else if (u.values.conditionsThatEstablishesTheDecision[f.conditionName] === void 0) {
1204
- const b = f.howToSetTheCondition === rn.LIST_OF_VALUES_MULTI ? [] : "";
1204
+ const v = f.howToSetTheCondition === rn.LIST_OF_VALUES_MULTI ? [] : "";
1205
1205
  u.setFieldValue(
1206
1206
  `conditionsThatEstablishesTheDecision.${f.conditionName}`,
1207
- b
1207
+ v
1208
1208
  );
1209
1209
  }
1210
1210
  });
1211
1211
  } };
1212
1212
  }
1213
- const Ao = D.div`
1213
+ const Ao = N.div`
1214
1214
  & > div {
1215
1215
  border-radius: 8px;
1216
1216
  border: 1px solid
1217
1217
  ${({ theme: e }) => {
1218
1218
  var t, n;
1219
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
1219
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
1220
1220
  }};
1221
1221
  }
1222
- `, $o = D.div`
1222
+ `, $o = N.div`
1223
1223
  width: 100%;
1224
1224
  height: 100%;
1225
1225
  overflow-y: auto;
@@ -1246,8 +1246,8 @@ const Ao = D.div`
1246
1246
  name: c,
1247
1247
  valueToggle: u = ""
1248
1248
  } = e, [l, s] = q(t);
1249
- return /* @__PURE__ */ v(V, { children: [
1250
- /* @__PURE__ */ a(x, { children: /* @__PURE__ */ a(
1249
+ return /* @__PURE__ */ b(V, { children: [
1250
+ /* @__PURE__ */ a(T, { children: /* @__PURE__ */ a(
1251
1251
  Tt,
1252
1252
  {
1253
1253
  checked: l,
@@ -1276,17 +1276,17 @@ const Ao = D.div`
1276
1276
  valueEnd: s = "",
1277
1277
  messageStart: p = "",
1278
1278
  messageEnd: d = "",
1279
- statusStart: g = "pending",
1280
- statusEnd: h = "pending"
1281
- } = e, [f, m] = q(c), [b, y] = q(l), [w, S] = q(s), N = ({ target: F }) => {
1279
+ statusStart: h = "pending",
1280
+ statusEnd: g = "pending"
1281
+ } = e, [f, m] = q(c), [v, x] = q(l), [w, S] = q(s), D = ({ target: F }) => {
1282
1282
  m(F.checked), r && r(F.checked);
1283
1283
  }, C = (F) => {
1284
- y(F.target.value), t(F);
1285
- }, A = (F) => {
1284
+ x(F.target.value), t(F);
1285
+ }, k = (F) => {
1286
1286
  S(F.target.value), n(F);
1287
- }, L = ie("(max-width: 400px)");
1288
- return /* @__PURE__ */ v(V, { children: [
1289
- /* @__PURE__ */ v(x, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
1287
+ }, L = ae("(max-width: 400px)");
1288
+ return /* @__PURE__ */ b(V, { children: [
1289
+ /* @__PURE__ */ b(T, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
1290
1290
  /* @__PURE__ */ a(
1291
1291
  R,
1292
1292
  {
@@ -1299,7 +1299,7 @@ const Ao = D.div`
1299
1299
  }
1300
1300
  ),
1301
1301
  /* @__PURE__ */ a(
1302
- x,
1302
+ T,
1303
1303
  {
1304
1304
  alignContent: "center",
1305
1305
  justifyContent: "center",
@@ -1309,7 +1309,7 @@ const Ao = D.div`
1309
1309
  Zt,
1310
1310
  {
1311
1311
  label: "Cerrada",
1312
- onChange: N,
1312
+ onChange: D,
1313
1313
  checked: f,
1314
1314
  value: ""
1315
1315
  }
@@ -1317,8 +1317,8 @@ const Ao = D.div`
1317
1317
  }
1318
1318
  )
1319
1319
  ] }),
1320
- /* @__PURE__ */ v(
1321
- x,
1320
+ /* @__PURE__ */ b(
1321
+ T,
1322
1322
  {
1323
1323
  direction: L ? "column" : "row",
1324
1324
  justifyContent: "space-between",
@@ -1330,10 +1330,10 @@ const Ao = D.div`
1330
1330
  id: "dateStart",
1331
1331
  label: o,
1332
1332
  onChange: C,
1333
- value: b,
1333
+ value: v,
1334
1334
  required: u,
1335
1335
  size: "compact",
1336
- status: g,
1336
+ status: h,
1337
1337
  message: p
1338
1338
  }
1339
1339
  ),
@@ -1342,11 +1342,11 @@ const Ao = D.div`
1342
1342
  {
1343
1343
  id: "dateEnd",
1344
1344
  label: i,
1345
- onChange: A,
1345
+ onChange: k,
1346
1346
  value: w,
1347
1347
  required: u,
1348
1348
  size: "compact",
1349
- status: h,
1349
+ status: g,
1350
1350
  message: d
1351
1351
  }
1352
1352
  )
@@ -1367,23 +1367,23 @@ const Ao = D.div`
1367
1367
  termStartStatus: s,
1368
1368
  termEndStatus: p
1369
1369
  } = e;
1370
- return /* @__PURE__ */ a("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ v(x, { direction: "column", gap: "24px", children: [
1370
+ return /* @__PURE__ */ a("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
1371
1371
  ft({
1372
1372
  condition: i,
1373
1373
  formik: t,
1374
1374
  isDecision: !0
1375
1375
  }),
1376
1376
  /* @__PURE__ */ a(W, { dashed: !0 }),
1377
- /* @__PURE__ */ a(Ao, { children: /* @__PURE__ */ a($o, { children: /* @__PURE__ */ v(
1378
- x,
1377
+ /* @__PURE__ */ a(Ao, { children: /* @__PURE__ */ a($o, { children: /* @__PURE__ */ b(
1378
+ T,
1379
1379
  {
1380
1380
  direction: "column",
1381
1381
  padding: "6px 12px",
1382
1382
  gap: "16px",
1383
1383
  height: "272px",
1384
1384
  children: [
1385
- /* @__PURE__ */ v(
1386
- x,
1385
+ /* @__PURE__ */ b(
1386
+ T,
1387
1387
  {
1388
1388
  justifyContent: "space-between",
1389
1389
  alignItems: "center",
@@ -1403,19 +1403,19 @@ const Ao = D.div`
1403
1403
  ]
1404
1404
  }
1405
1405
  ),
1406
- /* @__PURE__ */ a(x, { direction: "column", gap: "20px", children: o == null ? void 0 : o.map((d) => {
1407
- var g;
1406
+ /* @__PURE__ */ a(T, { direction: "column", gap: "20px", children: o == null ? void 0 : o.map((d) => {
1407
+ var h;
1408
1408
  return /* @__PURE__ */ a(
1409
1409
  Io,
1410
1410
  {
1411
1411
  id: `toggle-${d.conditionName}`,
1412
1412
  name: `toggle.${d.conditionName}`,
1413
1413
  labelToggle: d.labelName,
1414
- checked: !t.values.toggleNone && ((g = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : g[d.conditionName]) !== void 0,
1415
- handleToggleChange: (h) => u(
1414
+ checked: !t.values.toggleNone && ((h = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : h[d.conditionName]) !== void 0,
1415
+ handleToggleChange: (g) => u(
1416
1416
  d.conditionName,
1417
1417
  d.howToSetTheCondition === rn.LIST_OF_VALUES_MULTI
1418
- )(h.target.checked),
1418
+ )(g.target.checked),
1419
1419
  children: ft({ condition: d, formik: t })
1420
1420
  },
1421
1421
  d.conditionName
@@ -1424,7 +1424,7 @@ const Ao = D.div`
1424
1424
  ]
1425
1425
  }
1426
1426
  ) }) }),
1427
- n.terms && /* @__PURE__ */ v(V, { children: [
1427
+ n.terms && /* @__PURE__ */ b(V, { children: [
1428
1428
  /* @__PURE__ */ a(W, { dashed: !0 }),
1429
1429
  /* @__PURE__ */ a(
1430
1430
  Ro,
@@ -1448,13 +1448,13 @@ const Ao = D.div`
1448
1448
  ] }),
1449
1449
  /* @__PURE__ */ a(W, {}),
1450
1450
  l && /* @__PURE__ */ a(R, { type: "label", size: "medium", appearance: "danger", children: typeof t.errors.conditionsThatEstablishesTheDecision == "string" ? t.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
1451
- /* @__PURE__ */ v(x, { direction: "row", justifyContent: "end", gap: "16px", children: [
1451
+ /* @__PURE__ */ b(T, { direction: "row", justifyContent: "end", gap: "16px", children: [
1452
1452
  /* @__PURE__ */ a(Y, { appearance: "gray", onClick: r, children: n.cancel }),
1453
1453
  /* @__PURE__ */ a(Y, { type: "submit", children: n.confirm })
1454
1454
  ] })
1455
1455
  ] }) });
1456
1456
  }, Fo = (e) => {
1457
- var h, f;
1457
+ var g, f;
1458
1458
  const { decision: t, onSubmitEvent: n, textValues: r, onCancel: o } = e, { formik: i, handleToggleNoneChange: c } = ko({
1459
1459
  decision: t,
1460
1460
  onSubmitEvent: n,
@@ -1465,7 +1465,7 @@ const Ao = D.div`
1465
1465
  howToSetTheCondition: t.howToSetTheDecision,
1466
1466
  decisionDataType: t.decisionDataType,
1467
1467
  listOfPossibleValues: t.listOfPossibleValues
1468
- }, l = ((f = (h = t.conditionGroups[0]) == null ? void 0 : h.conditionsThatEstablishesTheDecision) == null ? void 0 : f.filter(
1468
+ }, l = ((f = (g = t.conditionGroups[0]) == null ? void 0 : g.conditionsThatEstablishesTheDecision) == null ? void 0 : f.filter(
1469
1469
  (m) => !m.hidden
1470
1470
  )) || [], s = !!i.errors.conditionsThatEstablishesTheDecision && i.submitCount > 0, p = i.touched.effectiveFrom ? i.errors.effectiveFrom ? "invalid" : "valid" : void 0, d = i.touched.validUntil ? i.errors.validUntil ? "invalid" : "valid" : void 0;
1471
1471
  return /* @__PURE__ */ a(
@@ -1478,8 +1478,8 @@ const Ao = D.div`
1478
1478
  visibleConditions: l,
1479
1479
  normalizedDecision: u,
1480
1480
  handleToggleNoneChange: c,
1481
- handleConditionToggleChange: (m, b) => (y) => {
1482
- if (!y)
1481
+ handleConditionToggleChange: (m, v) => (x) => {
1482
+ if (!x)
1483
1483
  i.setFieldValue(
1484
1484
  `conditionsThatEstablishesTheDecision.${m}`,
1485
1485
  void 0
@@ -1489,7 +1489,7 @@ const Ao = D.div`
1489
1489
  !1
1490
1490
  ), Object.keys(i.touched).filter((S) => S.startsWith("conditionsThatEstablishesTheDecision.")).some((S) => i.touched[S] === !0) || c(!0);
1491
1491
  else {
1492
- const w = b ? [] : "";
1492
+ const w = v ? [] : "";
1493
1493
  c(!1), i.setFieldValue(
1494
1494
  `conditionsThatEstablishesTheDecision.${m}`,
1495
1495
  w
@@ -1534,7 +1534,7 @@ const Ao = D.div`
1534
1534
  })
1535
1535
  ), s = ((r == null ? void 0 : r.length) === 0 || r.length < Math.floor(window.innerWidth / 300)) && !o && t;
1536
1536
  return { renderedCards: l, shouldRenderAddCard: s };
1537
- }, gs = (e) => {
1537
+ }, hs = (e) => {
1538
1538
  const {
1539
1539
  controls: t = !0,
1540
1540
  customTitleContentAddCard: n,
@@ -1547,21 +1547,21 @@ const Ao = D.div`
1547
1547
  loading: s,
1548
1548
  handleOpenModal: p,
1549
1549
  handleCloseModal: d,
1550
- handleSubmitForm: g,
1551
- handleDelete: h,
1550
+ handleSubmitForm: h,
1551
+ handleDelete: g,
1552
1552
  terms: f = !0
1553
- } = e, m = ie("(max-width: 681px)"), b = ie("(max-width: 400px)"), { renderedCards: y, shouldRenderAddCard: w } = Lo({
1553
+ } = e, m = ae("(max-width: 681px)"), v = ae("(max-width: 400px)"), { renderedCards: x, shouldRenderAddCard: w } = Lo({
1554
1554
  controls: t,
1555
1555
  customTitleContentAddCard: n,
1556
1556
  decisions: o,
1557
1557
  loading: s,
1558
1558
  handleOpenModal: p,
1559
- handleDelete: h,
1559
+ handleDelete: g,
1560
1560
  textValues: i
1561
1561
  }), S = (o == null ? void 0 : o.length) === 0 && !s;
1562
- return /* @__PURE__ */ v(V, { children: [
1563
- /* @__PURE__ */ a(eo, { children: /* @__PURE__ */ a(to, { children: /* @__PURE__ */ a(x, { direction: "column", gap: "16px", padding: "6px", children: S ? /* @__PURE__ */ v(
1564
- x,
1562
+ return /* @__PURE__ */ b(V, { children: [
1563
+ /* @__PURE__ */ a(eo, { children: /* @__PURE__ */ a(to, { children: /* @__PURE__ */ a(T, { direction: "column", gap: "16px", padding: "6px", children: S ? /* @__PURE__ */ b(
1564
+ T,
1565
1565
  {
1566
1566
  direction: "column",
1567
1567
  gap: "28px",
@@ -1570,9 +1570,9 @@ const Ao = D.div`
1570
1570
  justifyContent: "center",
1571
1571
  alignItems: "center",
1572
1572
  children: [
1573
- /* @__PURE__ */ a(R, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ v(V, { children: [
1573
+ /* @__PURE__ */ a(R, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ b(V, { children: [
1574
1574
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
1575
- /* @__PURE__ */ v(
1575
+ /* @__PURE__ */ b(
1576
1576
  R,
1577
1577
  {
1578
1578
  as: "span",
@@ -1599,10 +1599,10 @@ const Ao = D.div`
1599
1599
  )
1600
1600
  ]
1601
1601
  }
1602
- ) : /* @__PURE__ */ v(
1603
- we,
1602
+ ) : /* @__PURE__ */ b(
1603
+ Se,
1604
1604
  {
1605
- templateColumns: b ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
1605
+ templateColumns: v ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
1606
1606
  autoFlow: "row dense",
1607
1607
  gap: "24px",
1608
1608
  alignItems: "start",
@@ -1612,7 +1612,7 @@ const Ao = D.div`
1612
1612
  padding: "6px",
1613
1613
  height: m ? "auto" : "484px",
1614
1614
  children: [
1615
- y,
1615
+ x,
1616
1616
  w && Pt({
1617
1617
  type: "add",
1618
1618
  index: o == null ? void 0 : o.length,
@@ -1621,7 +1621,7 @@ const Ao = D.div`
1621
1621
  customMessageEmptyDecisions: r,
1622
1622
  loading: s,
1623
1623
  handleOpenModal: p,
1624
- handleDelete: h,
1624
+ handleDelete: g,
1625
1625
  textValues: i,
1626
1626
  shouldRenderEmptyMessage: S,
1627
1627
  terms: f
@@ -1639,7 +1639,7 @@ const Ao = D.div`
1639
1639
  Fo,
1640
1640
  {
1641
1641
  decision: l || c,
1642
- onSubmitEvent: g,
1642
+ onSubmitEvent: h,
1643
1643
  textValues: i,
1644
1644
  onCancel: () => d ? d() : () => {
1645
1645
  }
@@ -1679,7 +1679,7 @@ const Ao = D.div`
1679
1679
  return t;
1680
1680
  }
1681
1681
  return typeof t == "object" && t !== null && !Array.isArray(t) ? "from" in t && "to" in t ? t : (zo[e == null ? void 0 : e.howToSetTheDecision] || Mo)(t) : t || void 0;
1682
- }, Ho = D.div`
1682
+ }, Ho = N.div`
1683
1683
  display: flex;
1684
1684
  justify-content: ${({ $justifyContent: e }) => e};
1685
1685
  align-items: ${({ $alignItems: e }) => e};
@@ -1693,16 +1693,16 @@ const Ao = D.div`
1693
1693
  padding: ${({ $padding: e }) => e};
1694
1694
  background: ${({ $background: e, theme: t }) => {
1695
1695
  var n, r, o, i;
1696
- return e ? `${((r = (n = t == null ? void 0 : t.palette) == null ? void 0 : n.neutral) == null ? void 0 : r.N10) || k.palette.neutral.N10}` : `${((i = (o = t == null ? void 0 : t.palette) == null ? void 0 : o.neutral) == null ? void 0 : i.N0) || k.palette.neutral.N0}`;
1696
+ return e ? `${((r = (n = t == null ? void 0 : t.palette) == null ? void 0 : n.neutral) == null ? void 0 : r.N10) || A.palette.neutral.N10}` : `${((i = (o = t == null ? void 0 : t.palette) == null ? void 0 : o.neutral) == null ? void 0 : i.N0) || A.palette.neutral.N0}`;
1697
1697
  }};
1698
1698
  border: ${({ $border: e, theme: t }) => {
1699
1699
  var n, r;
1700
- return e ? `1px solid ${((r = (n = t == null ? void 0 : t.palette) == null ? void 0 : n.neutral) == null ? void 0 : r.N40) || k.palette.neutral.N40}` : "none";
1700
+ return e ? `1px solid ${((r = (n = t == null ? void 0 : t.palette) == null ? void 0 : n.neutral) == null ? void 0 : r.N40) || A.palette.neutral.N40}` : "none";
1701
1701
  }};
1702
1702
  border-radius: ${({ $borderRadius: e }) => e};
1703
1703
  box-sizing: ${({ $boxSizing: e }) => e};
1704
1704
  overflow-y: ${({ $scroll: e }) => e ? "scroll" : "none"};
1705
- `, de = _.forwardRef(
1705
+ `, pe = _.forwardRef(
1706
1706
  (e, t) => {
1707
1707
  const {
1708
1708
  children: n,
@@ -1715,12 +1715,12 @@ const Ao = D.div`
1715
1715
  width: s,
1716
1716
  gap: p,
1717
1717
  background: d,
1718
- borderRadius: g,
1719
- border: h,
1718
+ borderRadius: h,
1719
+ border: g,
1720
1720
  margin: f = "0px",
1721
1721
  padding: m = "0px",
1722
- boxSizing: b,
1723
- scroll: y = !1
1722
+ boxSizing: v,
1723
+ scroll: x = !1
1724
1724
  } = e;
1725
1725
  return /* @__PURE__ */ a(
1726
1726
  Ho,
@@ -1735,29 +1735,29 @@ const Ao = D.div`
1735
1735
  wrap: r,
1736
1736
  $gap: p,
1737
1737
  $background: d,
1738
- $border: h,
1738
+ $border: g,
1739
1739
  $margin: f,
1740
1740
  $padding: m,
1741
- $borderRadius: g,
1742
- $boxSizing: b,
1743
- $scroll: y,
1741
+ $borderRadius: h,
1742
+ $boxSizing: v,
1743
+ $scroll: x,
1744
1744
  children: n
1745
1745
  }
1746
1746
  );
1747
1747
  }
1748
1748
  );
1749
- de.displayName = "BorderStack";
1750
- D.div`
1749
+ pe.displayName = "BorderStack";
1750
+ N.div`
1751
1751
  & > div {
1752
1752
  border-radius: 8px;
1753
1753
  border: 1px solid
1754
1754
  ${({ theme: e }) => {
1755
1755
  var t, n;
1756
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
1756
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
1757
1757
  }};
1758
1758
  }
1759
1759
  `;
1760
- D.div`
1760
+ N.div`
1761
1761
  width: 100%;
1762
1762
  height: 100%;
1763
1763
  overflow-y: auto;
@@ -1776,19 +1776,19 @@ D.div`
1776
1776
  border-radius: 8px;
1777
1777
  }
1778
1778
  `;
1779
- const Bo = D.div`
1779
+ const Bo = N.div`
1780
1780
  cursor: pointer;
1781
- `, qo = D.div`
1781
+ `, qo = N.div`
1782
1782
  & > div > div > div > p {
1783
1783
  text-wrap-mode: nowrap;
1784
1784
  }
1785
- `, Wo = D.div`
1785
+ `, Wo = N.div`
1786
1786
  & > div {
1787
1787
  justify-content: auto;
1788
1788
  gap: 8px;
1789
1789
  }
1790
1790
  `;
1791
- var re = /* @__PURE__ */ ((e) => (e.EQUAL = "EqualTo", e.GREATER_THAN = "GreaterThan", e.LESS_THAN = "LessThan", e.LIST_OF_VALUES = "ListOfValues", e.LIST_OF_VALUES_MULTI = "ListOfValuesMulti", e.RANGE = "Range", e))(re || {});
1791
+ var oe = /* @__PURE__ */ ((e) => (e.EQUAL = "EqualTo", e.GREATER_THAN = "GreaterThan", e.LESS_THAN = "LessThan", e.LIST_OF_VALUES = "ListOfValues", e.LIST_OF_VALUES_MULTI = "ListOfValuesMulti", e.RANGE = "Range", e))(oe || {});
1792
1792
  const Yo = (e) => {
1793
1793
  const {
1794
1794
  controls: t,
@@ -1802,25 +1802,25 @@ const Yo = (e) => {
1802
1802
  onToggle: s,
1803
1803
  hasEffectiveFrom: p,
1804
1804
  hasValidUntil: d,
1805
- effectiveFromRenderer: g,
1806
- validUntilRenderer: h,
1805
+ effectiveFromRenderer: h,
1806
+ validUntilRenderer: g,
1807
1807
  onEdit: f,
1808
1808
  onDelete: m,
1809
- tabs: b,
1810
- selectedTab: y,
1809
+ tabs: v,
1810
+ selectedTab: x,
1811
1811
  onTabChange: w,
1812
1812
  currentConditions: S,
1813
- hasMultipleGroups: N,
1813
+ hasMultipleGroups: D,
1814
1814
  editionMode: C = "versioned"
1815
1815
  } = e;
1816
- return i ? /* @__PURE__ */ v(x, { direction: "column", gap: "16px", children: [
1817
- /* @__PURE__ */ a(Bo, { onClick: s, children: /* @__PURE__ */ v(
1818
- x,
1816
+ return i ? /* @__PURE__ */ b(T, { direction: "column", gap: "16px", children: [
1817
+ /* @__PURE__ */ a(Bo, { onClick: s, children: /* @__PURE__ */ b(
1818
+ T,
1819
1819
  {
1820
1820
  alignItems: "start",
1821
1821
  justifyContent: "space-between",
1822
1822
  children: [
1823
- /* @__PURE__ */ v(x, { gap: "12px", children: [
1823
+ /* @__PURE__ */ b(T, { gap: "12px", children: [
1824
1824
  /* @__PURE__ */ a(qo, { children: /* @__PURE__ */ a(
1825
1825
  He,
1826
1826
  {
@@ -1842,8 +1842,8 @@ const Yo = (e) => {
1842
1842
  }
1843
1843
  ) })
1844
1844
  ] }),
1845
- /* @__PURE__ */ v(x, { gap: "12px", children: [
1846
- t && /* @__PURE__ */ v(V, { children: [
1845
+ /* @__PURE__ */ b(T, { gap: "12px", children: [
1846
+ t && /* @__PURE__ */ b(V, { children: [
1847
1847
  /* @__PURE__ */ a(
1848
1848
  B,
1849
1849
  {
@@ -1851,8 +1851,8 @@ const Yo = (e) => {
1851
1851
  icon: /* @__PURE__ */ a(lr, {}),
1852
1852
  size: "24px",
1853
1853
  cursorHover: !0,
1854
- onClick: (A) => {
1855
- A.stopPropagation(), f == null || f();
1854
+ onClick: (k) => {
1855
+ k.stopPropagation(), f == null || f();
1856
1856
  }
1857
1857
  }
1858
1858
  ),
@@ -1863,8 +1863,8 @@ const Yo = (e) => {
1863
1863
  icon: /* @__PURE__ */ a(yt, {}),
1864
1864
  size: "24px",
1865
1865
  cursorHover: !0,
1866
- onClick: (A) => {
1867
- A.stopPropagation(), m == null || m();
1866
+ onClick: (k) => {
1867
+ k.stopPropagation(), m == null || m();
1868
1868
  }
1869
1869
  }
1870
1870
  )
@@ -1883,13 +1883,13 @@ const Yo = (e) => {
1883
1883
  },
1884
1884
  r.ruleName
1885
1885
  ) }),
1886
- l && /* @__PURE__ */ v(V, { children: [
1886
+ l && /* @__PURE__ */ b(V, { children: [
1887
1887
  /* @__PURE__ */ a(W, { dashed: !0 }),
1888
- N ? /* @__PURE__ */ a(
1888
+ D ? /* @__PURE__ */ a(
1889
1889
  Vn,
1890
1890
  {
1891
- tabs: b,
1892
- selectedTab: y,
1891
+ tabs: v,
1892
+ selectedTab: x,
1893
1893
  onChange: w
1894
1894
  }
1895
1895
  ) : /* @__PURE__ */ a(
@@ -1904,15 +1904,15 @@ const Yo = (e) => {
1904
1904
  children: c.factsThatConditionIt
1905
1905
  }
1906
1906
  ),
1907
- /* @__PURE__ */ a(x, { direction: "column", gap: "20px", children: /* @__PURE__ */ v(
1908
- x,
1907
+ /* @__PURE__ */ a(T, { direction: "column", gap: "20px", children: /* @__PURE__ */ b(
1908
+ T,
1909
1909
  {
1910
1910
  direction: "column",
1911
1911
  gap: "8px",
1912
1912
  justifyContent: n,
1913
1913
  children: [
1914
- S.map((A) => /* @__PURE__ */ a(
1915
- de,
1914
+ S.map((k) => /* @__PURE__ */ a(
1915
+ pe,
1916
1916
  {
1917
1917
  direction: "column",
1918
1918
  padding: "6px 12px",
@@ -1922,21 +1922,21 @@ const Yo = (e) => {
1922
1922
  st,
1923
1923
  {
1924
1924
  element: {
1925
- ...A,
1926
- value: A.value,
1927
- howToSetTheCondition: A.howToSetTheCondition === re.LIST_OF_VALUES ? re.LIST_OF_VALUES_MULTI : A.howToSetTheCondition
1925
+ ...k,
1926
+ value: k.value,
1927
+ howToSetTheCondition: k.howToSetTheCondition === oe.LIST_OF_VALUES ? oe.LIST_OF_VALUES_MULTI : k.howToSetTheCondition
1928
1928
  },
1929
1929
  valueData: Xe(
1930
- A
1930
+ k
1931
1931
  ),
1932
1932
  editionMode: C
1933
1933
  }
1934
1934
  )
1935
1935
  },
1936
- A.conditionName
1936
+ k.conditionName
1937
1937
  )),
1938
- p && g && /* @__PURE__ */ a(
1939
- de,
1938
+ p && h && /* @__PURE__ */ a(
1939
+ pe,
1940
1940
  {
1941
1941
  direction: "column",
1942
1942
  padding: "6px 12px",
@@ -1945,16 +1945,16 @@ const Yo = (e) => {
1945
1945
  children: /* @__PURE__ */ a(
1946
1946
  st,
1947
1947
  {
1948
- element: g.element,
1949
- valueData: g.valueData,
1948
+ element: h.element,
1949
+ valueData: h.valueData,
1950
1950
  editionMode: C
1951
1951
  },
1952
1952
  "effectiveFrom"
1953
1953
  )
1954
1954
  }
1955
1955
  ),
1956
- d && h && /* @__PURE__ */ a(
1957
- de,
1956
+ d && g && /* @__PURE__ */ a(
1957
+ pe,
1958
1958
  {
1959
1959
  direction: "column",
1960
1960
  padding: "6px 12px",
@@ -1963,8 +1963,8 @@ const Yo = (e) => {
1963
1963
  children: /* @__PURE__ */ a(
1964
1964
  st,
1965
1965
  {
1966
- element: h.element,
1967
- valueData: h.valueData,
1966
+ element: g.element,
1967
+ valueData: g.valueData,
1968
1968
  editionMode: C
1969
1969
  },
1970
1970
  "validUntil"
@@ -1975,42 +1975,42 @@ const Yo = (e) => {
1975
1975
  }
1976
1976
  ) })
1977
1977
  ] })
1978
- ] }) : /* @__PURE__ */ v(x, { justifyContent: "space-between", children: [
1979
- /* @__PURE__ */ v(x, { alignItems: "center", gap: "8px", children: [
1980
- /* @__PURE__ */ a(oe, { animated: !0, width: "150px" }),
1981
- /* @__PURE__ */ a(oe, { animated: !0, width: "70px" })
1978
+ ] }) : /* @__PURE__ */ b(T, { justifyContent: "space-between", children: [
1979
+ /* @__PURE__ */ b(T, { alignItems: "center", gap: "8px", children: [
1980
+ /* @__PURE__ */ a(ie, { animated: !0, width: "150px" }),
1981
+ /* @__PURE__ */ a(ie, { animated: !0, width: "70px" })
1982
1982
  ] }),
1983
- /* @__PURE__ */ v(x, { alignItems: "center", gap: "8px", children: [
1984
- /* @__PURE__ */ a(oe, { animated: !0, width: "50px" }),
1983
+ /* @__PURE__ */ b(T, { alignItems: "center", gap: "8px", children: [
1984
+ /* @__PURE__ */ a(ie, { animated: !0, width: "50px" }),
1985
1985
  /* @__PURE__ */ a(xr, { animated: !0 })
1986
1986
  ] })
1987
1987
  ] });
1988
- }, bn = (e) => !e || typeof e != "object" || Array.isArray(e) ? !1 : Object.values(e).some(Array.isArray), ht = (e) => {
1988
+ }, bn = (e) => !e || typeof e != "object" || Array.isArray(e) ? !1 : Object.values(e).some(Array.isArray), gt = (e) => {
1989
1989
  const t = /* @__PURE__ */ new Set(), n = [];
1990
1990
  for (const r of e) {
1991
1991
  const o = String((r == null ? void 0 : r.conditionName) ?? "");
1992
1992
  t.has(o) || (t.add(o), n.push(r));
1993
1993
  }
1994
1994
  return n;
1995
- }, Ce = (e) => {
1995
+ }, xe = (e) => {
1996
1996
  if (!e) return {};
1997
1997
  if (bn(e.conditionsThatEstablishesTheDecision)) {
1998
1998
  const t = e.conditionsThatEstablishesTheDecision;
1999
1999
  return Object.fromEntries(
2000
- Object.entries(t).map(([n, r]) => [n, ht(r)])
2000
+ Object.entries(t).map(([n, r]) => [n, gt(r)])
2001
2001
  );
2002
2002
  }
2003
2003
  if (Array.isArray(e.conditionGroups)) {
2004
2004
  const t = e.conditionGroups.map((n) => [
2005
2005
  n.ConditionGroupId,
2006
- ht(
2006
+ gt(
2007
2007
  Array.isArray(n.conditionsThatEstablishesTheDecision) ? n.conditionsThatEstablishesTheDecision : []
2008
2008
  )
2009
2009
  ]);
2010
2010
  return Object.fromEntries(t);
2011
2011
  }
2012
2012
  return bn(e) ? Object.fromEntries(
2013
- Object.entries(e).map(([t, n]) => [t, ht(n)])
2013
+ Object.entries(e).map(([t, n]) => [t, gt(n)])
2014
2014
  ) : {};
2015
2015
  }, Bn = (e, t) => Object.fromEntries(
2016
2016
  Object.entries(e).map(([n, r]) => [n, r.filter(t)])
@@ -2055,9 +2055,9 @@ const Yo = (e) => {
2055
2055
  "Dic"
2056
2056
  ], n = typeof e == "string" && /^(\d{4})-(\d{2})-(\d{2})/.exec(e);
2057
2057
  if (n) {
2058
- const [, s, p, d] = n, g = Number(s), h = Number(p) - 1, f = Number(d);
2059
- if (isFinite(g) && h >= 0 && h < 12 && isFinite(f))
2060
- return `${String(f).padStart(2, "0")}/${t[h]}/${g}`;
2058
+ const [, s, p, d] = n, h = Number(s), g = Number(p) - 1, f = Number(d);
2059
+ if (isFinite(h) && g >= 0 && g < 12 && isFinite(f))
2060
+ return `${String(f).padStart(2, "0")}/${t[g]}/${h}`;
2061
2061
  }
2062
2062
  const r = e instanceof Date ? e : typeof e == "number" ? new Date(e) : new Date(e);
2063
2063
  if (isNaN(r.getTime())) return "";
@@ -2096,7 +2096,7 @@ const Yo = (e) => {
2096
2096
  onDelete: s,
2097
2097
  controls: p = !0,
2098
2098
  editionMode: d = "versioned"
2099
- } = e, g = !!(n != null && n.effectiveFrom), h = !!(n != null && n.validUntil), f = g ? {
2099
+ } = e, h = !!(n != null && n.effectiveFrom), g = !!(n != null && n.validUntil), f = h ? {
2100
2100
  element: {
2101
2101
  labelName: o == null ? void 0 : o.effectiveFrom,
2102
2102
  value: dt(n.effectiveFrom),
@@ -2109,7 +2109,7 @@ const Yo = (e) => {
2109
2109
  howToSetTheDecision: P.EQUAL,
2110
2110
  decisionDataType: H.DATE
2111
2111
  })
2112
- } : null, m = h ? {
2112
+ } : null, m = g ? {
2113
2113
  element: {
2114
2114
  labelName: o == null ? void 0 : o.validUntil,
2115
2115
  value: dt(n.validUntil),
@@ -2122,24 +2122,24 @@ const Yo = (e) => {
2122
2122
  howToSetTheDecision: P.EQUAL,
2123
2123
  decisionDataType: H.DATE
2124
2124
  })
2125
- } : null, b = (n == null ? void 0 : n.howToSetTheDecision) || P.EQUAL, y = b === P.LIST_OF_VALUES || b === P.LIST_OF_VALUES_MULTI, w = n && (y ? Zo(n).list : n.i18nValue ?? Xe(n)), S = n ? {
2125
+ } : null, v = (n == null ? void 0 : n.howToSetTheDecision) || P.EQUAL, x = v === P.LIST_OF_VALUES || v === P.LIST_OF_VALUES_MULTI, w = n && (x ? Zo(n).list : n.i18nValue ?? Xe(n)), S = n ? {
2126
2126
  labelName: t && n.labelName || "",
2127
2127
  decisionDataType: n.decisionDataType || H.ALPHABETICAL,
2128
2128
  value: w,
2129
- howToSetTheDecision: n.i18nValue ? P.EQUAL : b,
2129
+ howToSetTheDecision: n.i18nValue ? P.EQUAL : v,
2130
2130
  validUntil: n.validUntil
2131
- } : null, N = _.useMemo(
2132
- () => n ? Ce(n) : {},
2131
+ } : null, D = _.useMemo(
2132
+ () => n ? xe(n) : {},
2133
2133
  [n]
2134
- ), C = (($t = (At = n == null ? void 0 : n.conditionGroups) == null ? void 0 : At.map((M) => M == null ? void 0 : M.ConditionGroupId)) == null ? void 0 : $t.filter(Boolean)) || Object.keys(N), A = C[0] || "group-primary", L = _.useMemo(() => {
2135
- const M = {}, $ = N[A] || [], O = N["group-primary"] || [];
2136
- M["group-primary"] = A === "group-primary" ? O : [...$, ...O];
2134
+ ), C = (($t = (At = n == null ? void 0 : n.conditionGroups) == null ? void 0 : At.map((M) => M == null ? void 0 : M.ConditionGroupId)) == null ? void 0 : $t.filter(Boolean)) || Object.keys(D), k = C[0] || "group-primary", L = _.useMemo(() => {
2135
+ const M = {}, $ = D[k] || [], O = D["group-primary"] || [];
2136
+ M["group-primary"] = k === "group-primary" ? O : [...$, ...O];
2137
2137
  for (const E of C)
2138
- !E || E === A || E !== "group-primary" && N[E] && (M[E] = N[E]);
2139
- for (const E of Object.keys(N))
2140
- E === "group-primary" || E === A || E in M || (M[E] = N[E]);
2138
+ !E || E === k || E !== "group-primary" && D[E] && (M[E] = D[E]);
2139
+ for (const E of Object.keys(D))
2140
+ E === "group-primary" || E === k || E in M || (M[E] = D[E]);
2141
2141
  return M;
2142
- }, [N, A, C]), F = _.useMemo(() => {
2142
+ }, [D, k, C]), F = _.useMemo(() => {
2143
2143
  const M = {};
2144
2144
  return Object.keys(L).forEach(($) => {
2145
2145
  const O = L[$];
@@ -2157,22 +2157,22 @@ const Yo = (e) => {
2157
2157
  };
2158
2158
  }) : M[$] = O;
2159
2159
  }), M;
2160
- }, [L]), ue = Bn(
2160
+ }, [L]), se = Bn(
2161
2161
  F,
2162
2162
  (M) => !M.hidden
2163
- ), ge = _.useMemo(() => {
2164
- const M = Object.entries(ue).map(
2163
+ ), ee = _.useMemo(() => {
2164
+ const M = Object.entries(se).map(
2165
2165
  ([O, E]) => [O, E.filter(Jo)]
2166
2166
  ), $ = {};
2167
2167
  for (const [O, E] of M)
2168
2168
  E.length > 0 && ($[O] = E);
2169
2169
  return $;
2170
- }, [ue]), he = _.useMemo(() => {
2171
- const M = Object.keys(ge);
2170
+ }, [se]), de = _.useMemo(() => {
2171
+ const M = Object.keys(ee);
2172
2172
  return M.includes("group-primary") ? ["group-primary", ...M.filter(($) => $ !== "group-primary")] : M;
2173
- }, [ge]), Ie = {};
2173
+ }, [ee]), Ie = {};
2174
2174
  let Dt = 1;
2175
- const nt = he.map((M) => {
2175
+ const nt = de.map((M) => {
2176
2176
  const $ = M === "group-primary" ? "mainCondition" : `alternateCondition-${Dt++}`;
2177
2177
  return Ie[$] = M, {
2178
2178
  id: $,
@@ -2181,7 +2181,7 @@ const Yo = (e) => {
2181
2181
  };
2182
2182
  }), [_e, Nt] = _.useState(
2183
2183
  ((Pe = nt[0]) == null ? void 0 : Pe.id) ?? "mainCondition"
2184
- ), Et = (M) => Nt(M), rt = Ie[_e] ?? he[0] ?? "group-primary", ot = ge[rt] ?? [], it = he.length > 1, kt = Array.from({ length: 5 }), Ve = !!(!r && n && o && S), dn = ot.length < 2 ? "start" : "space-between", cn = `N° ${String((i ?? 0) + 1).padStart(2, "0")}`;
2184
+ ), Et = (M) => Nt(M), rt = Ie[_e] ?? de[0] ?? "group-primary", ot = ee[rt] ?? [], it = de.length > 1, kt = Array.from({ length: 5 }), Ve = !!(!r && n && o && S), dn = ot.length < 2 ? "start" : "space-between", cn = `N° ${String((i ?? 0) + 1).padStart(2, "0")}`;
2185
2185
  return /* @__PURE__ */ a(
2186
2186
  Yo,
2187
2187
  {
@@ -2195,8 +2195,8 @@ const Yo = (e) => {
2195
2195
  tagLabel: cn,
2196
2196
  isOpen: c,
2197
2197
  onToggle: u,
2198
- hasEffectiveFrom: g,
2199
- hasValidUntil: h,
2198
+ hasEffectiveFrom: h,
2199
+ hasValidUntil: g,
2200
2200
  effectiveFromRenderer: f,
2201
2201
  validUntilRenderer: m,
2202
2202
  onEdit: l,
@@ -2219,12 +2219,12 @@ const Yo = (e) => {
2219
2219
  transform: translateY(0);
2220
2220
  }
2221
2221
  `;
2222
- D.div`
2222
+ N.div`
2223
2223
  border-radius: 8px;
2224
2224
  border: 1px solid
2225
2225
  ${({ theme: e }) => {
2226
2226
  var t, n;
2227
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
2227
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
2228
2228
  }};
2229
2229
  box-sizing: border-box;
2230
2230
  display: flex;
@@ -2233,37 +2233,37 @@ D.div`
2233
2233
  height: 100%;
2234
2234
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
2235
2235
  `;
2236
- D.div`
2236
+ N.div`
2237
2237
  & > div {
2238
2238
  border-radius: 8px;
2239
2239
  border: 1px solid
2240
2240
  ${({ theme: e }) => {
2241
2241
  var t, n;
2242
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
2242
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
2243
2243
  }};
2244
2244
  }
2245
2245
  `;
2246
- const ei = D.div`
2246
+ const ei = N.div`
2247
2247
  & > div {
2248
2248
  box-shadow: 0px 2px 3px 0px
2249
2249
  ${({ theme: e }) => {
2250
2250
  var t, n;
2251
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutralAlpha) == null ? void 0 : n.N30A) || k.palette.neutralAlpha.N30A;
2251
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutralAlpha) == null ? void 0 : n.N30A) || A.palette.neutralAlpha.N30A;
2252
2252
  }};
2253
2253
  cursor: pointer;
2254
2254
  }
2255
- `, ti = D.div`
2255
+ `, ti = N.div`
2256
2256
  width: 100%;
2257
2257
  height: 100%;
2258
2258
  & > div {
2259
2259
  animation: ${Ko} 600ms ease-out;
2260
2260
  }
2261
- `, ni = D.div`
2261
+ `, ni = N.div`
2262
2262
  & > div > div {
2263
2263
  border-radius: 8px;
2264
2264
  box-sizing: border-box;
2265
2265
  }
2266
- `, ri = D.div`
2266
+ `, ri = N.div`
2267
2267
  & > div {
2268
2268
  width: 100%;
2269
2269
  height: 100%;
@@ -2310,7 +2310,7 @@ const ei = D.div`
2310
2310
  onToggle: s,
2311
2311
  editionMode: p
2312
2312
  } = e;
2313
- return n ? /* @__PURE__ */ a(tt, { children: /* @__PURE__ */ a(x, { direction: "column", gap: "4px", width: "100%", children: /* @__PURE__ */ a(
2313
+ return n ? /* @__PURE__ */ a(tt, { children: /* @__PURE__ */ a(T, { direction: "column", gap: "4px", width: "100%", children: /* @__PURE__ */ a(
2314
2314
  Hn,
2315
2315
  {
2316
2316
  id: n.decisionId,
@@ -2345,7 +2345,7 @@ const ei = D.div`
2345
2345
  {
2346
2346
  onClick: () => r ? r() : null,
2347
2347
  children: /* @__PURE__ */ a(
2348
- de,
2348
+ pe,
2349
2349
  {
2350
2350
  direction: "column",
2351
2351
  gap: "4px",
@@ -2353,8 +2353,8 @@ const ei = D.div`
2353
2353
  height: "100%",
2354
2354
  background: !0,
2355
2355
  borderRadius: "8px",
2356
- children: /* @__PURE__ */ v(
2357
- x,
2356
+ children: /* @__PURE__ */ b(
2357
+ T,
2358
2358
  {
2359
2359
  justifyContent: "space-between",
2360
2360
  alignItems: "center",
@@ -2397,7 +2397,7 @@ const ei = D.div`
2397
2397
  isOpenFor: s,
2398
2398
  toggleAt: p,
2399
2399
  editionMode: d
2400
- } = e, g = i ? Array.from({ length: 3 }).map(
2400
+ } = e, h = i ? Array.from({ length: 3 }).map(
2401
2401
  (f, m) => zt({
2402
2402
  type: "loading",
2403
2403
  index: m,
@@ -2425,18 +2425,18 @@ const ei = D.div`
2425
2425
  onToggle: p ? () => p(m) : void 0,
2426
2426
  editionMode: d
2427
2427
  })
2428
- ), h = ((o == null ? void 0 : o.length) === 0 || o.length < Math.floor(window.innerWidth / 300)) && !i && n;
2429
- return { renderedCards: g, shouldRenderAddCard: h };
2430
- }, di = D.div`
2428
+ ), g = ((o == null ? void 0 : o.length) === 0 || o.length < Math.floor(window.innerWidth / 300)) && !i && n;
2429
+ return { renderedCards: h, shouldRenderAddCard: g };
2430
+ }, di = N.div`
2431
2431
  position: relative;
2432
2432
  & > div {
2433
2433
  padding: 24px 16px;
2434
2434
  place-items: unset;
2435
2435
  }
2436
- `, ci = D.div`
2436
+ `, ci = N.div`
2437
2437
  background-color: ${({ theme: e }) => {
2438
2438
  var t, n;
2439
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N0) || k.palette.neutral.N0;
2439
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N0) || A.palette.neutral.N0;
2440
2440
  }};
2441
2441
  max-height: 90vh;
2442
2442
  width: 100%;
@@ -2471,12 +2471,12 @@ const ei = D.div`
2471
2471
  throw new Error(
2472
2472
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
2473
2473
  );
2474
- const u = ie("(max-width: 400px)");
2474
+ const u = ae("(max-width: 400px)");
2475
2475
  return en(
2476
- /* @__PURE__ */ a(di, { smallScreen: u, children: /* @__PURE__ */ a(Jt, { children: /* @__PURE__ */ a(ci, { children: /* @__PURE__ */ v(x, { direction: "column", gap: "24px", children: [
2477
- /* @__PURE__ */ v(x, { direction: "column", gap: "24px", children: [
2478
- /* @__PURE__ */ v(x, { alignItems: "center", justifyContent: "space-between", children: [
2479
- /* @__PURE__ */ v(x, { direction: "column", gap: "8px", children: [
2476
+ /* @__PURE__ */ a(di, { smallScreen: u, children: /* @__PURE__ */ a(Jt, { children: /* @__PURE__ */ a(ci, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
2477
+ /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
2478
+ /* @__PURE__ */ b(T, { alignItems: "center", justifyContent: "space-between", children: [
2479
+ /* @__PURE__ */ b(T, { direction: "column", gap: "8px", children: [
2480
2480
  /* @__PURE__ */ a(
2481
2481
  R,
2482
2482
  {
@@ -2504,8 +2504,8 @@ const ei = D.div`
2504
2504
  (t) => t != null && t.trim() !== ""
2505
2505
  ),
2506
2506
  value: e
2507
- }), gi = (e) => ({
2508
- schema: xe().test(
2507
+ }), hi = (e) => ({
2508
+ schema: we().test(
2509
2509
  "isArrayOrString",
2510
2510
  "Por favor selecciona una opcion",
2511
2511
  (t) => Array.isArray(t) ? t.every(
@@ -2513,8 +2513,8 @@ const ei = D.div`
2513
2513
  ) : typeof t == "string"
2514
2514
  ),
2515
2515
  value: e
2516
- }), hi = (e) => ({
2517
- schema: xe().test(
2516
+ }), gi = (e) => ({
2517
+ schema: we().test(
2518
2518
  "isArrayOrString",
2519
2519
  "Por favor selecciona al menos una opcion",
2520
2520
  (t) => Array.isArray(t) ? t.every(
@@ -2528,12 +2528,12 @@ const ei = D.div`
2528
2528
  }, bi = (e) => {
2529
2529
  const t = (e == null ? void 0 : e.from) ?? 0, n = (e == null ? void 0 : e.to) ?? 0;
2530
2530
  return {
2531
- schema: J({
2532
- from: pe().transform(yn).typeError(ct).required(ct).moreThan(0, vn).test("from<=to", fi, function(r) {
2531
+ schema: Q({
2532
+ from: ge().transform(yn).typeError(ct).required(ct).moreThan(0, vn).test("from<=to", fi, function(r) {
2533
2533
  const { to: o } = this.parent;
2534
2534
  return r === void 0 || o === void 0 ? !0 : r <= o;
2535
2535
  }),
2536
- to: pe().transform(yn).typeError(ct).required(ct).moreThan(0, vn).test("to>from", mi, function(r) {
2536
+ to: ge().transform(yn).typeError(ct).required(ct).moreThan(0, vn).test("to>from", mi, function(r) {
2537
2537
  const { from: o } = this.parent;
2538
2538
  return o === void 0 || r === void 0 ? !0 : r > o;
2539
2539
  })
@@ -2543,7 +2543,7 @@ const ei = D.div`
2543
2543
  }, Tn = (e) => e && typeof e == "object" && !Array.isArray(e) && "value" in e && e.value !== "" && e.value != null, Ot = (e, t) => {
2544
2544
  if (Tn(e))
2545
2545
  return {
2546
- schema: xe().test(
2546
+ schema: we().test(
2547
2547
  "required-option",
2548
2548
  "Por favor selecciona una opcion",
2549
2549
  (n) => Tn(n)
@@ -2553,13 +2553,13 @@ const ei = D.div`
2553
2553
  if (e && typeof e == "object" && "from" in e && "to" in e) {
2554
2554
  const n = e;
2555
2555
  return t === H.PERCENTAGE ? {
2556
- schema: J({
2557
- from: pe().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"),
2558
- to: pe().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")
2556
+ schema: Q({
2557
+ from: ge().required("El campo desde es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100"),
2558
+ to: ge().required("El campo hasta es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100")
2559
2559
  }),
2560
2560
  value: n
2561
2561
  } : {
2562
- schema: J({
2562
+ schema: Q({
2563
2563
  from: be().required("Requerido"),
2564
2564
  to: be().required("Requerido")
2565
2565
  }),
@@ -2567,15 +2567,15 @@ const ei = D.div`
2567
2567
  };
2568
2568
  }
2569
2569
  return t === H.PERCENTAGE ? {
2570
- schema: pe().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"),
2570
+ schema: ge().required("El campo porcentaje es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100"),
2571
2571
  value: e
2572
2572
  } : {
2573
- schema: xe().test("required", "Requerido", (n) => n == null ? !1 : typeof n == "string" ? n.trim().length > 0 : typeof n == "number" ? !Number.isNaN(n) : !1),
2573
+ schema: we().test("required", "Requerido", (n) => n == null ? !1 : typeof n == "string" ? n.trim().length > 0 : typeof n == "number" ? !Number.isNaN(n) : !1),
2574
2574
  value: e
2575
2575
  };
2576
2576
  }, vi = {
2577
- [I.LIST_OF_VALUES]: gi,
2578
- [I.LIST_OF_VALUES_MULTI]: hi,
2577
+ [I.LIST_OF_VALUES]: hi,
2578
+ [I.LIST_OF_VALUES_MULTI]: gi,
2579
2579
  [I.RANGE]: bi,
2580
2580
  [I.GREATER_THAN]: Ot,
2581
2581
  [I.LESS_THAN]: Ot,
@@ -2583,7 +2583,7 @@ const ei = D.div`
2583
2583
  }, xn = (e) => vi[e] || pi, wn = (e) => {
2584
2584
  var t;
2585
2585
  return Array.isArray((t = e == null ? void 0 : e.listOfPossibleValues) == null ? void 0 : t.list) && e.listOfPossibleValues.list.length > 0;
2586
- }, Ht = xe().test(
2586
+ }, Ht = we().test(
2587
2587
  "required-option",
2588
2588
  "Por favor selecciona una opcion",
2589
2589
  (e) => {
@@ -2594,7 +2594,7 @@ const ei = D.div`
2594
2594
  }
2595
2595
  return typeof e == "string" ? e.trim().length > 0 : typeof e == "number" ? !Number.isNaN(e) : !1;
2596
2596
  }
2597
- ), yi = J({
2597
+ ), yi = Q({
2598
2598
  from: Ht,
2599
2599
  to: Ht
2600
2600
  }), Bt = (e) => e && typeof e == "object" && "value" in e ? e.value : e, Sn = (e) => {
@@ -2606,30 +2606,30 @@ function Ti({
2606
2606
  onSubmitEvent: t,
2607
2607
  textValues: n
2608
2608
  }) {
2609
- const r = Ce(e) || {}, o = () => Object.entries(r).flatMap(
2610
- ([g, h]) => h.map((f) => ({ group: g, cond: f }))
2609
+ const r = xe(e) || {}, o = () => Object.entries(r).flatMap(
2610
+ ([h, g]) => g.map((f) => ({ group: h, cond: f }))
2611
2611
  ), i = Object.fromEntries(
2612
- Object.entries(r).map(([g, h]) => {
2612
+ Object.entries(r).map(([h, g]) => {
2613
2613
  const f = {};
2614
- return h.forEach((m) => {
2615
- const b = m.conditionName, y = m.value !== void 0 && m.value !== null && m.value !== "", w = m.howToSetTheCondition === re.LIST_OF_VALUES_MULTI ? [] : "";
2616
- f[b] = {
2614
+ return g.forEach((m) => {
2615
+ const v = m.conditionName, x = m.value !== void 0 && m.value !== null && m.value !== "", w = m.howToSetTheCondition === oe.LIST_OF_VALUES_MULTI ? [] : "";
2616
+ f[v] = {
2617
2617
  ...m,
2618
- value: y ? m.value : w
2618
+ value: x ? m.value : w
2619
2619
  };
2620
- }), [g, f];
2620
+ }), [h, f];
2621
2621
  })
2622
2622
  ), c = Object.entries(r).map(
2623
- ([g, h]) => {
2624
- const f = i[g] || {}, m = h.map((b) => {
2625
- const y = b.conditionName, w = f[y], S = w && typeof w == "object" && "value" in w ? w.value : b.value;
2623
+ ([h, g]) => {
2624
+ const f = i[h] || {}, m = g.map((v) => {
2625
+ const x = v.conditionName, w = f[x], S = w && typeof w == "object" && "value" in w ? w.value : v.value;
2626
2626
  return {
2627
- ...b,
2627
+ ...v,
2628
2628
  value: S
2629
2629
  };
2630
2630
  });
2631
2631
  return {
2632
- ConditionGroupId: g,
2632
+ ConditionGroupId: h,
2633
2633
  conditionsThatEstablishesTheDecision: m
2634
2634
  };
2635
2635
  }
@@ -2650,38 +2650,41 @@ function Ti({
2650
2650
  const s = {
2651
2651
  ruleName: be().required("El nombre de la decision es requerido"),
2652
2652
  value: Qe(() => {
2653
- const g = l.values.howToSetTheDecision;
2654
- return g === re.RANGE && wn(e) ? yi : wn(e) ? Ht : xn(g)(
2653
+ const h = l.values.howToSetTheDecision;
2654
+ return h === oe.RANGE && wn(e) ? yi : wn(e) ? Ht : xn(h)(
2655
2655
  l.values.value,
2656
2656
  l.values.decisionDataType
2657
2657
  ).schema;
2658
2658
  }),
2659
- conditionsThatEstablishesTheDecision: Qe((g, { parent: h }) => {
2660
- const f = h && h.conditionsThatEstablishesTheDecision && typeof h.conditionsThatEstablishesTheDecision == "object" && Object.keys(h.conditionsThatEstablishesTheDecision).length > 0;
2661
- if ((h == null ? void 0 : h.toggleNone) && f) return J().shape({});
2662
- const b = {};
2663
- for (const [y, w] of Object.entries(r)) {
2664
- const S = {};
2665
- w.forEach((N) => {
2666
- var L, F;
2667
- const C = (F = (L = h == null ? void 0 : h.conditionsThatEstablishesTheDecision) == null ? void 0 : L[y]) == null ? void 0 : F[N.conditionName], A = Bt(C);
2668
- if (A !== void 0) {
2669
- const ue = xn(
2670
- N.howToSetTheCondition
2659
+ conditionsThatEstablishesTheDecision: Qe((h, { parent: g }) => {
2660
+ const f = xe(e) || {};
2661
+ if (!(Object.keys(f).length > 0))
2662
+ return Q().shape({});
2663
+ const v = g && g.conditionsThatEstablishesTheDecision && typeof g.conditionsThatEstablishesTheDecision == "object" && Object.keys(g.conditionsThatEstablishesTheDecision).length > 0;
2664
+ if ((g == null ? void 0 : g.toggleNone) && v) return Q().shape({});
2665
+ const w = {};
2666
+ for (const [S, D] of Object.entries(f)) {
2667
+ const C = {};
2668
+ D.forEach((k) => {
2669
+ var se, ee;
2670
+ const L = (ee = (se = g == null ? void 0 : g.conditionsThatEstablishesTheDecision) == null ? void 0 : se[S]) == null ? void 0 : ee[k.conditionName], F = Bt(L);
2671
+ if (F !== void 0) {
2672
+ const de = xn(
2673
+ k.howToSetTheCondition
2671
2674
  );
2672
- S[N.conditionName] = ue(
2673
- A,
2674
- N.conditionDataType
2675
+ C[k.conditionName] = de(
2676
+ F,
2677
+ k.conditionDataType
2675
2678
  ).schema;
2676
2679
  }
2677
- }), b[y] = J(S);
2680
+ }), w[S] = Q(C);
2678
2681
  }
2679
- return J(b).test(
2682
+ return Q(w).test(
2680
2683
  "at-least-one-condition",
2681
2684
  "Debe existir al menos una condición para que la decisión se valide correctamente.",
2682
- (y) => !y || typeof y != "object" ? !1 : Object.values(y).some(
2683
- (w) => w && typeof w == "object" && Object.values(w).some(
2684
- (S) => Sn(S)
2685
+ (S) => !S || typeof S != "object" ? !1 : Object.values(S).some(
2686
+ (D) => D && typeof D == "object" && Object.values(D).some(
2687
+ (C) => Sn(C)
2685
2688
  )
2686
2689
  )
2687
2690
  );
@@ -2691,57 +2694,57 @@ function Ti({
2691
2694
  "Se requiere la fecha de vigencia desde"
2692
2695
  ), s.validUntil = Le().when(
2693
2696
  "checkClosed",
2694
- (g, h, { parent: f }) => (f == null ? void 0 : f.checkClosed) ? h.required("Se requiere la fecha de vigencia hasta").test(
2697
+ (h, g, { parent: f }) => (f == null ? void 0 : f.checkClosed) ? g.required("Se requiere la fecha de vigencia hasta").test(
2695
2698
  "is-after-startDate",
2696
2699
  "La fecha válida para la vigencia hasta debe ser mayor o igual a la fecha de inicio",
2697
- function(b) {
2698
- const y = this.parent.effectiveFrom;
2699
- return !y || !b ? !0 : new Date(b) >= new Date(y);
2700
+ function(v) {
2701
+ const x = this.parent.effectiveFrom;
2702
+ return !x || !v ? !0 : new Date(v) >= new Date(x);
2700
2703
  }
2701
- ) : h.notRequired()
2704
+ ) : g.notRequired()
2702
2705
  ));
2703
- const p = J(s);
2706
+ const p = Q(s);
2704
2707
  return l = tn({
2705
2708
  initialValues: u,
2706
2709
  validationSchema: p,
2707
2710
  validateOnBlur: !0,
2708
- onSubmit: (g) => {
2709
- const h = Object.fromEntries(
2710
- Object.entries(r).map(([m, b]) => {
2711
+ onSubmit: (h) => {
2712
+ const g = Object.fromEntries(
2713
+ Object.entries(r).map(([m, v]) => {
2711
2714
  var S;
2712
- const y = ((S = g.conditionsThatEstablishesTheDecision) == null ? void 0 : S[m]) || {}, w = b.map((N) => {
2713
- const C = N.conditionName, A = y[C], L = Bt(A);
2715
+ const x = ((S = h.conditionsThatEstablishesTheDecision) == null ? void 0 : S[m]) || {}, w = v.map((D) => {
2716
+ const C = D.conditionName, k = x[C], L = Bt(k);
2714
2717
  return {
2715
- ...N,
2718
+ ...D,
2716
2719
  value: L
2717
2720
  };
2718
- }).filter((N) => Sn(N.value));
2721
+ }).filter((D) => Sn(D.value));
2719
2722
  return [m, w];
2720
2723
  })
2721
2724
  ), f = {
2722
2725
  ...e,
2723
- ruleName: g.ruleName,
2724
- decisionDataType: g.decisionDataType,
2725
- howToSetTheDecision: g.howToSetTheDecision,
2726
- value: g.value,
2727
- effectiveFrom: g.effectiveFrom,
2728
- validUntil: g.validUntil,
2729
- conditionsThatEstablishesTheDecision: h
2726
+ ruleName: h.ruleName,
2727
+ decisionDataType: h.decisionDataType,
2728
+ howToSetTheDecision: h.howToSetTheDecision,
2729
+ value: h.value,
2730
+ effectiveFrom: h.effectiveFrom,
2731
+ validUntil: h.validUntil,
2732
+ conditionsThatEstablishesTheDecision: g
2730
2733
  };
2731
2734
  t(f);
2732
2735
  }
2733
- }), { formik: l, handleToggleNoneChange: (g) => {
2734
- l.setFieldValue("toggleNone", g), o().forEach(({ group: h, cond: f }) => {
2735
- const m = `conditionsThatEstablishesTheDecision.${h}.${f.conditionName}`;
2736
- if (g)
2736
+ }), { formik: l, handleToggleNoneChange: (h) => {
2737
+ l.setFieldValue("toggleNone", h), o().forEach(({ group: g, cond: f }) => {
2738
+ const m = `conditionsThatEstablishesTheDecision.${g}.${f.conditionName}`;
2739
+ if (h)
2737
2740
  l.setFieldValue(m, void 0);
2738
2741
  else {
2739
- const b = f.howToSetTheCondition === re.LIST_OF_VALUES_MULTI ? [] : "";
2742
+ const v = f.howToSetTheCondition === oe.LIST_OF_VALUES_MULTI ? [] : "";
2740
2743
  l.setFieldValue(
2741
2744
  m,
2742
2745
  {
2743
2746
  ...f,
2744
- value: b
2747
+ value: v
2745
2748
  },
2746
2749
  !1
2747
2750
  );
@@ -2749,17 +2752,17 @@ function Ti({
2749
2752
  });
2750
2753
  } };
2751
2754
  }
2752
- D.div`
2755
+ N.div`
2753
2756
  & > div {
2754
2757
  border-radius: 8px;
2755
2758
  border: 1px solid
2756
2759
  ${({ theme: e }) => {
2757
2760
  var t, n;
2758
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
2761
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
2759
2762
  }};
2760
2763
  }
2761
2764
  `;
2762
- D.div`
2765
+ N.div`
2763
2766
  width: 100%;
2764
2767
  height: 100%;
2765
2768
  overflow-y: auto;
@@ -2777,7 +2780,7 @@ D.div`
2777
2780
  border-radius: 8px;
2778
2781
  }
2779
2782
  `;
2780
- const xi = D.div`
2783
+ const xi = N.div`
2781
2784
  display: flex;
2782
2785
  width: -webkit-fill-available;
2783
2786
  align-items: center;
@@ -2800,30 +2803,30 @@ const xi = D.div`
2800
2803
  valueEnd: s = "",
2801
2804
  messageStart: p = "",
2802
2805
  messageEnd: d = "",
2803
- statusStart: g = "pending",
2804
- statusEnd: h = "pending"
2805
- } = e, [f, m] = q(c), [b, y] = q(l), [w, S] = q(s), N = ({ target: F }) => {
2806
+ statusStart: h = "pending",
2807
+ statusEnd: g = "pending"
2808
+ } = e, [f, m] = q(c), [v, x] = q(l), [w, S] = q(s), D = ({ target: F }) => {
2806
2809
  m(F.checked), r && r(F.checked);
2807
2810
  }, C = (F) => {
2808
- y(F.target.value), t(F);
2809
- }, A = (F) => {
2811
+ x(F.target.value), t(F);
2812
+ }, k = (F) => {
2810
2813
  S(F.target.value), n(F);
2811
- }, L = ie("(max-width: 400px)");
2812
- return /* @__PURE__ */ v(x, { direction: "column", width: "100%", gap: "20px", children: [
2813
- /* @__PURE__ */ v(x, { justifyContent: "space-between", children: [
2814
+ }, L = ae("(max-width: 400px)");
2815
+ return /* @__PURE__ */ b(T, { direction: "column", width: "100%", gap: "20px", children: [
2816
+ /* @__PURE__ */ b(T, { justifyContent: "space-between", children: [
2814
2817
  /* @__PURE__ */ a(R, { appearance: "dark", size: "large", type: "label", children: "¿La vigencia para este decisión es cerrada?" }),
2815
2818
  /* @__PURE__ */ a(
2816
2819
  Zt,
2817
2820
  {
2818
2821
  label: "Cerrada",
2819
- onChange: N,
2822
+ onChange: D,
2820
2823
  checked: f,
2821
2824
  value: ""
2822
2825
  }
2823
2826
  )
2824
2827
  ] }),
2825
- /* @__PURE__ */ v(
2826
- x,
2828
+ /* @__PURE__ */ b(
2829
+ T,
2827
2830
  {
2828
2831
  direction: L ? "column" : "row",
2829
2832
  justifyContent: "space-between",
@@ -2835,10 +2838,10 @@ const xi = D.div`
2835
2838
  id: "dateStart",
2836
2839
  label: o,
2837
2840
  onChange: C,
2838
- value: b,
2841
+ value: v,
2839
2842
  required: u,
2840
2843
  size: "compact",
2841
- status: g,
2844
+ status: h,
2842
2845
  message: p,
2843
2846
  fullwidth: !0
2844
2847
  }
@@ -2848,11 +2851,11 @@ const xi = D.div`
2848
2851
  {
2849
2852
  id: "dateEnd",
2850
2853
  label: i,
2851
- onChange: A,
2854
+ onChange: k,
2852
2855
  value: w,
2853
2856
  required: u,
2854
2857
  size: "compact",
2855
- status: h,
2858
+ status: g,
2856
2859
  message: d,
2857
2860
  fullwidth: !0
2858
2861
  }
@@ -2874,18 +2877,18 @@ const xi = D.div`
2874
2877
  showConditionsError: s,
2875
2878
  tabs: p,
2876
2879
  termEndStatus: d,
2877
- termStartStatus: g,
2878
- textValues: h,
2880
+ termStartStatus: h,
2881
+ textValues: g,
2879
2882
  portalId: f,
2880
2883
  showRedefineConfirm: m,
2881
- onOpenRedefineConfirm: b,
2882
- onCloseRedefineConfirm: y,
2884
+ onOpenRedefineConfirm: v,
2885
+ onCloseRedefineConfirm: x,
2883
2886
  onConfirmRedefine: w
2884
2887
  } = e;
2885
- return /* @__PURE__ */ v(V, { children: [
2886
- /* @__PURE__ */ a("form", { onSubmit: o.handleSubmit, children: /* @__PURE__ */ v(x, { direction: "column", gap: "24px", width: "100%", children: [
2887
- /* @__PURE__ */ a(Be, { legend: "Decisión N° 01", spacing: "wide", children: /* @__PURE__ */ v(
2888
- x,
2888
+ return /* @__PURE__ */ b(V, { children: [
2889
+ /* @__PURE__ */ a("form", { onSubmit: o.handleSubmit, children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", width: "100%", children: [
2890
+ /* @__PURE__ */ a(Be, { legend: "Decisión N° 01", spacing: "wide", children: /* @__PURE__ */ b(
2891
+ T,
2889
2892
  {
2890
2893
  justifyContent: "center",
2891
2894
  width: "-webkit-fill-available",
@@ -2900,7 +2903,7 @@ const xi = D.div`
2900
2903
  ]
2901
2904
  }
2902
2905
  ) }),
2903
- r && r.length > 0 && /* @__PURE__ */ a(Be, { legend: "Condiciones a evaluar", spacing: "wide", children: /* @__PURE__ */ v(x, { direction: "column", gap: "20px", width: "100%", children: [
2906
+ r && r.length > 0 && /* @__PURE__ */ a(Be, { legend: "Condiciones a evaluar", spacing: "wide", children: /* @__PURE__ */ b(T, { direction: "column", gap: "20px", width: "100%", children: [
2904
2907
  /* @__PURE__ */ a(
2905
2908
  Vn,
2906
2909
  {
@@ -2909,13 +2912,13 @@ const xi = D.div`
2909
2912
  selectedTab: t
2910
2913
  }
2911
2914
  ),
2912
- /* @__PURE__ */ v(x, { justifyContent: "flex-end", alignItems: "center", children: [
2915
+ /* @__PURE__ */ b(T, { justifyContent: "flex-end", alignItems: "center", children: [
2913
2916
  /* @__PURE__ */ a(
2914
2917
  B,
2915
2918
  {
2916
2919
  icon: /* @__PURE__ */ a(dr, {}),
2917
2920
  appearance: "help",
2918
- onClick: b,
2921
+ onClick: v,
2919
2922
  cursorHover: !0
2920
2923
  }
2921
2924
  ),
@@ -2926,16 +2929,16 @@ const xi = D.div`
2926
2929
  iconBefore: /* @__PURE__ */ a(cr, {}),
2927
2930
  variant: "none",
2928
2931
  appearance: "gray",
2929
- onClick: b,
2932
+ onClick: v,
2930
2933
  cursorHover: !0,
2931
2934
  children: "Redefinir la condición"
2932
2935
  }
2933
2936
  )
2934
2937
  ] }),
2935
- /* @__PURE__ */ a(x, { direction: "column", gap: "20px", children: r == null ? void 0 : r.map((S) => {
2936
- const N = S.__scopedName ?? `${S.groupKey}.${S.conditionName}`;
2937
- return /* @__PURE__ */ v(x, { gap: "16px", alignItems: "center", children: [
2938
- /* @__PURE__ */ v(xi, { children: [
2938
+ /* @__PURE__ */ a(T, { direction: "column", gap: "20px", children: r == null ? void 0 : r.map((S) => {
2939
+ const D = S.__scopedName ?? `${S.groupKey}.${S.conditionName}`;
2940
+ return /* @__PURE__ */ b(T, { gap: "16px", alignItems: "center", children: [
2941
+ /* @__PURE__ */ b(xi, { children: [
2939
2942
  /* @__PURE__ */ a(
2940
2943
  pn,
2941
2944
  {
@@ -2951,23 +2954,23 @@ const xi = D.div`
2951
2954
  icon: /* @__PURE__ */ a(yt, {}),
2952
2955
  appearance: "danger",
2953
2956
  cursorHover: !0,
2954
- onClick: () => u(N)
2957
+ onClick: () => u(D)
2955
2958
  }
2956
2959
  )
2957
- ] }, N);
2960
+ ] }, D);
2958
2961
  }) }),
2959
2962
  s && /* @__PURE__ */ a(R, { type: "label", size: "medium", appearance: "danger", children: n ?? "Existen errores en el formulario, por favor revísalos." })
2960
2963
  ] }) }),
2961
- /* @__PURE__ */ a(Be, { legend: "Vigencia", spacing: "wide", children: h.terms && /* @__PURE__ */ a(
2964
+ /* @__PURE__ */ a(Be, { legend: "Vigencia", spacing: "wide", children: g.terms && /* @__PURE__ */ a(
2962
2965
  wi,
2963
2966
  {
2964
- labelStart: h.termStart,
2965
- labelEnd: h.termEnd,
2967
+ labelStart: g.termStart,
2968
+ labelEnd: g.termEnd,
2966
2969
  valueStart: o.values.effectiveFrom,
2967
2970
  valueEnd: o.values.validUntil,
2968
2971
  messageStart: o.errors.effectiveFrom,
2969
2972
  messageEnd: o.errors.validUntil,
2970
- statusStart: g,
2973
+ statusStart: h,
2971
2974
  statusEnd: d,
2972
2975
  onHandleStartChange: (S) => o.setFieldValue("effectiveFrom", S.target.value),
2973
2976
  onHandleEndChange: (S) => o.setFieldValue("validUntil", S.target.value),
@@ -2977,9 +2980,9 @@ const xi = D.div`
2977
2980
  checkedClosed: o.values.checkClosed
2978
2981
  }
2979
2982
  ) }),
2980
- /* @__PURE__ */ v(x, { direction: "row", justifyContent: "end", gap: "16px", children: [
2981
- /* @__PURE__ */ a(Y, { appearance: "gray", onClick: c, variant: "outlined", children: h.cancel }),
2982
- /* @__PURE__ */ a(Y, { type: "submit", children: h.confirm })
2983
+ /* @__PURE__ */ b(T, { direction: "row", justifyContent: "end", gap: "16px", children: [
2984
+ /* @__PURE__ */ a(Y, { appearance: "gray", onClick: c, variant: "outlined", children: g.cancel }),
2985
+ /* @__PURE__ */ a(Y, { type: "submit", children: g.confirm })
2983
2986
  ] })
2984
2987
  ] }) }),
2985
2988
  m && f && /* @__PURE__ */ a(
@@ -2987,17 +2990,17 @@ const xi = D.div`
2987
2990
  {
2988
2991
  portalId: f,
2989
2992
  title: "Redefinir la condición",
2990
- onCloseModal: y,
2991
- children: /* @__PURE__ */ v(x, { direction: "column", gap: "16px", children: [
2993
+ onCloseModal: x,
2994
+ children: /* @__PURE__ */ b(T, { direction: "column", gap: "16px", children: [
2992
2995
  /* @__PURE__ */ a(R, { 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 ." }),
2993
- /* @__PURE__ */ v(x, { justifyContent: "end", gap: "12px", children: [
2996
+ /* @__PURE__ */ b(T, { justifyContent: "end", gap: "12px", children: [
2994
2997
  /* @__PURE__ */ a(
2995
2998
  Y,
2996
2999
  {
2997
3000
  type: "button",
2998
3001
  appearance: "gray",
2999
3002
  variant: "outlined",
3000
- onClick: y,
3003
+ onClick: x,
3001
3004
  cursorHover: !0,
3002
3005
  children: "Cancelar"
3003
3006
  }
@@ -3065,15 +3068,15 @@ function Ri(e) {
3065
3068
  const Ue = (e) => {
3066
3069
  if (typeof e == "string") {
3067
3070
  const t = e.toLowerCase();
3068
- if (t.includes("equal")) return re.EQUAL;
3069
- if (t.includes("greater")) return re.GREATER_THAN;
3070
- if (t.includes("less")) return re.LESS_THAN;
3071
- if (t.includes("range") || t.includes("between")) return re.RANGE;
3072
- if (t.includes("multi")) return re.LIST_OF_VALUES_MULTI;
3071
+ if (t.includes("equal")) return oe.EQUAL;
3072
+ if (t.includes("greater")) return oe.GREATER_THAN;
3073
+ if (t.includes("less")) return oe.LESS_THAN;
3074
+ if (t.includes("range") || t.includes("between")) return oe.RANGE;
3075
+ if (t.includes("multi")) return oe.LIST_OF_VALUES_MULTI;
3073
3076
  if (t.includes("list_of_values") || t.includes("among") || t.includes("in"))
3074
- return re.LIST_OF_VALUES;
3077
+ return oe.LIST_OF_VALUES;
3075
3078
  }
3076
- return e ?? re.EQUAL;
3079
+ return e ?? oe.EQUAL;
3077
3080
  }, Ge = (e) => {
3078
3081
  switch (e) {
3079
3082
  case P.LIST_OF_VALUES_MULTI:
@@ -3113,24 +3116,24 @@ const Ue = (e) => {
3113
3116
  decision: t,
3114
3117
  onSubmitEvent: n,
3115
3118
  textValues: r
3116
- }), p = u ?? t, d = Ce(p), g = Ce(t), h = Bn(
3117
- g,
3119
+ }), p = u ?? t, d = xe(p), h = xe(t), g = Bn(
3120
+ h,
3118
3121
  ($) => !$.hidden
3119
- ), f = Object.keys(h), m = [
3122
+ ), f = Object.keys(g), m = [
3120
3123
  ...f.filter(($) => $ === "group-primary"),
3121
3124
  ...f.filter(($) => $ !== "group-primary")
3122
- ], b = {};
3123
- let y = 1;
3125
+ ], v = {};
3126
+ let x = 1;
3124
3127
  const w = m.map(($) => {
3125
- const O = $ === "group-primary" ? "mainCondition" : `alternateCondition-${y++}`;
3126
- return b[O] = $, {
3128
+ const O = $ === "group-primary" ? "mainCondition" : `alternateCondition-${x++}`;
3129
+ return v[O] = $, {
3127
3130
  id: O,
3128
3131
  label: $ === "group-primary" ? mt($, 0) : mt($, Number(O.split("-").at(-1))),
3129
3132
  isDisabled: !1
3130
3133
  };
3131
- }), [S, N] = _.useState(
3134
+ }), [S, D] = _.useState(
3132
3135
  ((Pe = w[0]) == null ? void 0 : Pe.id) ?? "mainCondition"
3133
- ), C = ($) => N($), A = b[S] ?? "group-primary";
3136
+ ), C = ($) => D($), k = v[S] ?? "group-primary";
3134
3137
  _.useEffect(() => {
3135
3138
  var U;
3136
3139
  const $ = (U = l.values) == null ? void 0 : U.conditionsThatEstablishesTheDecision;
@@ -3138,15 +3141,15 @@ const Ue = (e) => {
3138
3141
  if ($ && typeof $ == "object" && (O = Object.values($).some(
3139
3142
  (X) => X && typeof X == "object" && Object.keys(X).length > 0
3140
3143
  )), O) return;
3141
- const E = Ce(t);
3144
+ const E = xe(t);
3142
3145
  if (!E || Object.keys(E).length === 0)
3143
3146
  return;
3144
3147
  const j = Object.fromEntries(
3145
3148
  Object.entries(E).map(([X, G]) => {
3146
3149
  const ye = Object.fromEntries(
3147
- G.map((le) => {
3148
- const fe = Ue(le.howToSetTheCondition), Se = le.value ?? Ge(fe);
3149
- return [le.conditionName, Se];
3150
+ G.map((ce) => {
3151
+ const fe = Ue(ce.howToSetTheCondition), Ce = ce.value ?? Ge(fe);
3152
+ return [ce.conditionName, Ce];
3150
3153
  })
3151
3154
  );
3152
3155
  return [X, ye];
@@ -3161,14 +3164,14 @@ const Ue = (e) => {
3161
3164
  var G;
3162
3165
  const $ = (G = l.values) == null ? void 0 : G.conditionsThatEstablishesTheDecision;
3163
3166
  if (!$ || typeof $ != "object") return;
3164
- const O = Ce(p), E = Object.entries($).map(
3165
- ([ye, le]) => {
3166
- const fe = O[ye] || [], Se = Object.keys(le).map((Te) => {
3167
- const z = le[Te], ee = fe.find((ar) => ar.conditionName === Te) || {}, It = Ue(
3168
- ee.howToSetTheCondition ?? (z == null ? void 0 : z.howToSetTheCondition)
3169
- ), at = ee.value ?? Ge(It), lt = z && typeof z == "object" && "value" in z ? z.value : z;
3167
+ const O = xe(p), E = Object.entries($).map(
3168
+ ([ye, ce]) => {
3169
+ const fe = O[ye] || [], Ce = Object.keys(ce).map((Te) => {
3170
+ const z = ce[Te], te = fe.find((ar) => ar.conditionName === Te) || {}, It = Ue(
3171
+ te.howToSetTheCondition ?? (z == null ? void 0 : z.howToSetTheCondition)
3172
+ ), at = te.value ?? Ge(It), lt = z && typeof z == "object" && "value" in z ? z.value : z;
3170
3173
  return {
3171
- ...ee,
3174
+ ...te,
3172
3175
  ...typeof z == "object" && !Array.isArray(z) ? z : {},
3173
3176
  conditionName: Te,
3174
3177
  value: lt !== void 0 ? lt : at
@@ -3176,7 +3179,7 @@ const Ue = (e) => {
3176
3179
  });
3177
3180
  return {
3178
3181
  ConditionGroupId: ye,
3179
- conditionsThatEstablishesTheDecision: Se
3182
+ conditionsThatEstablishesTheDecision: Ce
3180
3183
  };
3181
3184
  }
3182
3185
  ), j = l.values.conditionGroups, U = JSON.stringify(E), X = JSON.stringify(j ?? []);
@@ -3184,23 +3187,23 @@ const Ue = (e) => {
3184
3187
  }, [(M = l.values) == null ? void 0 : M.conditionsThatEstablishesTheDecision, p]);
3185
3188
  const L = _.useMemo(() => {
3186
3189
  const $ = [
3187
- ...Object.keys(h).filter(
3190
+ ...Object.keys(g).filter(
3188
3191
  (j) => j === "group-primary"
3189
3192
  ),
3190
- ...Object.keys(h).filter(
3193
+ ...Object.keys(g).filter(
3191
3194
  (j) => j !== "group-primary"
3192
3195
  )
3193
3196
  ];
3194
3197
  let O = !1;
3195
3198
  const E = $.map((j) => {
3196
- const X = (h[j] ?? []).map((G, ye) => {
3197
- const le = !O && j === "group-primary" && ye === 0;
3198
- le && (O = !0);
3199
- const fe = Ue(G.howToSetTheCondition), Se = Ci({
3199
+ const X = (g[j] ?? []).map((G, ye) => {
3200
+ const ce = !O && j === "group-primary" && ye === 0;
3201
+ ce && (O = !0);
3202
+ const fe = Ue(G.howToSetTheCondition), Ce = Ci({
3200
3203
  label: G.labelName || "",
3201
3204
  howToSet: fe,
3202
- isFirst: le
3203
- }), Te = G.timeUnit ? Ut("", G.timeUnit, !0).trim() : "", z = `${j}.${G.conditionName}`, ee = Oi(
3205
+ isFirst: ce
3206
+ }), Te = G.timeUnit ? Ut("", G.timeUnit, !0).trim() : "", z = `${j}.${G.conditionName}`, te = Oi(
3204
3207
  l.values,
3205
3208
  j,
3206
3209
  G.conditionName
@@ -3208,7 +3211,7 @@ const Ue = (e) => {
3208
3211
  l.values,
3209
3212
  j,
3210
3213
  G.conditionName
3211
- ), at = ee !== void 0 ? ee : It, lt = at !== void 0 ? at : Ge(fe);
3214
+ ), at = te !== void 0 ? te : It, lt = at !== void 0 ? at : Ge(fe);
3212
3215
  return {
3213
3216
  ...G,
3214
3217
  __originalConditionName: G.conditionName,
@@ -3217,7 +3220,7 @@ const Ue = (e) => {
3217
3220
  __scopedName: z,
3218
3221
  conditionName: G.conditionName,
3219
3222
  groupKey: j,
3220
- labelName: Se,
3223
+ labelName: Ce,
3221
3224
  __unitAfterInput: Te,
3222
3225
  value: lt
3223
3226
  };
@@ -3225,14 +3228,14 @@ const Ue = (e) => {
3225
3228
  return [j, X];
3226
3229
  });
3227
3230
  return Object.fromEntries(E);
3228
- }, [h, l.values]), F = L[A] ?? [], ue = L["group-primary"] ?? [], ge = {
3231
+ }, [g, l.values]), F = L[k] ?? [], se = L["group-primary"] ?? [], ee = {
3229
3232
  decisionDataType: t.decisionDataType,
3230
3233
  howToSetTheCondition: t.howToSetTheDecision,
3231
3234
  labelName: t.labelName,
3232
3235
  listOfPossibleValues: t.listOfPossibleValues,
3233
3236
  ruleName: t.ruleName,
3234
3237
  timeUnit: t.timeUnit ? Ut("", t.timeUnit, !0).trim() : ""
3235
- }, he = l.submitCount > 0 || !!l.touched.effectiveFrom, Ie = l.submitCount > 0 || !!l.touched.validUntil, Dt = he ? l.errors.effectiveFrom ? "invalid" : "valid" : void 0, nt = Ie ? l.errors.validUntil ? "invalid" : "valid" : void 0, _e = _.useMemo(() => {
3238
+ }, de = l.submitCount > 0 || !!l.touched.effectiveFrom, Ie = l.submitCount > 0 || !!l.touched.validUntil, Dt = de ? l.errors.effectiveFrom ? "invalid" : "valid" : void 0, nt = Ie ? l.errors.validUntil ? "invalid" : "valid" : void 0, _e = _.useMemo(() => {
3236
3239
  const $ = l.errors.conditionsThatEstablishesTheDecision;
3237
3240
  if (!$) return;
3238
3241
  if (typeof $ == "string") return $;
@@ -3256,19 +3259,19 @@ const Ue = (e) => {
3256
3259
  const O = ($ == null ? void 0 : $.__howToSet) ?? Ue($ == null ? void 0 : $.howToSetTheCondition);
3257
3260
  return Ge(O);
3258
3261
  }, rt = ($, O, E) => {
3259
- var G, ye, le, fe, Se;
3260
- const j = `conditionsThatEstablishesTheDecision.${$}.${O}`, U = (le = (ye = (G = l.values) == null ? void 0 : G.conditionsThatEstablishesTheDecision) == null ? void 0 : ye[$]) == null ? void 0 : le[O];
3262
+ var G, ye, ce, fe, Ce;
3263
+ const j = `conditionsThatEstablishesTheDecision.${$}.${O}`, U = (ce = (ye = (G = l.values) == null ? void 0 : G.conditionsThatEstablishesTheDecision) == null ? void 0 : ye[$]) == null ? void 0 : ce[O];
3261
3264
  U && typeof U == "object" && !Array.isArray(U) ? l.setFieldValue(`${j}.value`, E, !1) : l.setFieldValue(j, E, !1);
3262
3265
  const X = (fe = l.values) == null ? void 0 : fe.conditionGroups;
3263
3266
  if (Array.isArray(X)) {
3264
3267
  const Te = X.findIndex((z) => (z == null ? void 0 : z.ConditionGroupId) === $);
3265
3268
  if (Te >= 0) {
3266
- const z = (Se = X[Te].conditionsThatEstablishesTheDecision) == null ? void 0 : Se.findIndex(
3267
- (ee) => (ee == null ? void 0 : ee.conditionName) === O
3269
+ const z = (Ce = X[Te].conditionsThatEstablishesTheDecision) == null ? void 0 : Ce.findIndex(
3270
+ (te) => (te == null ? void 0 : te.conditionName) === O
3268
3271
  );
3269
3272
  if (z >= 0) {
3270
- const ee = JSON.parse(JSON.stringify(X));
3271
- ee[Te].conditionsThatEstablishesTheDecision[z].value = E, l.setFieldValue("conditionGroups", ee, !1);
3273
+ const te = JSON.parse(JSON.stringify(X));
3274
+ te[Te].conditionsThatEstablishesTheDecision[z].value = E, l.setFieldValue("conditionGroups", te, !1);
3272
3275
  }
3273
3276
  }
3274
3277
  }
@@ -3280,9 +3283,9 @@ const Ue = (e) => {
3280
3283
  !1
3281
3284
  );
3282
3285
  }, it = () => {
3283
- (d[A] ?? []).forEach((O) => {
3286
+ (d[k] ?? []).forEach((O) => {
3284
3287
  const E = Ue(O == null ? void 0 : O.howToSetTheCondition), j = Ge(E);
3285
- rt(A, O.conditionName, j);
3288
+ rt(k, O.conditionName, j);
3286
3289
  });
3287
3290
  }, [kt, Ve] = _.useState(!1);
3288
3291
  return /* @__PURE__ */ a(
@@ -3293,7 +3296,7 @@ const Ue = (e) => {
3293
3296
  currentConditions: F,
3294
3297
  decision: t,
3295
3298
  formik: l,
3296
- normalizedDecision: ge,
3299
+ normalizedDecision: ee,
3297
3300
  onCancel: o,
3298
3301
  onRedefineCurrentTab: it,
3299
3302
  onTabChange: C,
@@ -3305,7 +3308,7 @@ const Ue = (e) => {
3305
3308
  termEndStatus: nt,
3306
3309
  termStartStatus: Dt,
3307
3310
  textValues: r,
3308
- visibleConditions: ue,
3311
+ visibleConditions: se,
3309
3312
  visibleConditionsByGroup: L,
3310
3313
  handleToggleNoneChange: s,
3311
3314
  portalId: "redefine-confirm-portal",
@@ -3314,14 +3317,14 @@ const Ue = (e) => {
3314
3317
  onCloseRedefineConfirm: () => Ve(!1),
3315
3318
  onConfirmRedefine: () => {
3316
3319
  it();
3317
- const $ = (d[A] ?? []).map(
3318
- (O) => `${A}.${O.conditionName}`
3320
+ const $ = (d[k] ?? []).map(
3321
+ (O) => `${k}.${O.conditionName}`
3319
3322
  );
3320
3323
  c == null || c($), Ve(!1);
3321
3324
  }
3322
3325
  }
3323
3326
  );
3324
- }, hs = (e) => {
3327
+ }, gs = (e) => {
3325
3328
  const {
3326
3329
  cardTitle: t = !0,
3327
3330
  controls: n = !0,
@@ -3334,31 +3337,31 @@ const Ue = (e) => {
3334
3337
  isModalOpen: s,
3335
3338
  selectedDecision: p,
3336
3339
  loading: d,
3337
- handleOpenModal: g,
3338
- handleCloseModal: h,
3340
+ handleOpenModal: h,
3341
+ handleCloseModal: g,
3339
3342
  handleSubmitForm: f,
3340
3343
  handleDelete: m,
3341
- terms: b = !0,
3342
- onRemoveCondition: y,
3344
+ terms: v = !0,
3345
+ onRemoveCondition: x,
3343
3346
  onRestoreConditions: w,
3344
3347
  baseDecisionTemplate: S,
3345
- shouldRenderEmptyMessage: N = !0
3346
- } = e, [C, A] = q(null), L = ie("(max-width: 681px)"), { renderedCards: F, shouldRenderAddCard: ue } = si({
3348
+ shouldRenderEmptyMessage: D = !0
3349
+ } = e, [C, k] = q(null), L = ae("(max-width: 681px)"), { renderedCards: F, shouldRenderAddCard: se } = si({
3347
3350
  cardTitle: t,
3348
3351
  controls: n,
3349
3352
  customTitleContentAddCard: r,
3350
3353
  decisions: i,
3351
3354
  loading: d,
3352
- handleOpenModal: g,
3355
+ handleOpenModal: h,
3353
3356
  handleDelete: m,
3354
3357
  textValues: c,
3355
- isOpenFor: (he) => C === he,
3356
- toggleAt: (he) => A((Ie) => Ie === he ? null : he),
3358
+ isOpenFor: (de) => C === de,
3359
+ toggleAt: (de) => k((Ie) => Ie === de ? null : de),
3357
3360
  editionMode: l
3358
- }), ge = (i == null ? void 0 : i.length) === 0 && !d;
3359
- return /* @__PURE__ */ v(V, { children: [
3360
- /* @__PURE__ */ a(ni, { children: /* @__PURE__ */ a(ri, { children: /* @__PURE__ */ a(x, { direction: "column", gap: "16px", padding: "6px", children: N && (ge ? /* @__PURE__ */ a(Be, { legend: "Decisiones", children: /* @__PURE__ */ v(
3361
- x,
3361
+ }), ee = (i == null ? void 0 : i.length) === 0 && !d;
3362
+ return /* @__PURE__ */ b(V, { children: [
3363
+ /* @__PURE__ */ a(ni, { children: /* @__PURE__ */ a(ri, { children: /* @__PURE__ */ a(T, { direction: "column", gap: "16px", padding: "6px", children: D && (ee ? /* @__PURE__ */ a(Be, { legend: "Decisiones", children: /* @__PURE__ */ b(
3364
+ T,
3362
3365
  {
3363
3366
  direction: "column",
3364
3367
  gap: "16px",
@@ -3384,14 +3387,14 @@ const Ue = (e) => {
3384
3387
  children: "Sin decisiones"
3385
3388
  }
3386
3389
  ),
3387
- /* @__PURE__ */ a(R, { as: "span", size: "medium", appearance: "gray", children: o || /* @__PURE__ */ v(V, { children: [
3390
+ /* @__PURE__ */ a(R, { as: "span", size: "medium", appearance: "gray", children: o || /* @__PURE__ */ b(V, { children: [
3388
3391
  "Aun no tienes decisiones definidas, para empezar haz clic en",
3389
3392
  r || ' "Agregar decisión"'
3390
3393
  ] }) })
3391
3394
  ]
3392
3395
  }
3393
- ) }) : /* @__PURE__ */ v(
3394
- we,
3396
+ ) }) : /* @__PURE__ */ b(
3397
+ Se,
3395
3398
  {
3396
3399
  templateColumns: "1fr",
3397
3400
  autoFlow: "row dense",
@@ -3404,18 +3407,18 @@ const Ue = (e) => {
3404
3407
  height: L ? "auto" : "484px",
3405
3408
  children: [
3406
3409
  F,
3407
- ue && zt({
3410
+ se && zt({
3408
3411
  type: "add",
3409
3412
  index: i == null ? void 0 : i.length,
3410
3413
  controls: n,
3411
3414
  customTitleContentAddCard: r,
3412
3415
  customMessageEmptyDecisions: o,
3413
3416
  loading: d,
3414
- handleOpenModal: g,
3417
+ handleOpenModal: h,
3415
3418
  handleDelete: m,
3416
3419
  textValues: c,
3417
- shouldRenderEmptyMessage: N,
3418
- terms: b,
3420
+ shouldRenderEmptyMessage: D,
3421
+ terms: v,
3419
3422
  editionMode: l
3420
3423
  })
3421
3424
  ]
@@ -3425,7 +3428,7 @@ const Ue = (e) => {
3425
3428
  ui,
3426
3429
  {
3427
3430
  portalId: "modal-portal",
3428
- onCloseModal: h,
3431
+ onCloseModal: g,
3429
3432
  title: p ? "Editar Decisión" : "Configurar Decisión",
3430
3433
  description: "Diligencia los campos para configurar tu decisión.",
3431
3434
  children: /* @__PURE__ */ a(
@@ -3435,9 +3438,9 @@ const Ue = (e) => {
3435
3438
  fullTemplate: S ?? u,
3436
3439
  onSubmitEvent: f,
3437
3440
  textValues: c,
3438
- onCancel: () => h ? h() : () => {
3441
+ onCancel: () => g ? g() : () => {
3439
3442
  },
3440
- onRemoveCondition: y,
3443
+ onRemoveCondition: x,
3441
3444
  onRestoreConditions: w
3442
3445
  }
3443
3446
  )
@@ -3446,9 +3449,9 @@ const Ue = (e) => {
3446
3449
  ] });
3447
3450
  }, Mi = {
3448
3451
  border: {
3449
- color: k.palette.neutral.N40
3452
+ color: A.palette.neutral.N40
3450
3453
  }
3451
- }, ji = D.div`
3454
+ }, ji = N.div`
3452
3455
  border-width: 1px;
3453
3456
  border-style: solid;
3454
3457
  border-color: ${({ theme: e }) => {
@@ -3489,65 +3492,65 @@ const Vi = (e, t) => {
3489
3492
  if (!e.current || !l.current) return;
3490
3493
  const s = e.current, p = l.current, d = () => {
3491
3494
  var S;
3492
- const h = s.clientWidth, f = Array.from(
3495
+ const g = s.clientWidth, f = Array.from(
3493
3496
  p.querySelectorAll('[data-filter-tag="true"]')
3494
3497
  ), m = 48;
3495
- let b = 0;
3496
- const y = [], w = [];
3497
- for (let N = 0; N < t.length; N++) {
3498
- const C = ((S = f[N]) == null ? void 0 : S.offsetWidth) ?? 0;
3499
- b + C + m <= h ? (y.push(t[N]), b += C) : w.push(t[N]);
3498
+ let v = 0;
3499
+ const x = [], w = [];
3500
+ for (let D = 0; D < t.length; D++) {
3501
+ const C = ((S = f[D]) == null ? void 0 : S.offsetWidth) ?? 0;
3502
+ v + C + m <= g ? (x.push(t[D]), v += C) : w.push(t[D]);
3500
3503
  }
3501
- r(y), i(w), u(w.length > 0);
3502
- }, g = new ResizeObserver(() => {
3504
+ r(x), i(w), u(w.length > 0);
3505
+ }, h = new ResizeObserver(() => {
3503
3506
  requestAnimationFrame(d);
3504
3507
  });
3505
- return g.observe(s), () => g.disconnect();
3508
+ return h.observe(s), () => h.disconnect();
3506
3509
  }, [t, e]), { visible: n, hidden: o, showOverflowIndicator: c, measurementRef: l };
3507
3510
  };
3508
- D.div`
3511
+ N.div`
3509
3512
  & > div {
3510
3513
  width: 100%;
3511
3514
  }
3512
3515
  `;
3513
- const Pi = D.div`
3516
+ const Pi = N.div`
3514
3517
  position: absolute;
3515
3518
  top: calc(100% + 4px);
3516
3519
  right: 0;
3517
3520
  z-index: 1000;
3518
3521
  width: 170px;
3519
- `, Ui = D.div`
3522
+ `, Ui = N.div`
3520
3523
  position: absolute;
3521
3524
  visibility: hidden;
3522
3525
  pointer-events: none;
3523
3526
  height: 0;
3524
3527
  overflow: hidden;
3525
- `, Gi = D.div`
3528
+ `, Gi = N.div`
3526
3529
  cursor: pointer;
3527
3530
  `, qt = {
3528
3531
  border: {
3529
3532
  color: {
3530
- regular: k.palette.neutral.N40,
3531
- disabled: k.palette.neutral.N40,
3532
- focus: k.palette.blue.B300,
3533
- invalid: k.palette.red.R400
3533
+ regular: A.palette.neutral.N40,
3534
+ disabled: A.palette.neutral.N40,
3535
+ focus: A.palette.blue.B300,
3536
+ invalid: A.palette.red.R400
3534
3537
  }
3535
3538
  },
3536
3539
  background: {
3537
3540
  color: {
3538
- regular: k.palette.neutral.N0,
3539
- disabled: k.palette.neutral.N10
3541
+ regular: A.palette.neutral.N0,
3542
+ disabled: A.palette.neutral.N10
3540
3543
  }
3541
3544
  },
3542
3545
  content: {
3543
3546
  color: {
3544
- regular: k.palette.neutral.N900,
3545
- disabled: k.palette.neutral.N70
3547
+ regular: A.palette.neutral.N900,
3548
+ disabled: A.palette.neutral.N70
3546
3549
  }
3547
3550
  },
3548
3551
  placeholder: {
3549
3552
  color: {
3550
- regular: k.palette.neutral.N300
3553
+ regular: A.palette.neutral.N300
3551
3554
  }
3552
3555
  },
3553
3556
  option: {
@@ -3556,11 +3559,11 @@ const Pi = D.div`
3556
3559
  hover: "primary"
3557
3560
  },
3558
3561
  background: {
3559
- regular: k.palette.neutral.N0,
3560
- hover: k.palette.neutral.N30
3562
+ regular: A.palette.neutral.N0,
3563
+ hover: A.palette.neutral.N30
3561
3564
  }
3562
3565
  }
3563
- }, zi = D.li`
3566
+ }, zi = N.li`
3564
3567
  display: flex;
3565
3568
  align-items: center;
3566
3569
  align-self: stretch;
@@ -3579,8 +3582,8 @@ const Pi = D.div`
3579
3582
  }};
3580
3583
  }
3581
3584
  `, Hi = (e) => {
3582
- var g, h, f, m, b, y;
3583
- const { id: t, label: n, leadingIcon: r, onClose: o } = e, [i, c] = q(!1), u = () => c(!0), l = () => c(!1), s = Dr(Cr), p = ((f = (h = (g = s == null ? void 0 : s.input) == null ? void 0 : g.option) == null ? void 0 : h.appearance) == null ? void 0 : f.hover) ?? qt.option.appearance.hover, d = ((y = (b = (m = s == null ? void 0 : s.input) == null ? void 0 : m.option) == null ? void 0 : b.appearance) == null ? void 0 : y.regular) ?? qt.option.appearance.regular;
3585
+ var h, g, f, m, v, x;
3586
+ const { id: t, label: n, leadingIcon: r, onClose: o } = e, [i, c] = q(!1), u = () => c(!0), l = () => c(!1), s = Dr(Cr), p = ((f = (g = (h = s == null ? void 0 : s.input) == null ? void 0 : h.option) == null ? void 0 : g.appearance) == null ? void 0 : f.hover) ?? qt.option.appearance.hover, d = ((x = (v = (m = s == null ? void 0 : s.input) == null ? void 0 : m.option) == null ? void 0 : v.appearance) == null ? void 0 : x.regular) ?? qt.option.appearance.regular;
3584
3587
  return /* @__PURE__ */ a(
3585
3588
  zi,
3586
3589
  {
@@ -3590,8 +3593,8 @@ const Pi = D.div`
3590
3593
  onClick: (w) => {
3591
3594
  w.stopPropagation();
3592
3595
  },
3593
- children: /* @__PURE__ */ v(
3594
- we,
3596
+ children: /* @__PURE__ */ b(
3597
+ Se,
3595
3598
  {
3596
3599
  alignItems: "center",
3597
3600
  gap: "8px",
@@ -3643,30 +3646,30 @@ const Pi = D.div`
3643
3646
  } = e, u = qe(null), l = qe(null), s = qe(null), {
3644
3647
  visible: p,
3645
3648
  hidden: d,
3646
- showOverflowIndicator: g,
3647
- measurementRef: h
3648
- } = Vi(u, t), [f, m] = q(!1), b = (C) => {
3649
- C.stopPropagation(), m((A) => !A);
3649
+ showOverflowIndicator: h,
3650
+ measurementRef: g
3651
+ } = Vi(u, t), [f, m] = q(!1), v = (C) => {
3652
+ C.stopPropagation(), m((k) => !k);
3650
3653
  };
3651
3654
  Je(() => {
3652
- const C = (A) => {
3653
- var ue, ge;
3654
- const L = A.target;
3655
- !((ue = l.current) != null && ue.contains(L)) && !((ge = s.current) != null && ge.contains(L)) && m(!1);
3655
+ const C = (k) => {
3656
+ var se, ee;
3657
+ const L = k.target;
3658
+ !((se = l.current) != null && se.contains(L)) && !((ee = s.current) != null && ee.contains(L)) && m(!1);
3656
3659
  };
3657
3660
  return f && window.addEventListener("mousedown", C), () => window.removeEventListener("mousedown", C);
3658
3661
  }, [f]);
3659
- const y = t.length === 0, w = f && d.length > 0, S = d.map((C) => ({
3662
+ const x = t.length === 0, w = f && d.length > 0, S = d.map((C) => ({
3660
3663
  id: C.label,
3661
3664
  value: C.label,
3662
3665
  label: C.label,
3663
3666
  icon: C.icon
3664
- })), N = (C) => {
3665
- var A, L;
3666
- (L = (A = d.find((F) => F.label === C)) == null ? void 0 : A.onClose) == null || L.call(A), m(!1);
3667
+ })), D = (C) => {
3668
+ var k, L;
3669
+ (L = (k = d.find((F) => F.label === C)) == null ? void 0 : k.onClose) == null || L.call(k), m(!1);
3667
3670
  };
3668
- return /* @__PURE__ */ v(_i, { borderRadius: "8px", width: "100%", children: [
3669
- /* @__PURE__ */ a(Ui, { ref: h, children: t.map((C) => /* @__PURE__ */ a("div", { "data-filter-tag": "true", children: /* @__PURE__ */ a(
3671
+ return /* @__PURE__ */ b(_i, { borderRadius: "8px", width: "100%", children: [
3672
+ /* @__PURE__ */ a(Ui, { ref: g, children: t.map((C) => /* @__PURE__ */ a("div", { "data-filter-tag": "true", children: /* @__PURE__ */ a(
3670
3673
  He,
3671
3674
  {
3672
3675
  appearance: "primary",
@@ -3677,9 +3680,9 @@ const Pi = D.div`
3677
3680
  onClose: C.onClose
3678
3681
  }
3679
3682
  ) }, C.label)) }),
3680
- /* @__PURE__ */ v(we, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
3683
+ /* @__PURE__ */ b(Se, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
3681
3684
  /* @__PURE__ */ a(
3682
- de,
3685
+ pe,
3683
3686
  {
3684
3687
  ref: u,
3685
3688
  background: !0,
@@ -3690,7 +3693,7 @@ const Pi = D.div`
3690
3693
  alignItems: "center",
3691
3694
  padding: "0px 8px",
3692
3695
  border: !0,
3693
- children: y ? /* @__PURE__ */ a(R, { size: "small", type: "label", appearance: "gray", children: o }) : /* @__PURE__ */ v(V, { children: [
3696
+ children: x ? /* @__PURE__ */ a(R, { size: "small", type: "label", appearance: "gray", children: o }) : /* @__PURE__ */ b(V, { children: [
3694
3697
  p.map((C) => /* @__PURE__ */ a(
3695
3698
  He,
3696
3699
  {
@@ -3704,13 +3707,13 @@ const Pi = D.div`
3704
3707
  },
3705
3708
  C.label
3706
3709
  )),
3707
- g && /* @__PURE__ */ v(
3710
+ h && /* @__PURE__ */ b(
3708
3711
  "div",
3709
3712
  {
3710
3713
  ref: s,
3711
3714
  style: { position: "relative", display: "inline-block" },
3712
3715
  children: [
3713
- /* @__PURE__ */ a(Gi, { onClick: b, children: /* @__PURE__ */ a(
3716
+ /* @__PURE__ */ a(Gi, { onClick: v, children: /* @__PURE__ */ a(
3714
3717
  He,
3715
3718
  {
3716
3719
  appearance: "primary",
@@ -3721,7 +3724,7 @@ const Pi = D.div`
3721
3724
  wr,
3722
3725
  {
3723
3726
  options: S,
3724
- onOptionClick: N,
3727
+ onOptionClick: D,
3725
3728
  children: d.map((C) => /* @__PURE__ */ a(
3726
3729
  Hi,
3727
3730
  {
@@ -3729,8 +3732,8 @@ const Pi = D.div`
3729
3732
  label: C.label,
3730
3733
  leadingIcon: C.icon,
3731
3734
  onClose: () => {
3732
- var A;
3733
- (A = C.onClose) == null || A.call(C), m(!1);
3735
+ var k;
3736
+ (k = C.onClose) == null || k.call(C), m(!1);
3734
3737
  }
3735
3738
  },
3736
3739
  C.label
@@ -3747,8 +3750,8 @@ const Pi = D.div`
3747
3750
  Y,
3748
3751
  {
3749
3752
  cursorHover: !0,
3750
- disabled: y,
3751
- iconBefore: /* @__PURE__ */ a(gr, {}),
3753
+ disabled: x,
3754
+ iconBefore: /* @__PURE__ */ a(hr, {}),
3752
3755
  onClick: n,
3753
3756
  variant: "outlined",
3754
3757
  children: i
@@ -3767,13 +3770,13 @@ const Pi = D.div`
3767
3770
  ] })
3768
3771
  ] });
3769
3772
  }, ms = (e) => {
3770
- const { appliedFilters: t, fields: n, onChange: r, noFiltersLabel: o } = e, i = ie("(max-width: 768px)"), c = !t || t.length === 0;
3771
- return /* @__PURE__ */ v(x, { direction: "column", gap: "16px", children: [
3772
- i && /* @__PURE__ */ v(V, { children: [
3773
- /* @__PURE__ */ v(x, { gap: "6px", width: "100%", alignItems: "center", children: [
3773
+ const { appliedFilters: t, fields: n, onChange: r, noFiltersLabel: o } = e, i = ae("(max-width: 768px)"), c = !t || t.length === 0;
3774
+ return /* @__PURE__ */ b(T, { direction: "column", gap: "16px", children: [
3775
+ i && /* @__PURE__ */ b(V, { children: [
3776
+ /* @__PURE__ */ b(T, { gap: "6px", width: "100%", alignItems: "center", children: [
3774
3777
  /* @__PURE__ */ a(B, { appearance: "gray", icon: /* @__PURE__ */ a(_n, {}) }),
3775
3778
  /* @__PURE__ */ a(
3776
- de,
3779
+ pe,
3777
3780
  {
3778
3781
  background: !0,
3779
3782
  borderRadius: "8px",
@@ -3801,8 +3804,8 @@ const Pi = D.div`
3801
3804
  ] }),
3802
3805
  /* @__PURE__ */ a(W, { dashed: !0 })
3803
3806
  ] }),
3804
- n.map((u) => /* @__PURE__ */ v(x, { gap: "6px", alignItems: "center", children: [
3805
- /* @__PURE__ */ a(x, { padding: "22px 0 0 0", children: /* @__PURE__ */ a(B, { appearance: "primary", icon: u.icon }) }),
3807
+ n.map((u) => /* @__PURE__ */ b(T, { gap: "6px", alignItems: "center", children: [
3808
+ /* @__PURE__ */ a(T, { padding: "22px 0 0 0", children: /* @__PURE__ */ a(B, { appearance: "primary", icon: u.icon }) }),
3806
3809
  /* @__PURE__ */ a(
3807
3810
  Sr,
3808
3811
  {
@@ -3898,7 +3901,7 @@ const Pi = D.div`
3898
3901
  ),
3899
3902
  value: e
3900
3903
  }), Wi = (e) => ({
3901
- schema: xe().test(
3904
+ schema: we().test(
3902
3905
  "isArrayOrString",
3903
3906
  "Debe ser un array de strings/numbers o un solo string",
3904
3907
  (t) => Array.isArray(t) ? t.every(
@@ -3907,7 +3910,7 @@ const Pi = D.div`
3907
3910
  ),
3908
3911
  value: e
3909
3912
  }), Yi = (e) => ({
3910
- schema: xe().test(
3913
+ schema: we().test(
3911
3914
  "isArrayOrString",
3912
3915
  "Debe ser un array de strings/numbers o un solo string ",
3913
3916
  (t) => Array.isArray(t) ? t.every(
@@ -3918,9 +3921,9 @@ const Pi = D.div`
3918
3921
  }), Xi = (e) => {
3919
3922
  const t = (e == null ? void 0 : e.from) ?? 0, n = (e == null ? void 0 : e.to) ?? 0;
3920
3923
  return {
3921
- schema: J({
3922
- from: pe().required("El campo 'Rango desde' es requerido").max(n, "'Rango desde' no puede ser mayor que 'Rango hasta'").min(0, "'Rango desde' no puede ser menor que 0"),
3923
- to: pe().min(0, "El campo 'Rango hasta' debe ser mayor o igual a 0").required("El campo 'Rango hasta' es requerido").test(
3924
+ schema: Q({
3925
+ from: ge().required("El campo 'Rango desde' es requerido").max(n, "'Rango desde' no puede ser mayor que 'Rango hasta'").min(0, "'Rango desde' no puede ser menor que 0"),
3926
+ to: ge().min(0, "El campo 'Rango hasta' debe ser mayor o igual a 0").required("El campo 'Rango hasta' es requerido").test(
3924
3927
  "is-greater",
3925
3928
  "El campo 'Rango hasta' debe ser mayor que 'Rango desde'",
3926
3929
  function(r) {
@@ -3932,7 +3935,7 @@ const Pi = D.div`
3932
3935
  value: { from: t, to: n }
3933
3936
  };
3934
3937
  }, Ft = (e, t) => t === H.PERCENTAGE ? {
3935
- schema: pe().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"),
3938
+ schema: ge().required("El campo tipo porcentaje es requerido").min(0, "El campo tipo porcentaje no puede ser menor que 0").max(100, "El campo tipo porcentaje no puede ser mayor que 100"),
3936
3939
  value: e
3937
3940
  } : {
3938
3941
  schema: be().required("Requerido"),
@@ -4009,24 +4012,24 @@ function Ji({
4009
4012
  // );
4010
4013
  // }),
4011
4014
  conditionsThatEstablishesTheDecision: Qe((l, { parent: s }) => {
4012
- var g;
4013
- if ((s == null ? void 0 : s.toggleNone) && Object.keys(s.conditionsThatEstablishesTheDecision || {}).length > 0) return J().shape({});
4014
- const d = ((g = e.conditionsThatEstablishesTheDecision) == null ? void 0 : g.reduce(
4015
- (h, f) => {
4015
+ var h;
4016
+ if ((s == null ? void 0 : s.toggleNone) && Object.keys(s.conditionsThatEstablishesTheDecision || {}).length > 0) return Q().shape({});
4017
+ const d = ((h = e.conditionsThatEstablishesTheDecision) == null ? void 0 : h.reduce(
4018
+ (g, f) => {
4016
4019
  if (o.values.conditionsThatEstablishesTheDecision[f.conditionName] !== void 0) {
4017
- const b = Cn(
4020
+ const v = Cn(
4018
4021
  f.howToSetTheCondition
4019
4022
  );
4020
- h[f.conditionName] = b(
4023
+ g[f.conditionName] = v(
4021
4024
  f.value,
4022
4025
  f.conditionDataType
4023
4026
  ).schema;
4024
4027
  }
4025
- return h;
4028
+ return g;
4026
4029
  },
4027
4030
  {}
4028
4031
  )) ?? {};
4029
- return J(d);
4032
+ return Q(d);
4030
4033
  })
4031
4034
  };
4032
4035
  n.terms && (i.effectiveFrom = Le().required(
@@ -4036,13 +4039,13 @@ function Ji({
4036
4039
  (l, s, { parent: p }) => (p == null ? void 0 : p.checkClosed) ? s.required("La fecha de finalización es requerida").test(
4037
4040
  "is-after-startDate",
4038
4041
  "La fecha de finalización debe ser mayor o igual a la fecha de inicio",
4039
- function(g) {
4040
- const h = this.parent.effectiveFrom;
4041
- return !h || !g ? !0 : new Date(g) >= new Date(h);
4042
+ function(h) {
4043
+ const g = this.parent.effectiveFrom;
4044
+ return !g || !h ? !0 : new Date(h) >= new Date(g);
4042
4045
  }
4043
4046
  ) : s.notRequired()
4044
4047
  ));
4045
- const c = J(i);
4048
+ const c = Q(i);
4046
4049
  return o = tn({
4047
4050
  initialValues: r,
4048
4051
  validationSchema: c,
@@ -4058,8 +4061,8 @@ function Ji({
4058
4061
  effectiveFrom: l.effectiveFrom,
4059
4062
  validUntil: l.validUntil,
4060
4063
  conditionsThatEstablishesTheDecision: (p = e.conditionsThatEstablishesTheDecision) == null ? void 0 : p.filter((d) => {
4061
- const g = l.conditionsThatEstablishesTheDecision[d.conditionName];
4062
- return g != null && g !== "";
4064
+ const h = l.conditionsThatEstablishesTheDecision[d.conditionName];
4065
+ return h != null && h !== "";
4063
4066
  }).map((d) => ({
4064
4067
  ...d,
4065
4068
  value: l.conditionsThatEstablishesTheDecision[d.conditionName]
@@ -4085,16 +4088,16 @@ function Ji({
4085
4088
  });
4086
4089
  } };
4087
4090
  }
4088
- const Zi = D.div`
4091
+ const Zi = N.div`
4089
4092
  & > div {
4090
4093
  border-radius: 8px;
4091
4094
  border: 1px solid
4092
4095
  ${({ theme: e }) => {
4093
4096
  var t, n;
4094
- return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || k.palette.neutral.N30;
4097
+ return ((n = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N30) || A.palette.neutral.N30;
4095
4098
  }};
4096
4099
  }
4097
- `, Ki = D.div`
4100
+ `, Ki = N.div`
4098
4101
  width: 100%;
4099
4102
  height: 100%;
4100
4103
  overflow-y: auto;
@@ -4125,8 +4128,8 @@ const Zi = D.div`
4125
4128
  };
4126
4129
  return Je(() => {
4127
4130
  s(t);
4128
- }, [t]), /* @__PURE__ */ v(V, { children: [
4129
- /* @__PURE__ */ a(x, { children: /* @__PURE__ */ a(
4131
+ }, [t]), /* @__PURE__ */ b(V, { children: [
4132
+ /* @__PURE__ */ a(T, { children: /* @__PURE__ */ a(
4130
4133
  Tt,
4131
4134
  {
4132
4135
  checked: l,
@@ -4153,17 +4156,17 @@ const Zi = D.div`
4153
4156
  valueEnd: s = "",
4154
4157
  messageStart: p = "",
4155
4158
  messageEnd: d = "",
4156
- statusStart: g = "pending",
4157
- statusEnd: h = "pending"
4158
- } = e, [f, m] = q(c), [b, y] = q(l), [w, S] = q(s), N = ({ target: F }) => {
4159
+ statusStart: h = "pending",
4160
+ statusEnd: g = "pending"
4161
+ } = e, [f, m] = q(c), [v, x] = q(l), [w, S] = q(s), D = ({ target: F }) => {
4159
4162
  m(F.checked), r && r(F.checked);
4160
4163
  }, C = (F) => {
4161
- y(F.target.value), t(F);
4162
- }, A = (F) => {
4164
+ x(F.target.value), t(F);
4165
+ }, k = (F) => {
4163
4166
  S(F.target.value), n(F);
4164
- }, L = ie("(max-width: 400px)");
4165
- return /* @__PURE__ */ v(V, { children: [
4166
- /* @__PURE__ */ v(x, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
4167
+ }, L = ae("(max-width: 400px)");
4168
+ return /* @__PURE__ */ b(V, { children: [
4169
+ /* @__PURE__ */ b(T, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
4167
4170
  /* @__PURE__ */ a(
4168
4171
  R,
4169
4172
  {
@@ -4176,7 +4179,7 @@ const Zi = D.div`
4176
4179
  }
4177
4180
  ),
4178
4181
  /* @__PURE__ */ a(
4179
- x,
4182
+ T,
4180
4183
  {
4181
4184
  alignContent: "center",
4182
4185
  justifyContent: "center",
@@ -4186,7 +4189,7 @@ const Zi = D.div`
4186
4189
  Zt,
4187
4190
  {
4188
4191
  label: "Cerrada",
4189
- onChange: N,
4192
+ onChange: D,
4190
4193
  checked: f,
4191
4194
  value: ""
4192
4195
  }
@@ -4194,8 +4197,8 @@ const Zi = D.div`
4194
4197
  }
4195
4198
  )
4196
4199
  ] }),
4197
- /* @__PURE__ */ v(
4198
- x,
4200
+ /* @__PURE__ */ b(
4201
+ T,
4199
4202
  {
4200
4203
  direction: L ? "column" : "row",
4201
4204
  justifyContent: "space-between",
@@ -4207,10 +4210,10 @@ const Zi = D.div`
4207
4210
  id: "dateStart",
4208
4211
  label: o,
4209
4212
  onChange: C,
4210
- value: b,
4213
+ value: v,
4211
4214
  required: u,
4212
4215
  size: "compact",
4213
- status: g,
4216
+ status: h,
4214
4217
  message: p
4215
4218
  }
4216
4219
  ),
@@ -4219,11 +4222,11 @@ const Zi = D.div`
4219
4222
  {
4220
4223
  id: "dateEnd",
4221
4224
  label: i,
4222
- onChange: A,
4225
+ onChange: k,
4223
4226
  value: w,
4224
4227
  required: u,
4225
4228
  size: "compact",
4226
- status: h,
4229
+ status: g,
4227
4230
  message: d
4228
4231
  }
4229
4232
  )
@@ -4244,23 +4247,23 @@ const Zi = D.div`
4244
4247
  termStartStatus: s,
4245
4248
  termEndStatus: p
4246
4249
  } = e;
4247
- return /* @__PURE__ */ a("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ v(x, { direction: "column", gap: "24px", children: [
4250
+ return /* @__PURE__ */ a("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ b(T, { direction: "column", gap: "24px", children: [
4248
4251
  ft({
4249
4252
  condition: i,
4250
4253
  formik: t,
4251
4254
  isDecision: !0
4252
4255
  }),
4253
4256
  /* @__PURE__ */ a(W, { dashed: !0 }),
4254
- /* @__PURE__ */ a(Zi, { children: /* @__PURE__ */ a(Ki, { children: /* @__PURE__ */ v(
4255
- x,
4257
+ /* @__PURE__ */ a(Zi, { children: /* @__PURE__ */ a(Ki, { children: /* @__PURE__ */ b(
4258
+ T,
4256
4259
  {
4257
4260
  direction: "column",
4258
4261
  padding: "6px 12px",
4259
4262
  gap: "16px",
4260
4263
  height: "272px",
4261
4264
  children: [
4262
- /* @__PURE__ */ v(
4263
- x,
4265
+ /* @__PURE__ */ b(
4266
+ T,
4264
4267
  {
4265
4268
  justifyContent: "space-between",
4266
4269
  alignItems: "center",
@@ -4280,17 +4283,17 @@ const Zi = D.div`
4280
4283
  ]
4281
4284
  }
4282
4285
  ),
4283
- /* @__PURE__ */ a(x, { direction: "column", gap: "20px", children: o == null ? void 0 : o.map((d) => /* @__PURE__ */ a(
4286
+ /* @__PURE__ */ a(T, { direction: "column", gap: "20px", children: o == null ? void 0 : o.map((d) => /* @__PURE__ */ a(
4284
4287
  ea,
4285
4288
  {
4286
4289
  id: `toggle-${d.conditionName}`,
4287
4290
  name: `toggle.${d.conditionName}`,
4288
4291
  labelToggle: d.labelName,
4289
4292
  checked: !t.values.toggleNone && t.values.conditionsThatEstablishesTheDecision[d.conditionName] !== void 0,
4290
- handleToggleChange: (g) => u(
4293
+ handleToggleChange: (h) => u(
4291
4294
  d.conditionName,
4292
4295
  d.howToSetTheCondition === I.LIST_OF_VALUES_MULTI
4293
- )(g.target.checked),
4296
+ )(h.target.checked),
4294
4297
  children: ft({ condition: d, formik: t })
4295
4298
  },
4296
4299
  d.conditionName
@@ -4298,7 +4301,7 @@ const Zi = D.div`
4298
4301
  ]
4299
4302
  }
4300
4303
  ) }) }),
4301
- n.terms && /* @__PURE__ */ v(V, { children: [
4304
+ n.terms && /* @__PURE__ */ b(V, { children: [
4302
4305
  /* @__PURE__ */ a(W, { dashed: !0 }),
4303
4306
  /* @__PURE__ */ a(
4304
4307
  ta,
@@ -4322,13 +4325,13 @@ const Zi = D.div`
4322
4325
  ] }),
4323
4326
  /* @__PURE__ */ a(W, {}),
4324
4327
  l && /* @__PURE__ */ a(R, { type: "label", size: "medium", appearance: "danger", children: typeof t.errors.conditionsThatEstablishesTheDecision == "string" ? t.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
4325
- /* @__PURE__ */ v(x, { direction: "row", justifyContent: "end", gap: "16px", children: [
4328
+ /* @__PURE__ */ b(T, { direction: "row", justifyContent: "end", gap: "16px", children: [
4326
4329
  /* @__PURE__ */ a(Y, { appearance: "gray", onClick: r, children: n.cancel }),
4327
4330
  /* @__PURE__ */ a(Y, { type: "submit", children: n.confirm })
4328
4331
  ] })
4329
4332
  ] }) });
4330
4333
  }, ra = (e) => {
4331
- var h;
4334
+ var g;
4332
4335
  const { decision: t, onSubmitEvent: n, textValues: r, onCancel: o } = e, { formik: i, handleToggleNoneChange: c } = Ji({
4333
4336
  decision: t,
4334
4337
  onSubmitEvent: n,
@@ -4339,7 +4342,7 @@ const Zi = D.div`
4339
4342
  howToSetTheCondition: t.howToSetTheDecision,
4340
4343
  decisionDataType: t.decisionDataType,
4341
4344
  listOfPossibleValues: t.listOfPossibleValues
4342
- }, l = ((h = t.conditionsThatEstablishesTheDecision) == null ? void 0 : h.filter(
4345
+ }, l = ((g = t.conditionsThatEstablishesTheDecision) == null ? void 0 : g.filter(
4343
4346
  (f) => !f.hidden
4344
4347
  )) || [], s = !!i.errors.conditionsThatEstablishesTheDecision && i.submitCount > 0, p = i.touched.effectiveFrom ? i.errors.effectiveFrom ? "invalid" : "valid" : void 0, d = i.touched.validUntil ? i.errors.validUntil ? "invalid" : "valid" : void 0;
4345
4348
  return /* @__PURE__ */ a(
@@ -4352,8 +4355,8 @@ const Zi = D.div`
4352
4355
  visibleConditions: l,
4353
4356
  normalizedDecision: u,
4354
4357
  handleToggleNoneChange: c,
4355
- handleConditionToggleChange: (f, m) => (b) => {
4356
- if (!b)
4358
+ handleConditionToggleChange: (f, m) => (v) => {
4359
+ if (!v)
4357
4360
  i.setFieldValue(
4358
4361
  `conditionsThatEstablishesTheDecision.${f}`,
4359
4362
  void 0
@@ -4363,10 +4366,10 @@ const Zi = D.div`
4363
4366
  !1
4364
4367
  );
4365
4368
  else {
4366
- const y = m ? [] : "";
4369
+ const x = m ? [] : "";
4367
4370
  i.setFieldValue(
4368
4371
  `conditionsThatEstablishesTheDecision.${f}`,
4369
- y
4372
+ x
4370
4373
  );
4371
4374
  }
4372
4375
  },
@@ -4413,21 +4416,21 @@ const Zi = D.div`
4413
4416
  }, De = {
4414
4417
  item: {
4415
4418
  background: {
4416
- active: k.palette.blue.B50,
4417
- inactive: k.palette.neutral.N0,
4418
- hover: k.palette.neutral.N20,
4419
- disabled: k.palette.neutral.N20
4419
+ active: A.palette.blue.B50,
4420
+ inactive: A.palette.neutral.N0,
4421
+ hover: A.palette.neutral.N20,
4422
+ disabled: A.palette.neutral.N20
4420
4423
  }
4421
4424
  },
4422
4425
  border: {
4423
4426
  expanded: {
4424
- color: k.palette.blue.B400
4427
+ color: A.palette.blue.B400
4425
4428
  },
4426
4429
  contracted: {
4427
- color: k.palette.neutral.N0
4430
+ color: A.palette.neutral.N0
4428
4431
  }
4429
4432
  }
4430
- }, oa = D.div`
4433
+ }, oa = N.div`
4431
4434
  & > div {
4432
4435
  border: 1px solid
4433
4436
  ${({ theme: e, $active: t }) => {
@@ -4443,27 +4446,27 @@ const Zi = D.div`
4443
4446
  return ((o = (r = (n = e == null ? void 0 : e.menu) == null ? void 0 : n.item) == null ? void 0 : r.background) == null ? void 0 : o.hover) || De.item.background.hover;
4444
4447
  }};
4445
4448
  }
4446
- `, Dn = D.div`
4449
+ `, Dn = N.div`
4447
4450
  display: flex;
4448
4451
  align-items: center;
4449
4452
  gap: 12px;
4450
4453
  width: 100%;
4451
4454
  outline: none;
4452
4455
  cursor: pointer;
4453
- `, ia = D.div`
4456
+ `, ia = N.div`
4454
4457
  display: flex;
4455
4458
  align-items: center;
4456
4459
  outline: none;
4457
4460
  cursor: pointer;
4458
- `, aa = D(Un)`
4461
+ `, aa = N(Un)`
4459
4462
  display: flex;
4460
4463
  align-items: center;
4461
4464
  text-decoration: none;
4462
- `, la = D(Un)`
4465
+ `, la = N(Un)`
4463
4466
  display: block;
4464
4467
  text-decoration: none;
4465
4468
  color: inherit;
4466
- `, sa = D.div`
4469
+ `, sa = N.div`
4467
4470
  & > div {
4468
4471
  border-bottom: 1px solid
4469
4472
  ${({ theme: e, $active: t }) => {
@@ -4472,7 +4475,7 @@ const Zi = D.div`
4472
4475
  }};
4473
4476
  border-radius: 8px 8px 0 0;
4474
4477
  }
4475
- `, Wn = D.div`
4478
+ `, Wn = N.div`
4476
4479
  display: block;
4477
4480
  text-decoration: none;
4478
4481
  background-color: ${({ theme: e, $active: t }) => {
@@ -4490,7 +4493,7 @@ const Zi = D.div`
4490
4493
  return ((i = (o = (r = t == null ? void 0 : t.menu) == null ? void 0 : r.item) == null ? void 0 : o.background) == null ? void 0 : i.hover) || De.item.background.hover;
4491
4494
  }};
4492
4495
  }
4493
- `, da = D.div`
4496
+ `, da = N.div`
4494
4497
  display: flex;
4495
4498
  flex-direction: column;
4496
4499
 
@@ -4498,35 +4501,35 @@ const Zi = D.div`
4498
4501
  border-radius: 0 0 8px 8px;
4499
4502
  }
4500
4503
  `, ca = (e) => {
4501
- const { isOpen: t, links: n, onClick: r, title: o, activeId: i, headerPath: c, headerActive: u, onBeforeNavigate: l } = e, s = Nr(), p = (y) => {
4502
- (y.key === "Enter" || y.key === " ") && (y.preventDefault(), r());
4503
- }, d = (y) => {
4504
- y.preventDefault(), y.stopPropagation(), r();
4505
- }, g = (y) => {
4506
- (y.key === "Enter" || y.key === " ") && (y.preventDefault(), y.stopPropagation(), r());
4507
- }, h = _.useCallback(
4508
- async (y, w) => {
4509
- l && !await l(y, w) || s(y);
4504
+ const { isOpen: t, links: n, onClick: r, title: o, activeId: i, headerPath: c, headerActive: u, onBeforeNavigate: l } = e, s = Nr(), p = (x) => {
4505
+ (x.key === "Enter" || x.key === " ") && (x.preventDefault(), r());
4506
+ }, d = (x) => {
4507
+ x.preventDefault(), x.stopPropagation(), r();
4508
+ }, h = (x) => {
4509
+ (x.key === "Enter" || x.key === " ") && (x.preventDefault(), x.stopPropagation(), r());
4510
+ }, g = _.useCallback(
4511
+ async (x, w) => {
4512
+ l && !await l(x, w) || s(x);
4510
4513
  },
4511
4514
  [s, l]
4512
- ), f = t || u ? "primary" : "dark", m = t || u ? "bold" : "normal", b = _.useId();
4513
- return /* @__PURE__ */ a(oa, { $active: t, children: /* @__PURE__ */ v(de, { border: !0, borderRadius: "8px", width: "100%", children: [
4515
+ ), f = t || u ? "primary" : "dark", m = t || u ? "bold" : "normal", v = _.useId();
4516
+ return /* @__PURE__ */ a(oa, { $active: t, children: /* @__PURE__ */ b(pe, { border: !0, borderRadius: "8px", width: "100%", children: [
4514
4517
  /* @__PURE__ */ a(
4515
4518
  sa,
4516
4519
  {
4517
4520
  $active: t && n.length > 0,
4518
- "aria-controls": b,
4521
+ "aria-controls": v,
4519
4522
  "aria-expanded": t,
4520
4523
  onClick: d,
4521
- onKeyDown: g,
4522
- children: c ? /* @__PURE__ */ a(aa, { to: c, onClick: async (y) => {
4523
- y.preventDefault(), y.stopPropagation(), await h(c, {
4524
+ onKeyDown: h,
4525
+ children: c ? /* @__PURE__ */ a(aa, { to: c, onClick: async (x) => {
4526
+ x.preventDefault(), x.stopPropagation(), await g(c, {
4524
4527
  id: c,
4525
4528
  path: c,
4526
4529
  label: o
4527
4530
  });
4528
- }, children: /* @__PURE__ */ v(
4529
- de,
4531
+ }, children: /* @__PURE__ */ b(
4532
+ pe,
4530
4533
  {
4531
4534
  alignItems: "center",
4532
4535
  borderRadius: "8px",
@@ -4555,8 +4558,8 @@ const Zi = D.div`
4555
4558
  ) })
4556
4559
  ]
4557
4560
  }
4558
- ) }) : /* @__PURE__ */ v(
4559
- de,
4561
+ ) }) : /* @__PURE__ */ b(
4562
+ pe,
4560
4563
  {
4561
4564
  alignItems: "center",
4562
4565
  borderRadius: "8px",
@@ -4575,7 +4578,7 @@ const Zi = D.div`
4575
4578
  /* @__PURE__ */ a(Dn, { children: /* @__PURE__ */ a(
4576
4579
  ia,
4577
4580
  {
4578
- "aria-controls": b,
4581
+ "aria-controls": v,
4579
4582
  "aria-expanded": t,
4580
4583
  onClick: r,
4581
4584
  onKeyDown: p,
@@ -4598,19 +4601,19 @@ const Zi = D.div`
4598
4601
  )
4599
4602
  }
4600
4603
  ),
4601
- t && n.length > 0 && /* @__PURE__ */ a(da, { id: b, children: n.map((y) => {
4602
- const w = y.id === i;
4603
- return /* @__PURE__ */ a(la, { to: y.path, onClick: async (S) => {
4604
- S.preventDefault(), S.stopPropagation(), await h(y.path, y);
4605
- }, children: /* @__PURE__ */ a(Wn, { $active: w, children: /* @__PURE__ */ v(
4606
- x,
4604
+ t && n.length > 0 && /* @__PURE__ */ a(da, { id: v, children: n.map((x) => {
4605
+ const w = x.id === i;
4606
+ return /* @__PURE__ */ a(la, { to: x.path, onClick: async (S) => {
4607
+ S.preventDefault(), S.stopPropagation(), await g(x.path, x);
4608
+ }, children: /* @__PURE__ */ a(Wn, { $active: w, children: /* @__PURE__ */ b(
4609
+ T,
4607
4610
  {
4608
4611
  alignItems: "center",
4609
4612
  direction: "row",
4610
4613
  gap: "8px",
4611
4614
  padding: w ? "8px 4px" : "8px 32px",
4612
4615
  children: [
4613
- w && /* @__PURE__ */ a(B, { appearance: "primary", icon: /* @__PURE__ */ a(hr, {}) }),
4616
+ w && /* @__PURE__ */ a(B, { appearance: "primary", icon: /* @__PURE__ */ a(gr, {}) }),
4614
4617
  /* @__PURE__ */ a(
4615
4618
  R,
4616
4619
  {
@@ -4618,19 +4621,19 @@ const Zi = D.div`
4618
4621
  size: "small",
4619
4622
  type: "title",
4620
4623
  weight: w ? "bold" : "normal",
4621
- children: y.label
4624
+ children: x.label
4622
4625
  }
4623
4626
  )
4624
4627
  ]
4625
4628
  }
4626
- ) }) }, y.id);
4629
+ ) }) }, x.id);
4627
4630
  }) })
4628
4631
  ] }) });
4629
- }, ua = D.div`
4632
+ }, ua = N.div`
4630
4633
  & > div {
4631
4634
  background: ${({ $background: e, theme: t }) => {
4632
4635
  var n, r, o, i;
4633
- return e ? `${((r = (n = t == null ? void 0 : t.palette) == null ? void 0 : n.neutral) == null ? void 0 : r.N20) || k.palette.neutral.N20}` : `${((i = (o = t == null ? void 0 : t.palette) == null ? void 0 : o.neutral) == null ? void 0 : i.N0) || k.palette.neutral.N0}`;
4636
+ return e ? `${((r = (n = t == null ? void 0 : t.palette) == null ? void 0 : n.neutral) == null ? void 0 : r.N20) || A.palette.neutral.N20}` : `${((i = (o = t == null ? void 0 : t.palette) == null ? void 0 : o.neutral) == null ? void 0 : i.N0) || A.palette.neutral.N0}`;
4634
4637
  }};
4635
4638
  }
4636
4639
  height: 90vh;
@@ -4642,8 +4645,8 @@ const Zi = D.div`
4642
4645
  }, Ss = (e) => {
4643
4646
  const { collapseOnNavigate: t = !1, defaultOpenId: n = null, groups: r, onBeforeNavigate: o } = e, i = Er(), [c, u] = _.useState(n), l = _.useRef(i.pathname), s = _.useCallback(
4644
4647
  (d) => {
4645
- var g;
4646
- return (g = d.find((h) => h.path === i.pathname)) == null ? void 0 : g.id;
4648
+ var h;
4649
+ return (h = d.find((g) => g.path === i.pathname)) == null ? void 0 : h.id;
4647
4650
  },
4648
4651
  [i.pathname]
4649
4652
  ), p = _.useCallback(
@@ -4656,13 +4659,13 @@ const Zi = D.div`
4656
4659
  u(null);
4657
4660
  return;
4658
4661
  }
4659
- const g = pa(i.pathname, r);
4660
- if (g) {
4661
- u(g);
4662
+ const h = pa(i.pathname, r);
4663
+ if (h) {
4664
+ u(h);
4662
4665
  return;
4663
4666
  }
4664
4667
  n && u(n);
4665
- }, [t, n, r, i.pathname]), /* @__PURE__ */ a(ua, { $background: !0, children: /* @__PURE__ */ a(x, { direction: "column", gap: "8px", padding: "12px", height: "100%", children: r.map((d) => /* @__PURE__ */ a(
4668
+ }, [t, n, r, i.pathname]), /* @__PURE__ */ a(ua, { $background: !0, children: /* @__PURE__ */ a(T, { direction: "column", gap: "8px", padding: "12px", height: "100%", children: r.map((d) => /* @__PURE__ */ a(
4666
4669
  ca,
4667
4670
  {
4668
4671
  activeId: s(d.links),
@@ -4670,7 +4673,7 @@ const Zi = D.div`
4670
4673
  headerActive: p(d.path),
4671
4674
  isOpen: c === d.id,
4672
4675
  links: d.links,
4673
- onClick: () => u((g) => g === d.id ? null : d.id),
4676
+ onClick: () => u((h) => h === d.id ? null : d.id),
4674
4677
  title: d.title,
4675
4678
  onBeforeNavigate: o
4676
4679
  },
@@ -4695,7 +4698,7 @@ function Yn() {
4695
4698
  }];
4696
4699
  }
4697
4700
  var [Xn, Qn] = Yn();
4698
- function ga(e, t) {
4701
+ function ha(e, t) {
4699
4702
  return e.source === t.source && e.flags.split("").sort().join("") === t.flags.split("").sort().join("");
4700
4703
  }
4701
4704
  function Ze(e, t, n = !0, r = ["__key"]) {
@@ -4705,7 +4708,7 @@ function Ze(e, t, n = !0, r = ["__key"]) {
4705
4708
  if (e instanceof Date && t instanceof Date)
4706
4709
  return e.getTime() === t.getTime();
4707
4710
  if (e instanceof RegExp && t instanceof RegExp)
4708
- return ga(e, t);
4711
+ return ha(e, t);
4709
4712
  if (e === null || t === null) return !1;
4710
4713
  const o = e, i = t;
4711
4714
  if (Object.keys(o).length !== Object.keys(i).length) return !1;
@@ -4724,7 +4727,7 @@ function je(e) {
4724
4727
  return { x: e.clientX, y: e.clientY };
4725
4728
  }
4726
4729
  Array();
4727
- var on = typeof window < "u", Q = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap();
4730
+ var on = typeof window < "u", J = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap();
4728
4731
  function Zn() {
4729
4732
  if (!on) return !1;
4730
4733
  if ("userAgentData" in navigator)
@@ -4732,7 +4735,7 @@ function Zn() {
4732
4735
  const e = navigator.userAgent, t = /android|iphone|ipod/i.test(e), n = /iPad/.test(e) || e.includes("Macintosh") && navigator.maxTouchPoints > 1;
4733
4736
  return t || n;
4734
4737
  }
4735
- var ha = {
4738
+ var ga = {
4736
4739
  affectedNodes: [],
4737
4740
  coordinates: {
4738
4741
  x: 0,
@@ -4766,9 +4769,9 @@ var ha = {
4766
4769
  scrollDebounceTimeout: void 0,
4767
4770
  frameIdX: void 0,
4768
4771
  frameIdY: void 0
4769
- }, T = ha, Ee = !1, Nn, Lt;
4772
+ }, y = ga, Ee = !1, Nn, Lt;
4770
4773
  function fa() {
4771
- T.scrollDebounceTimeout && clearTimeout(T.scrollDebounceTimeout), T.longPressTimeout && clearTimeout(T.longPressTimeout), T.frameIdX !== void 0 && cancelAnimationFrame(T.frameIdX), T.frameIdY !== void 0 && cancelAnimationFrame(T.frameIdY), T = { ...{
4774
+ y.scrollDebounceTimeout && clearTimeout(y.scrollDebounceTimeout), y.longPressTimeout && clearTimeout(y.longPressTimeout), y.frameIdX !== void 0 && cancelAnimationFrame(y.frameIdX), y.frameIdY !== void 0 && cancelAnimationFrame(y.frameIdY), y = { ...{
4772
4775
  affectedNodes: [],
4773
4776
  coordinates: {
4774
4777
  x: 0,
@@ -4809,49 +4812,49 @@ function fa() {
4809
4812
  } };
4810
4813
  }
4811
4814
  function Kn(e) {
4812
- return Object.assign(T, e), e.initialParent.data.emit("dragStarted", T), Ee = !1, T.emit("dragStarted", T), T;
4815
+ return Object.assign(y, e), e.initialParent.data.emit("dragStarted", y), Ee = !1, y.emit("dragStarted", y), y;
4813
4816
  }
4814
4817
  function ma() {
4815
- T.activeState && $e(T.activeState.parent, void 0, T), T.selectedState && Ae(T.selectedState.nodes, T.selectedState.parent, T), T.selectedState = T.activeState = void 0;
4818
+ y.activeState && $e(y.activeState.parent, void 0, y), y.selectedState && Ae(y.selectedState.nodes, y.selectedState.parent, y), y.selectedState = y.activeState = void 0;
4816
4819
  }
4817
4820
  function ba() {
4818
- if (T.pointerDown && (T.pointerDown.node.el.draggable = !0), T.pointerDown = void 0, !ae(T)) return;
4819
- const e = T.currentParent.data.config;
4820
- ae(T) && e.handleEnd(T);
4821
+ if (y.pointerDown && (y.pointerDown.node.el.draggable = !0), y.pointerDown = void 0, !le(y)) return;
4822
+ const e = y.currentParent.data.config;
4823
+ le(y) && e.handleEnd(y);
4821
4824
  }
4822
4825
  function va(e) {
4823
- e.key === "Escape" && (T.selectedState && Ae(T.selectedState.nodes, T.selectedState.parent, T), T.activeState && $e(T.activeState.parent, void 0, T), T.selectedState = T.activeState = void 0);
4826
+ e.key === "Escape" && (y.selectedState && Ae(y.selectedState.nodes, y.selectedState.parent, y), y.activeState && $e(y.activeState.parent, void 0, y), y.selectedState = y.activeState = void 0);
4824
4827
  }
4825
4828
  function ya(e) {
4826
- if (!K(T)) return;
4829
+ if (!K(y)) return;
4827
4830
  Ee = !0;
4828
- const t = T.initialParent.data.config.handleEnd;
4829
- t(T);
4831
+ const t = y.initialParent.data.config.handleEnd;
4832
+ t(y);
4830
4833
  }
4831
4834
  function Ta(e) {
4832
- if (!K(T)) return;
4835
+ if (!K(y)) return;
4833
4836
  Z(e);
4834
4837
  const { x: t, y: n } = je(e);
4835
- K(T) && St({ x: t, y: n }, e, T);
4838
+ K(y) && St({ x: t, y: n }, e, y);
4836
4839
  }
4837
4840
  function xa(e) {
4838
- if (!T.pointerDown || !T.pointerDown.validated) return;
4839
- const t = T.pointerDown.parent.data.config;
4841
+ if (!y.pointerDown || !y.pointerDown.validated) return;
4842
+ const t = y.pointerDown.parent.data.config;
4840
4843
  if (!(e.pointerType === "mouse" && !Zn()))
4841
- if (ae(T))
4842
- ae(T) && En(e, T);
4844
+ if (le(y))
4845
+ le(y) && En(e, y);
4843
4846
  else {
4844
- if (Z(e), t.longPress && !T.longPress) {
4845
- clearTimeout(T.longPressTimeout), T.longPress = !1;
4847
+ if (Z(e), t.longPress && !y.longPress) {
4848
+ clearTimeout(y.longPressTimeout), y.longPress = !1;
4846
4849
  return;
4847
4850
  }
4848
- const n = t.draggedNodes(T.pointerDown);
4849
- t.dragstartClasses(T.pointerDown.node, n, t, !0);
4850
- const r = T.pointerDown.node.el.getBoundingClientRect(), o = Qa(
4851
- T.pointerDown.node,
4852
- T.pointerDown.parent,
4851
+ const n = t.draggedNodes(y.pointerDown);
4852
+ t.dragstartClasses(y.pointerDown.node, n, t, !0);
4853
+ const r = y.pointerDown.node.el.getBoundingClientRect(), o = Qa(
4854
+ y.pointerDown.node,
4855
+ y.pointerDown.parent,
4853
4856
  e,
4854
- T,
4857
+ y,
4855
4858
  n,
4856
4859
  r
4857
4860
  );
@@ -4873,12 +4876,12 @@ function wa({
4873
4876
  keydown: va,
4874
4877
  drop: ya,
4875
4878
  pointermove: xa,
4876
- pointercancel: te(r.handlePointercancel),
4879
+ pointercancel: ne(r.handlePointercancel),
4877
4880
  touchmove: (d) => {
4878
- K(T) && d.cancelable && Z(d);
4881
+ K(y) && d.cancelable && Z(d);
4879
4882
  },
4880
4883
  contextmenu: (d) => {
4881
- ae(T) && Z(d);
4884
+ le(y) && Z(d);
4882
4885
  }
4883
4886
  })), tr(e);
4884
4887
  const [o, i] = Yn(), c = {
@@ -4931,15 +4934,15 @@ function wa({
4931
4934
  on: i,
4932
4935
  emit: o
4933
4936
  };
4934
- new MutationObserver(Ra).observe(e, { childList: !0 }), Q.set(e, c), (l = r.plugins) == null || l.forEach((d) => {
4935
- var g, h;
4936
- (h = (g = d(e)) == null ? void 0 : g.tearDown) == null || h.call(g);
4937
+ new MutationObserver(Ra).observe(e, { childList: !0 }), J.set(e, c), (l = r.plugins) == null || l.forEach((d) => {
4938
+ var h, g;
4939
+ (g = (h = d(e)) == null ? void 0 : h.tearDown) == null || g.call(h);
4937
4940
  }), (s = r.plugins) == null || s.forEach((d) => {
4938
- var g, h;
4939
- (h = (g = d(e)) == null ? void 0 : g.tearDown) == null || h.call(g);
4941
+ var h, g;
4942
+ (g = (h = d(e)) == null ? void 0 : h.tearDown) == null || g.call(h);
4940
4943
  }), (p = r.plugins) == null || p.forEach((d) => {
4941
- var g, h;
4942
- (h = (g = d(e)) == null ? void 0 : g.setup) == null || h.call(g);
4944
+ var h, g;
4945
+ (g = (h = d(e)) == null ? void 0 : h.setup) == null || g.call(h);
4943
4946
  }), Ea(e, c), xt(e, !0);
4944
4947
  }
4945
4948
  function er(e, t, n, r, o, i) {
@@ -4986,7 +4989,7 @@ function Sa({
4986
4989
  const r = t.map((l) => l.data.value), o = Me(e.el, e.data), i = t[0].data.index, c = [...e.data.enabledNodes], u = [
4987
4990
  ...o.filter((l) => !r.some((s) => Ze(l, s)))
4988
4991
  ];
4989
- u.splice(n[0].data.index, 0, ...r), "draggedNode" in T && (T.currentTargetValue = n[0].data.value), Wt(e.el, e.data, [...u]), e.data.config.onSort && e.data.config.onSort({
4992
+ u.splice(n[0].data.index, 0, ...r), "draggedNode" in y && (y.currentTargetValue = n[0].data.value), Wt(e.el, e.data, [...u]), e.data.config.onSort && e.data.config.onSort({
4990
4993
  parent: {
4991
4994
  el: e.el,
4992
4995
  data: e.data
@@ -4999,7 +5002,7 @@ function Sa({
4999
5002
  previousPosition: i,
5000
5003
  position: n[0].data.index,
5001
5004
  targetNodes: n,
5002
- state: T
5005
+ state: y
5003
5006
  });
5004
5007
  }
5005
5008
  function $e(e, t, n) {
@@ -5049,9 +5052,9 @@ function Da({
5049
5052
  state: c
5050
5053
  }) {
5051
5054
  xt(n.el);
5052
- const u = r.map((g) => g.data.value), l = [
5055
+ const u = r.map((h) => h.data.value), l = [
5053
5056
  ...Me(e.el, e.data).filter(
5054
- (g) => !u.some((h) => Ze(g, h))
5057
+ (h) => !u.some((g) => Ze(h, g))
5055
5058
  )
5056
5059
  ], s = Me(t.el, t.data), p = n.el === t.el && t.data.config.sortable === !1;
5057
5060
  let d;
@@ -5085,13 +5088,13 @@ function Na(e, t) {
5085
5088
  n(t);
5086
5089
  }
5087
5090
  function tr(e) {
5088
- const t = Q.get(e);
5091
+ const t = J.get(e);
5089
5092
  t && t.abortControllers.mainParent && t.abortControllers.mainParent.abort();
5090
5093
  }
5091
5094
  function K(e) {
5092
5095
  return "draggedNode" in e && !!e.draggedNode;
5093
5096
  }
5094
- function ae(e) {
5097
+ function le(e) {
5095
5098
  return "synthDragging" in e && !!e.synthDragging;
5096
5099
  }
5097
5100
  function Ea(e, t) {
@@ -5101,7 +5104,7 @@ function Ea(e, t) {
5101
5104
  scroll: pt(t.config.handleParentScroll),
5102
5105
  drop: pt(t.config.handleParentDrop),
5103
5106
  hasNestedParent: (n) => {
5104
- const r = Q.get(n.target);
5107
+ const r = J.get(n.target);
5105
5108
  r && (r.nestedParent = n.detail.parent);
5106
5109
  },
5107
5110
  focus: pt(t.config.handleParentFocus)
@@ -5122,8 +5125,8 @@ function Ea(e, t) {
5122
5125
  if (!o) return;
5123
5126
  const i = r.parentNode;
5124
5127
  if (!(i instanceof HTMLElement)) return;
5125
- const c = Q.get(i);
5126
- c && (T.pointerDown = {
5128
+ const c = J.get(i);
5129
+ c && (y.pointerDown = {
5127
5130
  parent: {
5128
5131
  el: i,
5129
5132
  data: c
@@ -5142,24 +5145,24 @@ function ka(e) {
5142
5145
  var n;
5143
5146
  const t = e.parent.data.config;
5144
5147
  e.node.data.abortControllers.mainNode = bt(e.node.el, {
5145
- keydown: te(t.handleNodeKeydown),
5146
- dragstart: te(t.handleDragstart),
5147
- dragover: te(t.handleNodeDragover),
5148
- dragenter: te(t.handleNodeDragenter),
5149
- dragleave: te(t.handleNodeDragleave),
5150
- dragend: te(t.handleDragend),
5151
- drop: te(t.handleNodeDrop),
5152
- focus: te(t.handleNodeFocus),
5153
- blur: te(t.handleNodeBlur),
5154
- pointerup: te(t.handleNodePointerup),
5155
- pointercancel: te(t.handlePointercancel),
5156
- pointerdown: te(t.handleNodePointerdown),
5148
+ keydown: ne(t.handleNodeKeydown),
5149
+ dragstart: ne(t.handleDragstart),
5150
+ dragover: ne(t.handleNodeDragover),
5151
+ dragenter: ne(t.handleNodeDragenter),
5152
+ dragleave: ne(t.handleNodeDragleave),
5153
+ dragend: ne(t.handleDragend),
5154
+ drop: ne(t.handleNodeDrop),
5155
+ focus: ne(t.handleNodeFocus),
5156
+ blur: ne(t.handleNodeBlur),
5157
+ pointerup: ne(t.handleNodePointerup),
5158
+ pointercancel: ne(t.handlePointercancel),
5159
+ pointerdown: ne(t.handleNodePointerdown),
5157
5160
  handleNodePointerover: t.handleNodePointerover,
5158
5161
  touchmove: (r) => {
5159
- K(T) && r.cancelable && Z(r);
5162
+ K(y) && r.cancelable && Z(r);
5160
5163
  },
5161
5164
  contextmenu: (r) => {
5162
- ae(T) && Z(r);
5165
+ le(y) && Z(r);
5163
5166
  }
5164
5167
  }), e.node.el.draggable = !0, t.reapplyDragClasses(e.node.el, e.parent.data), (n = e.parent.data.config.plugins) == null || n.forEach((r) => {
5165
5168
  var o, i;
@@ -5174,9 +5177,9 @@ function nr(e) {
5174
5177
  });
5175
5178
  }
5176
5179
  function Aa(e, t) {
5177
- if (!K(T)) return;
5178
- const n = ae(T) ? t.config.synthDropZoneClass : t.config.dropZoneClass;
5179
- T.draggedNode.el === e && Oe([e], n, !0);
5180
+ if (!K(y)) return;
5181
+ const n = le(y) ? t.config.synthDropZoneClass : t.config.dropZoneClass;
5182
+ y.draggedNode.el === e && Oe([e], n, !0);
5180
5183
  }
5181
5184
  function $a(e) {
5182
5185
  var t;
@@ -5196,11 +5199,11 @@ function Ra(e) {
5196
5199
  if (e.length === 1 && e[0].addedNodes.length === 1 && !(e[0].addedNodes[0] instanceof HTMLElement))
5197
5200
  return;
5198
5201
  const t = e[0].target;
5199
- !(t instanceof HTMLElement) || !Q.get(t) || xt(t);
5202
+ !(t instanceof HTMLElement) || !J.get(t) || xt(t);
5200
5203
  }
5201
5204
  function xt(e, t) {
5202
5205
  var u;
5203
- const n = Q.get(e);
5206
+ const n = J.get(e);
5204
5207
  if (!n) return;
5205
5208
  n.privateClasses = Array.from(e.classList);
5206
5209
  const r = [], o = n.config;
@@ -5239,7 +5242,7 @@ function xt(e, t) {
5239
5242
  index: l
5240
5243
  }
5241
5244
  );
5242
- if (!K(T) && T.activeState && Ze(T.activeState.node.data.value, d.value) && $e(
5245
+ if (!K(y) && y.activeState && Ze(y.activeState.node.data.value, d.value) && $e(
5243
5246
  {
5244
5247
  data: n,
5245
5248
  el: e
@@ -5248,13 +5251,13 @@ function xt(e, t) {
5248
5251
  el: s,
5249
5252
  data: d
5250
5253
  },
5251
- T
5252
- ), K(T) && Ze(T.draggedNode.data.value, d.value)) {
5253
- T.draggedNode.data = d, T.draggedNode.el = s;
5254
- const g = T.draggedNodes.find(
5255
- (h) => h.data.value === d.value
5254
+ y
5255
+ ), K(y) && Ze(y.draggedNode.data.value, d.value)) {
5256
+ y.draggedNode.data = d, y.draggedNode.el = s;
5257
+ const h = y.draggedNodes.find(
5258
+ (g) => g.data.value === d.value
5256
5259
  );
5257
- g && (g.el = s);
5260
+ h && (h.el = s);
5258
5261
  }
5259
5262
  c.push({
5260
5263
  el: s,
@@ -5279,13 +5282,13 @@ function xt(e, t) {
5279
5282
  }
5280
5283
  });
5281
5284
  }
5282
- Q.set(e, { ...n, enabledNodes: c }), o.remapFinished(n), (u = n.config.plugins) == null || u.forEach((l) => {
5285
+ J.set(e, { ...n, enabledNodes: c }), o.remapFinished(n), (u = n.config.plugins) == null || u.forEach((l) => {
5283
5286
  var s, p;
5284
5287
  (p = (s = l(e)) == null ? void 0 : s.remapFinished) == null || p.call(s);
5285
5288
  });
5286
5289
  }
5287
5290
  function Oa() {
5288
- T.remapJustFinished = !0, "draggedNode" in T && (T.affectedNodes = []);
5291
+ y.remapJustFinished = !0, "draggedNode" in y && (y.affectedNodes = []);
5289
5292
  }
5290
5293
  function Fa(e) {
5291
5294
  return !!e.targetData.parent.data.config.nativeDrag;
@@ -5293,10 +5296,10 @@ function Fa(e) {
5293
5296
  function La(e) {
5294
5297
  var t;
5295
5298
  if (e.parent.data.config.multiDrag) {
5296
- if (T.selectedState)
5299
+ if (y.selectedState)
5297
5300
  return [
5298
5301
  e.node,
5299
- ...(t = T.selectedState) == null ? void 0 : t.nodes.filter(
5302
+ ...(t = y.selectedState) == null ? void 0 : t.nodes.filter(
5300
5303
  (n) => n.el !== e.node.el
5301
5304
  )
5302
5305
  ];
@@ -5304,8 +5307,8 @@ function La(e) {
5304
5307
  return [];
5305
5308
  }
5306
5309
  function Ma(e) {
5307
- K(T) && (T.emit("scrollStarted", T), !ae(T) && (T.preventEnter = !0, Lt && clearTimeout(Lt), Lt = setTimeout(() => {
5308
- T.preventEnter = !1, T.emit("scrollEnded", T);
5310
+ K(y) && (y.emit("scrollStarted", y), !le(y) && (y.preventEnter = !0, Lt && clearTimeout(Lt), Lt = setTimeout(() => {
5311
+ y.preventEnter = !1, y.emit("scrollEnded", y);
5309
5312
  }, 100)));
5310
5313
  }
5311
5314
  function ja(e, t) {
@@ -5517,10 +5520,10 @@ function za(e, t) {
5517
5520
  n.nativeDrag && (ke(e.e), Ee = !0, n.handleEnd(t));
5518
5521
  }
5519
5522
  function Ha(e) {
5520
- e.e.target !== e.e.currentTarget && T.pointerDown && (T.pointerDown.node.el.draggable = !1);
5523
+ e.e.target !== e.e.currentTarget && y.pointerDown && (y.pointerDown.node.el.draggable = !1);
5521
5524
  }
5522
5525
  function Ba(e) {
5523
- e.e.target !== e.e.currentTarget && T.pointerDown && (T.pointerDown.node.el.draggable = !0);
5526
+ e.e.target !== e.e.currentTarget && y.pointerDown && (y.pointerDown.node.el.draggable = !0);
5524
5527
  }
5525
5528
  function qa(e, t) {
5526
5529
  const n = e.targetData.parent.data.config;
@@ -5534,12 +5537,12 @@ function qa(e, t) {
5534
5537
  }
5535
5538
  function Wa(e, t) {
5536
5539
  var r;
5537
- if (!ae(t)) return;
5540
+ if (!le(t)) return;
5538
5541
  if (Z(e.e), Ee) {
5539
5542
  Ee = !1;
5540
5543
  return;
5541
5544
  }
5542
- const n = (r = Q.get(t.initialParent.el)) == null ? void 0 : r.config;
5545
+ const n = (r = J.get(t.initialParent.el)) == null ? void 0 : r.config;
5543
5546
  n != null && n.onDragend && n.onDragend({
5544
5547
  parent: t.currentParent,
5545
5548
  values: Me(t.currentParent.el, t.currentParent.data),
@@ -5549,10 +5552,10 @@ function Wa(e, t) {
5549
5552
  }), n == null || n.handleEnd(t);
5550
5553
  }
5551
5554
  function Ya(e) {
5552
- var p, d, g, h, f;
5555
+ var p, d, h, g, f;
5553
5556
  e.draggedNode && (e.draggedNode.el.draggable = !0);
5554
- const t = e.draggedNodes.map((m) => m.el), n = e.initialParent.data, r = ae(e), o = (p = Q.get(e.initialParent.el)) == null ? void 0 : p.config, i = r ? o == null ? void 0 : o.synthDropZoneClass : o == null ? void 0 : o.dropZoneClass, c = (d = n == null ? void 0 : n.config) == null ? void 0 : d.longPressClass, u = r ? (g = n == null ? void 0 : n.config) == null ? void 0 : g.synthDragPlaceholderClass : (h = n == null ? void 0 : n.config) == null ? void 0 : h.dragPlaceholderClass, l = e.originalZIndex;
5555
- ae(e) && (e.clonedDraggedNode && e.clonedDraggedNode.remove(), e.longPressTimeout && clearTimeout(e.longPressTimeout)), Yt(e), e.lastScrollDirectionX = void 0, e.lastScrollDirectionY = void 0, e.preventEnter = !1, e.scrollDebounceTimeout && (clearTimeout(e.scrollDebounceTimeout), e.scrollDebounceTimeout = void 0), l !== void 0 && e.draggedNode && (e.draggedNode.el.style.zIndex = l), requestAnimationFrame(() => {
5557
+ const t = e.draggedNodes.map((m) => m.el), n = e.initialParent.data, r = le(e), o = (p = J.get(e.initialParent.el)) == null ? void 0 : p.config, i = r ? o == null ? void 0 : o.synthDropZoneClass : o == null ? void 0 : o.dropZoneClass, c = (d = n == null ? void 0 : n.config) == null ? void 0 : d.longPressClass, u = r ? (h = n == null ? void 0 : n.config) == null ? void 0 : h.synthDragPlaceholderClass : (g = n == null ? void 0 : n.config) == null ? void 0 : g.dragPlaceholderClass, l = e.originalZIndex;
5558
+ le(e) && (e.clonedDraggedNode && e.clonedDraggedNode.remove(), e.longPressTimeout && clearTimeout(e.longPressTimeout)), Yt(e), e.lastScrollDirectionX = void 0, e.lastScrollDirectionY = void 0, e.preventEnter = !1, e.scrollDebounceTimeout && (clearTimeout(e.scrollDebounceTimeout), e.scrollDebounceTimeout = void 0), l !== void 0 && e.draggedNode && (e.draggedNode.el.style.zIndex = l), requestAnimationFrame(() => {
5556
5559
  Ne(t, i), Ne(t, c), Ne(t, u);
5557
5560
  }), Ae(e.draggedNodes, e.currentParent, e), $e(e.currentParent, void 0, e);
5558
5561
  const s = { ...e };
@@ -5607,13 +5610,13 @@ function Qa(e, t, n, r, o, i) {
5607
5610
  "height",
5608
5611
  "boxSizing",
5609
5612
  "overflow"
5610
- ], p = (b, y) => {
5611
- const w = window.getComputedStyle(b);
5613
+ ], p = (v, x) => {
5614
+ const w = window.getComputedStyle(v);
5612
5615
  s.forEach((S) => {
5613
- y.style[S] = w[S];
5616
+ x.style[S] = w[S];
5614
5617
  });
5615
- }, d = (b, y = {}) => {
5616
- Object.assign(b.style, {
5618
+ }, d = (v, x = {}) => {
5619
+ Object.assign(v.style, {
5617
5620
  position: "absolute",
5618
5621
  zIndex: "9999",
5619
5622
  pointerEvents: "none",
@@ -5623,7 +5626,7 @@ function Qa(e, t, n, r, o, i) {
5623
5626
  overflow: "hidden",
5624
5627
  width: `${i.width}px`,
5625
5628
  height: `${i.height}px`,
5626
- ...y
5629
+ ...x
5627
5630
  });
5628
5631
  };
5629
5632
  if (c.synthDragImage)
@@ -5631,14 +5634,14 @@ function Qa(e, t, n, r, o, i) {
5631
5634
  else if (!c.multiDrag || o.length === 1)
5632
5635
  u = e.el.cloneNode(!0), p(e.el, u), u.setAttribute("popover", "manual"), d(u);
5633
5636
  else {
5634
- const b = document.createElement("div");
5635
- b.setAttribute("popover", "manual"), o.forEach((y) => {
5636
- const w = y.el.cloneNode(!0);
5637
- p(y.el, w), w.style.pointerEvents = "none", w.style.margin = "0", b.append(w);
5638
- }), b.style.display = "flex", b.style.flexDirection = "column", b.style.padding = "0", b.style.margin = "0", b.style.position = "absolute", b.style.zIndex = "9999", b.style.pointerEvents = "none", u = b;
5637
+ const v = document.createElement("div");
5638
+ v.setAttribute("popover", "manual"), o.forEach((x) => {
5639
+ const w = x.el.cloneNode(!0);
5640
+ p(x.el, w), w.style.pointerEvents = "none", w.style.margin = "0", v.append(w);
5641
+ }), v.style.display = "flex", v.style.flexDirection = "column", v.style.padding = "0", v.style.margin = "0", v.style.position = "absolute", v.style.zIndex = "9999", v.style.pointerEvents = "none", u = v;
5639
5642
  }
5640
5643
  u.id = "dnd-dragged-node-clone", t.el.appendChild(u), u.showPopover();
5641
- const g = {
5644
+ const h = {
5642
5645
  clonedDraggedEls: [],
5643
5646
  clonedDraggedNode: u,
5644
5647
  synthDragScrolling: !1,
@@ -5655,7 +5658,7 @@ function Qa(e, t, n, r, o, i) {
5655
5658
  l == null ? void 0 : l.offsetX,
5656
5659
  l == null ? void 0 : l.offsetY
5657
5660
  ),
5658
- ...g
5661
+ ...h
5659
5662
  });
5660
5663
  }
5661
5664
  function Ja(e, t, n) {
@@ -5678,7 +5681,7 @@ function or(e, t = !1) {
5678
5681
  function En(e, t, n = !1) {
5679
5682
  const r = je(e);
5680
5683
  t.coordinates.x = r.x, t.coordinates.y = r.y, or(t, n), t.scrollDebounceTimeout && (clearTimeout(t.scrollDebounceTimeout), t.scrollDebounceTimeout = void 0), t.scrollDebounceTimeout = setTimeout(() => {
5681
- ae(t) && St(t.coordinates, e, t);
5684
+ le(t) && St(t.coordinates, e, t);
5682
5685
  }, 16);
5683
5686
  const o = ll(r);
5684
5687
  if (!o) {
@@ -5793,11 +5796,11 @@ function ir(e, t) {
5793
5796
  targetNodes: [e.targetData.node]
5794
5797
  });
5795
5798
  }
5796
- function te(e) {
5799
+ function ne(e) {
5797
5800
  function t(n) {
5798
5801
  const r = ve.get(n);
5799
5802
  if (!r) return;
5800
- const o = Q.get(n.parentNode);
5803
+ const o = J.get(n.parentNode);
5801
5804
  if (o)
5802
5805
  return {
5803
5806
  node: {
@@ -5818,7 +5821,7 @@ function te(e) {
5818
5821
  e: n,
5819
5822
  targetData: r
5820
5823
  },
5821
- T
5824
+ y
5822
5825
  );
5823
5826
  };
5824
5827
  }
@@ -5841,7 +5844,7 @@ function wt(e, t) {
5841
5844
  }
5842
5845
  function pt(e) {
5843
5846
  function t(n) {
5844
- const r = Q.get(n);
5847
+ const r = J.get(n);
5845
5848
  if (r)
5846
5849
  return {
5847
5850
  parent: {
@@ -5858,7 +5861,7 @@ function pt(e) {
5858
5861
  e: n,
5859
5862
  targetData: r
5860
5863
  },
5861
- T
5864
+ y
5862
5865
  );
5863
5866
  };
5864
5867
  }
@@ -5897,32 +5900,32 @@ function Ne(e, t) {
5897
5900
  r.classList.remove(...n);
5898
5901
  continue;
5899
5902
  }
5900
- const o = ve.get(r) || Q.get(r);
5903
+ const o = ve.get(r) || J.get(r);
5901
5904
  if (o)
5902
5905
  for (const i of n)
5903
5906
  o.privateClasses.includes(i) || r.classList.remove(i);
5904
5907
  }
5905
5908
  }
5906
5909
  function kn(e, t, n, r, o) {
5907
- const c = o.axis === "x", u = e === document.scrollingElement, l = c ? "scrollLeft" : "scrollTop", s = c ? "clientWidth" : "clientHeight", p = c ? "offsetWidth" : "offsetHeight", d = c ? "scrollWidth" : "scrollHeight", g = c ? t.clientX : t.clientY, h = c ? r.left : r.top, f = c ? n.overflowX : n.overflowY;
5910
+ const c = o.axis === "x", u = e === document.scrollingElement, l = c ? "scrollLeft" : "scrollTop", s = c ? "clientWidth" : "clientHeight", p = c ? "offsetWidth" : "offsetHeight", d = c ? "scrollWidth" : "scrollHeight", h = c ? t.clientX : t.clientY, g = c ? r.left : r.top, f = c ? n.overflowX : n.overflowY;
5908
5911
  if (u) {
5909
- const m = e[l], b = e[s], y = m > 0, w = m + b < (c ? o.state.rootScrollWidth || 0 : e[d]);
5912
+ const m = e[l], v = e[s], x = m > 0, w = m + v < (c ? o.state.rootScrollWidth || 0 : e[d]);
5910
5913
  return c ? {
5911
- left: y && g < b * 0.075,
5912
- right: w && g > b * (1 - 0.075)
5914
+ left: x && h < v * 0.075,
5915
+ right: w && h > v * (1 - 0.075)
5913
5916
  } : {
5914
- up: y && g < b * 0.075,
5915
- down: w && g > b * (1 - 0.075)
5917
+ up: x && h < v * 0.075,
5918
+ down: w && h > v * (1 - 0.075)
5916
5919
  };
5917
5920
  }
5918
5921
  if ((f === "auto" || f === "scroll") && e !== document.body && e !== document.documentElement) {
5919
- const m = e[d], b = e[p], y = e[l], w = y > 0, S = y < m - b;
5922
+ const m = e[d], v = e[p], x = e[l], w = x > 0, S = x < m - v;
5920
5923
  return c ? {
5921
- left: w && g < h + b * 0.075,
5922
- right: S && g > h + b * (1 - 0.075)
5924
+ left: w && h < g + v * 0.075,
5925
+ right: S && h > g + v * (1 - 0.075)
5923
5926
  } : {
5924
- up: w && g < h + b * 0.075,
5925
- down: S && g > h + b * (1 - 0.075)
5927
+ up: w && h < g + v * 0.075,
5928
+ down: S && h > g + v * (1 - 0.075)
5926
5929
  };
5927
5930
  }
5928
5931
  return c ? { left: !1, right: !1 } : { up: !1, down: !1 };
@@ -5938,12 +5941,12 @@ function al(e, t, n, r) {
5938
5941
  n[l] !== void 0 && (cancelAnimationFrame(n[l]), n[l] = void 0);
5939
5942
  return;
5940
5943
  }
5941
- const p = o ? "scrollLeft" : "scrollTop", d = o ? "clientWidth" : "clientHeight", g = o ? "scrollWidth" : "scrollHeight", h = e[p], f = e[d], m = e[g];
5942
- if (!(i > 0 ? h + f < m : h > 0)) {
5944
+ const p = o ? "scrollLeft" : "scrollTop", d = o ? "clientWidth" : "clientHeight", h = o ? "scrollWidth" : "scrollHeight", g = e[p], f = e[d], m = e[h];
5945
+ if (!(i > 0 ? g + f < m : g > 0)) {
5943
5946
  n[l] = void 0, n[u] = void 0;
5944
5947
  return;
5945
5948
  }
5946
- e[p] += c * i, ae(n) && or(n), n[l] = requestAnimationFrame(s);
5949
+ e[p] += c * i, le(n) && or(n), n[l] = requestAnimationFrame(s);
5947
5950
  };
5948
5951
  n[l] = requestAnimationFrame(s);
5949
5952
  }
@@ -5963,8 +5966,8 @@ function St(e, t, n) {
5963
5966
  const s = window.getComputedStyle(l), p = l.getBoundingClientRect(), d = kn(l, t, s, p, {
5964
5967
  axis: "x",
5965
5968
  state: n
5966
- }), g = kn(l, t, s, p, { axis: "y" });
5967
- (d.left || d.right) && (n.lastScrollContainerX = l, c("x", d.right ? "positive" : "negative", l)), (g.up || g.down) && (n.lastScrollContainerY = l, c("y", g.down ? "positive" : "negative", l));
5969
+ }), h = kn(l, t, s, p, { axis: "y" });
5970
+ (d.left || d.right) && (n.lastScrollContainerX = l, c("x", d.right ? "positive" : "negative", l)), (h.up || h.down) && (n.lastScrollContainerY = l, c("y", h.down ? "positive" : "negative", l));
5968
5971
  };
5969
5972
  if (n.lastScrollContainerX && An(n.lastScrollContainerX, r, o) && u(n.lastScrollContainerX), !i && n.lastScrollContainerY && An(n.lastScrollContainerY, r, o) && u(n.lastScrollContainerY), !i) {
5970
5973
  let l = document.elementFromPoint(r, o);
@@ -5982,14 +5985,14 @@ function ll(e) {
5982
5985
  if (!Ct(t)) return;
5983
5986
  let n, r = !0;
5984
5987
  for (; t && r; ) {
5985
- if (ve.has(t) || Q.has(t)) {
5986
- r = !1, n = Q.has(t);
5988
+ if (ve.has(t) || J.has(t)) {
5989
+ r = !1, n = J.has(t);
5987
5990
  break;
5988
5991
  }
5989
5992
  t = t.parentNode;
5990
5993
  }
5991
5994
  if (n) {
5992
- const o = Q.get(t);
5995
+ const o = J.get(t);
5993
5996
  return o ? {
5994
5997
  parent: {
5995
5998
  el: t,
@@ -5999,7 +6002,7 @@ function ll(e) {
5999
6002
  } else {
6000
6003
  const o = ve.get(t);
6001
6004
  if (!o) return;
6002
- const i = Q.get(t.parentNode);
6005
+ const i = J.get(t.parentNode);
6003
6006
  return i ? {
6004
6007
  node: {
6005
6008
  el: t,
@@ -6057,7 +6060,7 @@ function $n(e) {
6057
6060
  dl(n, pl(o, r));
6058
6061
  }));
6059
6062
  }
6060
- function gl(e, t = {}) {
6063
+ function hl(e, t = {}) {
6061
6064
  const n = qe(null), [r, o] = q(e);
6062
6065
  function i(c = {}) {
6063
6066
  $n({ parent: n, state: [r, o], ...c });
@@ -6071,13 +6074,13 @@ function gl(e, t = {}) {
6071
6074
  const In = {
6072
6075
  border: {
6073
6076
  selected: {
6074
- color: k.palette.blue.B400
6077
+ color: A.palette.blue.B400
6075
6078
  },
6076
6079
  clear: {
6077
- color: k.palette.neutral.N40
6080
+ color: A.palette.neutral.N40
6078
6081
  }
6079
6082
  }
6080
- }, hl = D.ul`
6083
+ }, gl = N.ul`
6081
6084
  list-style: none;
6082
6085
  padding: 0;
6083
6086
  margin: 0;
@@ -6086,7 +6089,7 @@ const In = {
6086
6089
  gap: 12px;
6087
6090
  width: 100%;
6088
6091
  justify-content: ${({ $isEmpty: e }) => e ? "center" : "flex-start"};
6089
- `, fl = D.li`
6092
+ `, fl = N.li`
6090
6093
  & > div {
6091
6094
  border: 1px solid
6092
6095
  ${({ theme: e, $active: t }) => {
@@ -6104,48 +6107,48 @@ const In = {
6104
6107
  highlightFirst: c,
6105
6108
  onMove: u,
6106
6109
  locked: l = !1
6107
- } = e, s = _.useRef(null), p = l ? [s, i] : gl(i, { group: r }), [d, g] = p, [h, f] = _.useState(
6110
+ } = e, s = _.useRef(null), p = l ? [s, i] : hl(i, { group: r }), [d, h] = p, [g, f] = _.useState(
6108
6111
  null
6109
6112
  ), m = _.useRef(i);
6110
6113
  _.useEffect(() => {
6111
6114
  if (l) return;
6112
- const N = (C) => {
6113
- const A = C.detail ?? null;
6114
- f(A);
6115
+ const D = (C) => {
6116
+ const k = C.detail ?? null;
6117
+ f(k);
6115
6118
  };
6116
- return window.addEventListener(Mt, N), () => window.removeEventListener(Mt, N);
6119
+ return window.addEventListener(Mt, D), () => window.removeEventListener(Mt, D);
6117
6120
  }, [l]);
6118
- const b = _.useCallback((N) => {
6121
+ const v = _.useCallback((D) => {
6119
6122
  l || window.dispatchEvent(
6120
- new CustomEvent(Mt, { detail: N })
6123
+ new CustomEvent(Mt, { detail: D })
6121
6124
  );
6122
- }, [l]), y = (N) => {
6125
+ }, [l]), x = (D) => {
6123
6126
  var F;
6124
6127
  if (l) return;
6125
- const C = N.target, A = (F = C == null ? void 0 : C.closest) == null ? void 0 : F.call(C, "li.dnd-item"), L = (A == null ? void 0 : A.getAttribute("data-label")) || null;
6126
- L && (f(L), b(L));
6128
+ const C = D.target, k = (F = C == null ? void 0 : C.closest) == null ? void 0 : F.call(C, "li.dnd-item"), L = (k == null ? void 0 : k.getAttribute("data-label")) || null;
6129
+ L && (f(L), v(L));
6127
6130
  }, w = _.useCallback(() => {
6128
- l || (f(null), b(null));
6129
- }, [b, l]);
6131
+ l || (f(null), v(null));
6132
+ }, [v, l]);
6130
6133
  _.useEffect(() => {
6131
6134
  if (l) return;
6132
- const N = () => w();
6133
- return window.addEventListener("pointerup", N), window.addEventListener("blur", N), () => {
6134
- window.removeEventListener("pointerup", N), window.removeEventListener("blur", N);
6135
+ const D = () => w();
6136
+ return window.addEventListener("pointerup", D), window.addEventListener("blur", D), () => {
6137
+ window.removeEventListener("pointerup", D), window.removeEventListener("blur", D);
6135
6138
  };
6136
6139
  }, [w, l]), _.useEffect(() => {
6137
6140
  if (l) return;
6138
- const N = m.current;
6139
- if (g.length !== N.length && g.length === N.length + 1) {
6140
- const C = new Set(N), A = g.find((L) => !C.has(L)) || null;
6141
- if (A) {
6141
+ const D = m.current;
6142
+ if (h.length !== D.length && h.length === D.length + 1) {
6143
+ const C = new Set(D), k = h.find((L) => !C.has(L)) || null;
6144
+ if (k) {
6142
6145
  const L = n === "left" ? "right" : "left";
6143
- u == null || u({ item: A, from: L, to: n });
6146
+ u == null || u({ item: k, from: L, to: n });
6144
6147
  }
6145
6148
  }
6146
- m.current = g;
6147
- }, [g, n, u, l]);
6148
- const S = g.length === 0;
6149
+ m.current = h;
6150
+ }, [h, n, u, l]);
6151
+ const S = h.length === 0;
6149
6152
  return /* @__PURE__ */ a(
6150
6153
  Be,
6151
6154
  {
@@ -6154,10 +6157,10 @@ const In = {
6154
6157
  height: "-webkit-fill-available",
6155
6158
  spacing: "wide",
6156
6159
  children: /* @__PURE__ */ a(
6157
- hl,
6160
+ gl,
6158
6161
  {
6159
6162
  ref: d,
6160
- onPointerDownCapture: l ? void 0 : y,
6163
+ onPointerDownCapture: l ? void 0 : x,
6161
6164
  onPointerUpCapture: l ? void 0 : w,
6162
6165
  onPointerCancelCapture: l ? void 0 : w,
6163
6166
  $isEmpty: S,
@@ -6165,7 +6168,7 @@ const In = {
6165
6168
  "aria-disabled": l,
6166
6169
  "data-locked": l || void 0,
6167
6170
  children: S ? /* @__PURE__ */ a(
6168
- de,
6171
+ pe,
6169
6172
  {
6170
6173
  background: !0,
6171
6174
  borderRadius: "8px",
@@ -6174,28 +6177,28 @@ const In = {
6174
6177
  justifyContent: "center",
6175
6178
  children: /* @__PURE__ */ a(R, { type: "label", size: "medium", appearance: "gray", padding: "12px", children: t || "No hay elementos en esta lista" })
6176
6179
  }
6177
- ) : g.map((N, C) => {
6178
- const A = !l && h === N;
6180
+ ) : h.map((D, C) => {
6181
+ const k = !l && g === D;
6179
6182
  return /* @__PURE__ */ a(
6180
6183
  fl,
6181
6184
  {
6182
- className: `dnd-item${A ? " is-dragging" : ""}`,
6183
- "data-label": N,
6185
+ className: `dnd-item${k ? " is-dragging" : ""}`,
6186
+ "data-label": D,
6184
6187
  "data-first": !!(c && C === 0) || void 0,
6185
- $active: A,
6186
- children: /* @__PURE__ */ a(de, { border: !0, borderRadius: "8px", width: "100%", children: /* @__PURE__ */ a(
6188
+ $active: k,
6189
+ children: /* @__PURE__ */ a(pe, { border: !0, borderRadius: "8px", width: "100%", children: /* @__PURE__ */ a(
6187
6190
  R,
6188
6191
  {
6189
6192
  type: "title",
6190
- appearance: A ? "primary" : "dark",
6191
- weight: A ? "bold" : "normal",
6193
+ appearance: k ? "primary" : "dark",
6194
+ weight: k ? "bold" : "normal",
6192
6195
  size: "medium",
6193
6196
  padding: "6px 12px",
6194
- children: N
6197
+ children: D
6195
6198
  }
6196
6199
  ) })
6197
6200
  },
6198
- N
6201
+ D
6199
6202
  );
6200
6203
  })
6201
6204
  }
@@ -6206,8 +6209,8 @@ const In = {
6206
6209
  const { group: t = "clients", left: n, right: r, onMove: o, locked: i = !1 } = e, c = (u) => {
6207
6210
  i || o == null || o(u);
6208
6211
  };
6209
- return /* @__PURE__ */ v(
6210
- x,
6212
+ return /* @__PURE__ */ b(
6213
+ T,
6211
6214
  {
6212
6215
  justifyContent: "space-between",
6213
6216
  alignItems: "start",
@@ -6243,7 +6246,7 @@ const In = {
6243
6246
  ]
6244
6247
  }
6245
6248
  );
6246
- }, ml = D.div`
6249
+ }, ml = N.div`
6247
6250
  & > button {
6248
6251
  height: 66px;
6249
6252
  min-width: 66px;
@@ -6261,7 +6264,7 @@ const In = {
6261
6264
  }
6262
6265
  }
6263
6266
  }
6264
- `, Ds = (e) => /* @__PURE__ */ a(ml, { children: /* @__PURE__ */ a(Y, { ...e }) }), bl = D.div`
6267
+ `, Ds = (e) => /* @__PURE__ */ a(ml, { children: /* @__PURE__ */ a(Y, { ...e }) }), bl = N.div`
6265
6268
  display: flex;
6266
6269
  justify-content: space-between;
6267
6270
  align-items: center;
@@ -6292,7 +6295,7 @@ const In = {
6292
6295
  }
6293
6296
  `, Ns = (e) => {
6294
6297
  const { handleBack: t, handleNext: n, disabledBack: r, disabledNext: o, textValues: i } = e;
6295
- return /* @__PURE__ */ v(bl, { children: [
6298
+ return /* @__PURE__ */ b(bl, { children: [
6296
6299
  /* @__PURE__ */ a(
6297
6300
  Y,
6298
6301
  {
@@ -6317,15 +6320,15 @@ const In = {
6317
6320
  )
6318
6321
  ] });
6319
6322
  }, Es = (e) => Object.values(e).flat(), ks = (e, t) => {
6320
- const n = Ce(e);
6323
+ const n = xe(e);
6321
6324
  return Object.fromEntries(
6322
6325
  Object.entries(n).map(([r, o]) => [r, o.map(t)])
6323
6326
  );
6324
6327
  }, vl = (e) => Object.entries(e).map(([t, n]) => ({
6325
6328
  ConditionGroupId: t,
6326
- conditionsThatEstablishesTheDecision: ht(n)
6329
+ conditionsThatEstablishesTheDecision: gt(n)
6327
6330
  })), As = (e) => {
6328
- const t = Ce(e);
6331
+ const t = xe(e);
6329
6332
  return {
6330
6333
  ...e,
6331
6334
  conditionGroups: vl(t),
@@ -6408,7 +6411,7 @@ function an(e, t) {
6408
6411
  const El = {
6409
6412
  1: "1fr",
6410
6413
  2: "1fr 1fr"
6411
- }, kl = (e, t) => t ? "1fr" : El[e.length] || `repeat(${Math.ceil(e.length / 2)}, 1fr)`, Al = (e, t) => !t && e.length <= 2 ? "1fr" : t ? `repeat(${Math.ceil(e.length)}, 1fr)` : `repeat(${Math.ceil(e.length / 2)}, 1fr)`, $l = D.div`
6414
+ }, kl = (e, t) => t ? "1fr" : El[e.length] || `repeat(${Math.ceil(e.length / 2)}, 1fr)`, Al = (e, t) => !t && e.length <= 2 ? "1fr" : t ? `repeat(${Math.ceil(e.length)}, 1fr)` : `repeat(${Math.ceil(e.length / 2)}, 1fr)`, $l = N.div`
6412
6415
  display: flex;
6413
6416
  align-items: center;
6414
6417
  padding: 0px 4px 0px 2px;
@@ -6416,21 +6419,21 @@ const El = {
6416
6419
  border-radius: 4px;
6417
6420
  background-color: ${({ theme: e }) => {
6418
6421
  var t;
6419
- return ((t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral.N30) ?? k.palette.neutral.N30;
6422
+ return ((t = e == null ? void 0 : e.palette) == null ? void 0 : t.neutral.N30) ?? A.palette.neutral.N30;
6420
6423
  }};
6421
6424
  cursor: pointer;
6422
6425
  `;
6423
- var ce = /* @__PURE__ */ ((e) => (e.DANGER = "danger", e.DARK = "dark", e.GRAY = "gray", e.HELP = "help", e.LIGHT = "light", e.PRIMARY = "primary", e.SUCCESS = "success", e.WARNING = "warning", e))(ce || {});
6426
+ var he = /* @__PURE__ */ ((e) => (e.DANGER = "danger", e.DARK = "dark", e.GRAY = "gray", e.HELP = "help", e.LIGHT = "light", e.PRIMARY = "primary", e.SUCCESS = "success", e.WARNING = "warning", e))(he || {});
6424
6427
  const Il = (e) => {
6425
6428
  const { onClick: t, icon: n, value: r } = e;
6426
- return /* @__PURE__ */ v($l, { onClick: t, children: [
6429
+ return /* @__PURE__ */ b($l, { onClick: t, children: [
6427
6430
  n && /* @__PURE__ */ a(
6428
- x,
6431
+ T,
6429
6432
  {
6430
6433
  justifyContent: "center",
6431
6434
  alignItems: "center",
6432
6435
  padding: "2px",
6433
- children: /* @__PURE__ */ a(B, { icon: n, appearance: ce.DARK })
6436
+ children: /* @__PURE__ */ a(B, { icon: n, appearance: he.DARK })
6434
6437
  }
6435
6438
  ),
6436
6439
  /* @__PURE__ */ a(R, { size: "small", as: "span", children: r })
@@ -6473,7 +6476,7 @@ const Fl = (e) => {
6473
6476
  R,
6474
6477
  {
6475
6478
  size: c,
6476
- appearance: ce.GRAY,
6479
+ appearance: he.GRAY,
6477
6480
  textAlign: u,
6478
6481
  as: "span",
6479
6482
  children: l
@@ -6482,71 +6485,71 @@ const Fl = (e) => {
6482
6485
  }, jt = {
6483
6486
  light: {
6484
6487
  border: {
6485
- color: k.palette.neutral.N0
6488
+ color: A.palette.neutral.N0
6486
6489
  },
6487
6490
  background: {
6488
- color: k.palette.neutral.N0
6491
+ color: A.palette.neutral.N0
6489
6492
  },
6490
6493
  boxShadow: {
6491
- color: k.palette.neutral.N0
6494
+ color: A.palette.neutral.N0
6492
6495
  }
6493
6496
  },
6494
6497
  gray: {
6495
6498
  border: {
6496
- color: k.palette.neutral.N10
6499
+ color: A.palette.neutral.N10
6497
6500
  },
6498
6501
  background: {
6499
- color: k.palette.neutral.N10
6502
+ color: A.palette.neutral.N10
6500
6503
  },
6501
6504
  boxShadow: {
6502
- color: k.palette.neutral.N10
6505
+ color: A.palette.neutral.N10
6503
6506
  }
6504
6507
  },
6505
6508
  dark: {
6506
6509
  border: {
6507
- color: k.palette.neutral.N40
6510
+ color: A.palette.neutral.N40
6508
6511
  },
6509
6512
  background: {
6510
- color: k.palette.neutral.N20
6513
+ color: A.palette.neutral.N20
6511
6514
  },
6512
6515
  boxShadow: {
6513
- color: k.palette.neutral.N40
6516
+ color: A.palette.neutral.N40
6514
6517
  }
6515
6518
  },
6516
6519
  help: {
6517
6520
  border: {
6518
- color: k.palette.purple.P50
6521
+ color: A.palette.purple.P50
6519
6522
  },
6520
6523
  background: {
6521
- color: k.palette.purple.P50
6524
+ color: A.palette.purple.P50
6522
6525
  },
6523
6526
  boxShadow: {
6524
- color: k.palette.purple.P50
6527
+ color: A.palette.purple.P50
6525
6528
  }
6526
6529
  },
6527
6530
  warning: {
6528
6531
  border: {
6529
- color: k.palette.yellow.Y50
6532
+ color: A.palette.yellow.Y50
6530
6533
  },
6531
6534
  background: {
6532
- color: k.palette.yellow.Y50
6535
+ color: A.palette.yellow.Y50
6533
6536
  },
6534
6537
  boxShadow: {
6535
- color: k.palette.yellow.Y50
6538
+ color: A.palette.yellow.Y50
6536
6539
  }
6537
6540
  },
6538
6541
  danger: {
6539
6542
  border: {
6540
- color: k.palette.red.R400
6543
+ color: A.palette.red.R400
6541
6544
  },
6542
6545
  background: {
6543
- color: k.palette.red.R50
6546
+ color: A.palette.red.R50
6544
6547
  },
6545
6548
  boxShadow: {
6546
- color: k.palette.red.R50
6549
+ color: A.palette.red.R50
6547
6550
  }
6548
6551
  }
6549
- }, Ll = D.div`
6552
+ }, Ll = N.div`
6550
6553
  display: flex;
6551
6554
  justify-content: ${({ $justifyContent: e }) => e};
6552
6555
  align-items: ${({ $alignItems: e }) => e};
@@ -6591,17 +6594,17 @@ const Fl = (e) => {
6591
6594
  borderRadius: s,
6592
6595
  gap: p,
6593
6596
  margin: d = "0px",
6594
- padding: g = "0px",
6595
- backgroundColor: h = ce.LIGHT,
6597
+ padding: h = "0px",
6598
+ backgroundColor: g = he.LIGHT,
6596
6599
  boxSizing: f,
6597
- borderColor: m = ce.LIGHT,
6598
- overflowY: b,
6599
- overflowX: y,
6600
+ borderColor: m = he.LIGHT,
6601
+ overflowY: v,
6602
+ overflowX: x,
6600
6603
  boxShadow: w,
6601
6604
  minHeight: S,
6602
- maxHeight: N,
6605
+ maxHeight: D,
6603
6606
  maxWidth: C,
6604
- minWidth: A
6607
+ minWidth: k
6605
6608
  } = e;
6606
6609
  return /* @__PURE__ */ a(
6607
6610
  Ll,
@@ -6615,18 +6618,18 @@ const Fl = (e) => {
6615
6618
  $wrap: n,
6616
6619
  $gap: p,
6617
6620
  $margin: d,
6618
- $padding: g,
6619
- $backgroundColor: h,
6621
+ $padding: h,
6622
+ $backgroundColor: g,
6620
6623
  $boxSizing: f,
6621
6624
  $borderColor: m,
6622
6625
  $borderRadius: s,
6623
- $overflowY: b,
6624
- $overflowX: y,
6626
+ $overflowY: v,
6627
+ $overflowX: x,
6625
6628
  $boxShadow: w,
6626
6629
  $minHeight: S,
6627
- $maxHeight: N,
6630
+ $maxHeight: D,
6628
6631
  $maxWidth: C,
6629
- $minWidth: A,
6632
+ $minWidth: k,
6630
6633
  children: t
6631
6634
  }
6632
6635
  );
@@ -6641,7 +6644,7 @@ const Fl = (e) => {
6641
6644
  onClickButton: u,
6642
6645
  withTag: l,
6643
6646
  children: s
6644
- } = e, p = ie("(max-width: 1281px)");
6647
+ } = e, p = ae("(max-width: 1281px)");
6645
6648
  return /* @__PURE__ */ a(
6646
6649
  ln,
6647
6650
  {
@@ -6649,9 +6652,9 @@ const Fl = (e) => {
6649
6652
  borderRadius: "8px",
6650
6653
  padding: p ? "8px" : "6px 16px",
6651
6654
  boxSizing: "border-box",
6652
- backgroundColor: ce.GRAY,
6653
- children: /* @__PURE__ */ v(
6654
- we,
6655
+ backgroundColor: he.GRAY,
6656
+ children: /* @__PURE__ */ b(
6657
+ Se,
6655
6658
  {
6656
6659
  templateColumns: c === "column" ? "1fr" : "auto 1fr",
6657
6660
  templateRows: "auto auto",
@@ -6666,14 +6669,14 @@ const Fl = (e) => {
6666
6669
  {
6667
6670
  type: "label",
6668
6671
  size: p ? "small" : "medium",
6669
- appearance: ce.DARK,
6672
+ appearance: he.DARK,
6670
6673
  weight: "bold",
6671
6674
  as: "span",
6672
6675
  children: t
6673
6676
  }
6674
6677
  ),
6675
6678
  /* @__PURE__ */ a(
6676
- x,
6679
+ T,
6677
6680
  {
6678
6681
  alignItems: "center",
6679
6682
  justifyContent: c === "column" ? "flex-start" : "flex-end",
@@ -6709,7 +6712,7 @@ function jl(e) {
6709
6712
  const { ctx: t, node: n } = e, r = n.layout ?? {}, o = an(n.entries, t.data);
6710
6713
  if (!o || o.length === 0) return null;
6711
6714
  const i = /* @__PURE__ */ a(
6712
- we,
6715
+ Se,
6713
6716
  {
6714
6717
  width: "100%",
6715
6718
  height: "auto",
@@ -6738,7 +6741,7 @@ function jl(e) {
6738
6741
  direction: "column",
6739
6742
  borderRadius: "8px",
6740
6743
  width: "100%",
6741
- backgroundColor: ce.LIGHT,
6744
+ backgroundColor: he.LIGHT,
6742
6745
  boxSizing: "initial",
6743
6746
  children: i
6744
6747
  }
@@ -6746,7 +6749,7 @@ function jl(e) {
6746
6749
  }
6747
6750
  function _l(e) {
6748
6751
  const { ctx: t, node: n, renderNode: r } = e, { children: o } = n;
6749
- return /* @__PURE__ */ a(x, { direction: "column", width: "100%", gap: "16px", children: o.map((i) => r(i, t)) });
6752
+ return /* @__PURE__ */ a(T, { direction: "column", width: "100%", gap: "16px", children: o.map((i) => r(i, t)) });
6750
6753
  }
6751
6754
  function Vl(e) {
6752
6755
  const n = (e.split(".").pop() ?? e).replace(/([A-Z])/g, " $1").trim();
@@ -6794,9 +6797,9 @@ function Gl(e, t) {
6794
6797
  if (!(p && u(s))) {
6795
6798
  if (Array.isArray(s)) {
6796
6799
  if (s.length === 0) return;
6797
- const g = Pl(s);
6798
- if (!g) return;
6799
- c(p, g);
6800
+ const h = Pl(s);
6801
+ if (!h) return;
6802
+ c(p, h);
6800
6803
  return;
6801
6804
  }
6802
6805
  if (me(s)) {
@@ -6805,16 +6808,16 @@ function Gl(e, t) {
6805
6808
  return;
6806
6809
  }
6807
6810
  i.add(s);
6808
- const g = Object.entries(s);
6809
- if (g.length === 0) {
6811
+ const h = Object.entries(s);
6812
+ if (h.length === 0) {
6810
6813
  p || c(p, "");
6811
6814
  return;
6812
6815
  }
6813
- for (const [h, f] of g) {
6816
+ for (const [g, f] of h) {
6814
6817
  if (!me(f) && !Array.isArray(f) && u(f))
6815
6818
  continue;
6816
- const m = n.has(h) ? p : Ul(p, h);
6817
- me(f) || Array.isArray(f) ? l(f, m, d + 1) : c(m || h, f);
6819
+ const m = n.has(g) ? p : Ul(p, g);
6820
+ me(f) || Array.isArray(f) ? l(f, m, d + 1) : c(m || g, f);
6818
6821
  }
6819
6822
  return;
6820
6823
  }
@@ -6841,7 +6844,7 @@ function Ln(e, t = 2) {
6841
6844
  return String(e);
6842
6845
  }
6843
6846
  }
6844
- function se(e) {
6847
+ function ue(e) {
6845
6848
  return e == null ? "" : Array.isArray(e) ? e.map((t) => t == null ? "" : typeof t == "string" ? t : typeof t == "number" || typeof t == "boolean" ? String(t) : Ln(t, 0)).filter((t) => !!String(t).trim()).join(", ") : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : Ln(e, 2);
6846
6849
  }
6847
6850
  function Xt(e) {
@@ -6849,12 +6852,12 @@ function Xt(e) {
6849
6852
  skipKeys: ["values"],
6850
6853
  maxDepth: 4
6851
6854
  }), o = n || r.length === 1 ? "1fr" : "repeat(2, 1fr)";
6852
- return /* @__PURE__ */ a(we, { width: "100%", templateColumns: o, gap: "8px", autoRows: "unset", children: r.map((i) => /* @__PURE__ */ a(
6855
+ return /* @__PURE__ */ a(Se, { width: "100%", templateColumns: o, gap: "8px", autoRows: "unset", children: r.map((i) => /* @__PURE__ */ a(
6853
6856
  sn,
6854
6857
  {
6855
6858
  direction: "column",
6856
6859
  label: i.label,
6857
- value: se(i.value)
6860
+ value: ue(i.value)
6858
6861
  },
6859
6862
  i.id
6860
6863
  )) });
@@ -6872,23 +6875,23 @@ function Bl(e) {
6872
6875
  const d = an(p.value, t.data);
6873
6876
  if (Hl(d))
6874
6877
  return null;
6875
- const g = p.render ? p.render(d, t) : String(d ?? ""), h = !!p.withTag;
6878
+ const h = p.render ? p.render(d, t) : String(d ?? ""), g = !!p.withTag;
6876
6879
  return {
6877
6880
  item: p,
6878
- valueNode: g,
6879
- shouldUseChildren: h
6881
+ valueNode: h,
6882
+ shouldUseChildren: g
6880
6883
  };
6881
6884
  }).filter(Boolean);
6882
6885
  if (o.length === 0)
6883
6886
  return null;
6884
- const c = o.length === 1 ? "1fr" : t.isMobile ? ((l = r.columns) == null ? void 0 : l.mobile) ?? "1fr" : ((s = r.columns) == null ? void 0 : s.desktop) ?? "repeat(2, 1fr)", u = /* @__PURE__ */ a(we, { width: "100%", templateColumns: c, gap: "8px 16px", autoRows: "unset", children: o.map(({ item: p, valueNode: d, shouldUseChildren: g }) => /* @__PURE__ */ a(
6887
+ const c = o.length === 1 ? "1fr" : t.isMobile ? ((l = r.columns) == null ? void 0 : l.mobile) ?? "1fr" : ((s = r.columns) == null ? void 0 : s.desktop) ?? "repeat(2, 1fr)", u = /* @__PURE__ */ a(Se, { width: "100%", templateColumns: c, gap: "8px 16px", autoRows: "unset", children: o.map(({ item: p, valueNode: d, shouldUseChildren: h }) => /* @__PURE__ */ a(
6885
6888
  sn,
6886
6889
  {
6887
6890
  direction: "column",
6888
6891
  label: p.label,
6889
- value: g ? "" : d,
6892
+ value: h ? "" : d,
6890
6893
  withTag: p.withTag,
6891
- children: g ? d : null
6894
+ children: h ? d : null
6892
6895
  },
6893
6896
  p.id
6894
6897
  )) });
@@ -6898,7 +6901,7 @@ function Bl(e) {
6898
6901
  direction: "column",
6899
6902
  borderRadius: "8px",
6900
6903
  width: "100%",
6901
- backgroundColor: ce.LIGHT,
6904
+ backgroundColor: he.LIGHT,
6902
6905
  boxSizing: "initial",
6903
6906
  children: u
6904
6907
  }
@@ -6922,7 +6925,7 @@ function Mn(e, t, n) {
6922
6925
  const r = n[e.type];
6923
6926
  return r ? /* @__PURE__ */ a(_.Fragment, { children: r(e, t) }, e.id) : /* @__PURE__ */ a(Xt, { value: e }, e.id);
6924
6927
  }
6925
- const Yl = D.div`
6928
+ const Yl = N.div`
6926
6929
  display: flex;
6927
6930
  padding: 12px 8px;
6928
6931
  flex-direction: column;
@@ -6935,9 +6938,9 @@ const Yl = D.div`
6935
6938
  border: 1px solid
6936
6939
  ${({ theme: e }) => {
6937
6940
  var t, n;
6938
- return ((n = (t = e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N40) ?? k.palette.neutral.N40;
6941
+ return ((n = (t = e.palette) == null ? void 0 : t.neutral) == null ? void 0 : n.N40) ?? A.palette.neutral.N40;
6939
6942
  }};
6940
- `, Xl = D.div`
6943
+ `, Xl = N.div`
6941
6944
  display: flex;
6942
6945
  justify-content: space-between;
6943
6946
  align-items: center;
@@ -6945,8 +6948,8 @@ const Yl = D.div`
6945
6948
  cursor: pointer;
6946
6949
  `, Ql = (e) => {
6947
6950
  const { title: t, defaultOpen: n = !0, children: r } = e, [o, i] = q(n);
6948
- return /* @__PURE__ */ v(Yl, { children: [
6949
- /* @__PURE__ */ v(Xl, { onClick: () => {
6951
+ return /* @__PURE__ */ b(Yl, { children: [
6952
+ /* @__PURE__ */ b(Xl, { onClick: () => {
6950
6953
  i(!o);
6951
6954
  }, children: [
6952
6955
  /* @__PURE__ */ a(
@@ -6954,7 +6957,7 @@ const Yl = D.div`
6954
6957
  {
6955
6958
  type: "label",
6956
6959
  size: "large",
6957
- appearance: ce.DARK,
6960
+ appearance: he.DARK,
6958
6961
  weight: "bold",
6959
6962
  ellipsis: !0,
6960
6963
  children: t
@@ -6964,29 +6967,29 @@ const Yl = D.div`
6964
6967
  B,
6965
6968
  {
6966
6969
  icon: o ? /* @__PURE__ */ a(br, {}) : /* @__PURE__ */ a(vr, {}),
6967
- appearance: ce.DARK,
6970
+ appearance: he.DARK,
6968
6971
  spacing: "compact",
6969
6972
  cursorHover: !0,
6970
6973
  size: "24px"
6971
6974
  }
6972
6975
  )
6973
6976
  ] }),
6974
- o && /* @__PURE__ */ v(V, { children: [
6977
+ o && /* @__PURE__ */ b(V, { children: [
6975
6978
  /* @__PURE__ */ a(W, { dashed: !0 }),
6976
6979
  r
6977
6980
  ] })
6978
6981
  ] });
6979
6982
  };
6980
- function ne(e) {
6983
+ function re(e) {
6981
6984
  const t = e.replace(/([A-Z])/g, " $1").trim();
6982
6985
  return t.charAt(0).toUpperCase() + t.slice(1);
6983
6986
  }
6984
6987
  function jn(e, t) {
6985
6988
  return Object.keys(t).map((r) => ({
6986
6989
  id: `${e}.${r}`,
6987
- label: ne(r),
6990
+ label: re(r),
6988
6991
  value: `${e}.${r}`,
6989
- render: (o) => se(o)
6992
+ render: (o) => ue(o)
6990
6993
  }));
6991
6994
  }
6992
6995
  function Jl(e) {
@@ -7009,7 +7012,7 @@ function Jl(e) {
7009
7012
  id: "value",
7010
7013
  label: "Valor",
7011
7014
  value: () => e,
7012
- render: (o) => se(o)
7015
+ render: (o) => ue(o)
7013
7016
  }
7014
7017
  ]
7015
7018
  },
@@ -7036,7 +7039,7 @@ function Jl(e) {
7036
7039
  entries: () => e,
7037
7040
  keyOf: (o, i) => String(i ?? Math.random()),
7038
7041
  labelOf: (o, i) => `Item ${i ?? ""}`,
7039
- valueOf: (o) => se(o)
7042
+ valueOf: (o) => ue(o)
7040
7043
  },
7041
7044
  {
7042
7045
  id: "json-fallback",
@@ -7053,7 +7056,7 @@ function Jl(e) {
7053
7056
  if (!me(u) && !Array.isArray(u))
7054
7057
  return {
7055
7058
  id: c,
7056
- name: ne(o),
7059
+ name: re(o),
7057
7060
  nodes: [
7058
7061
  {
7059
7062
  id: `${o}-primitive`,
@@ -7065,9 +7068,9 @@ function Jl(e) {
7065
7068
  items: [
7066
7069
  {
7067
7070
  id: `${o}.value`,
7068
- label: ne(o),
7071
+ label: re(o),
7069
7072
  value: (l) => l == null ? void 0 : l[o],
7070
- render: (l) => se(l)
7073
+ render: (l) => ue(l)
7071
7074
  }
7072
7075
  ]
7073
7076
  }
@@ -7076,9 +7079,9 @@ function Jl(e) {
7076
7079
  if (Array.isArray(u))
7077
7080
  return u.some((s) => me(s)) ? {
7078
7081
  id: c,
7079
- name: ne(o),
7082
+ name: re(o),
7080
7083
  nodes: u.map((s, p) => {
7081
- const g = Object.keys(s);
7084
+ const h = Object.keys(s);
7082
7085
  return {
7083
7086
  id: `${o}-item-${p}`,
7084
7087
  type: "attributesGrid",
@@ -7086,20 +7089,20 @@ function Jl(e) {
7086
7089
  variant: "lightCard",
7087
7090
  columns: { mobile: "1fr", desktop: "repeat(2, 1fr)" }
7088
7091
  },
7089
- items: g.map((h) => ({
7090
- id: `${o}[${p}].${h}`,
7091
- label: ne(h),
7092
+ items: h.map((g) => ({
7093
+ id: `${o}[${p}].${g}`,
7094
+ label: re(g),
7092
7095
  value: (f) => {
7093
- var m, b;
7094
- return (b = (m = f == null ? void 0 : f[o]) == null ? void 0 : m[p]) == null ? void 0 : b[h];
7096
+ var m, v;
7097
+ return (v = (m = f == null ? void 0 : f[o]) == null ? void 0 : m[p]) == null ? void 0 : v[g];
7095
7098
  },
7096
- render: (f) => se(f)
7099
+ render: (f) => ue(f)
7097
7100
  }))
7098
7101
  };
7099
7102
  })
7100
7103
  } : {
7101
7104
  id: c,
7102
- name: ne(o),
7105
+ name: re(o),
7103
7106
  nodes: [
7104
7107
  {
7105
7108
  id: `${o}-entries`,
@@ -7109,7 +7112,7 @@ function Jl(e) {
7109
7112
  entries: (s) => s == null ? void 0 : s[o],
7110
7113
  keyOf: (s, p) => (s == null ? void 0 : s.id) ?? (s == null ? void 0 : s.businessRuleId) ?? String(p ?? Math.random()),
7111
7114
  labelOf: (s, p) => (s == null ? void 0 : s.decisionId) ?? (s == null ? void 0 : s.label) ?? `Item ${p ?? ""}`,
7112
- valueOf: (s) => se((s == null ? void 0 : s.value) ?? s)
7115
+ valueOf: (s) => ue((s == null ? void 0 : s.value) ?? s)
7113
7116
  }
7114
7117
  ]
7115
7118
  };
@@ -7117,66 +7120,66 @@ function Jl(e) {
7117
7120
  const l = u.values;
7118
7121
  return Array.isArray(l) ? l.length > 0 && l.every((d) => me(d) && "labelName" in d && "value" in d) ? {
7119
7122
  id: c,
7120
- name: ne(o),
7123
+ name: re(o),
7121
7124
  nodes: [
7122
7125
  {
7123
7126
  id: `${o}-values`,
7124
7127
  type: "entriesGrid",
7125
7128
  layout: { variant: "lightCard" },
7126
7129
  when: (d) => {
7127
- var g;
7128
- return Array.isArray((g = d == null ? void 0 : d[o]) == null ? void 0 : g.values) && d[o].values.length > 0;
7130
+ var h;
7131
+ return Array.isArray((h = d == null ? void 0 : d[o]) == null ? void 0 : h.values) && d[o].values.length > 0;
7129
7132
  },
7130
7133
  entries: `${o}.values`,
7131
- keyOf: (d, g) => (d == null ? void 0 : d.businessRuleId) ?? (d == null ? void 0 : d.id) ?? String(g ?? Math.random()),
7134
+ keyOf: (d, h) => (d == null ? void 0 : d.businessRuleId) ?? (d == null ? void 0 : d.id) ?? String(h ?? Math.random()),
7132
7135
  labelOf: (d) => (d == null ? void 0 : d.decisionId) ?? (d == null ? void 0 : d.labelName) ?? "",
7133
- valueOf: (d) => "labelName" in (d ?? {}) && "value" in (d ?? {}) ? `${String(d.labelName)}: ${se(d.value)}` : se(d)
7136
+ valueOf: (d) => "labelName" in (d ?? {}) && "value" in (d ?? {}) ? `${String(d.labelName)}: ${ue(d.value)}` : ue(d)
7134
7137
  }
7135
7138
  ]
7136
7139
  } : l.some((d) => me(d)) ? {
7137
7140
  id: c,
7138
- name: ne(o),
7139
- nodes: l.map((d, g) => {
7141
+ name: re(o),
7142
+ nodes: l.map((d, h) => {
7140
7143
  const f = Object.keys(d);
7141
7144
  return {
7142
- id: `${o}-values-item-${g}`,
7145
+ id: `${o}-values-item-${h}`,
7143
7146
  type: "attributesGrid",
7144
7147
  layout: {
7145
7148
  variant: "lightCard",
7146
7149
  columns: { mobile: "1fr", desktop: "repeat(2, 1fr)" }
7147
7150
  },
7148
7151
  items: f.map((m) => ({
7149
- id: `${o}.values[${g}].${m}`,
7150
- label: ne(m),
7151
- value: (b) => {
7152
- var y, w, S;
7153
- return (S = (w = (y = b == null ? void 0 : b[o]) == null ? void 0 : y.values) == null ? void 0 : w[g]) == null ? void 0 : S[m];
7152
+ id: `${o}.values[${h}].${m}`,
7153
+ label: re(m),
7154
+ value: (v) => {
7155
+ var x, w, S;
7156
+ return (S = (w = (x = v == null ? void 0 : v[o]) == null ? void 0 : x.values) == null ? void 0 : w[h]) == null ? void 0 : S[m];
7154
7157
  },
7155
- render: (b) => se(b)
7158
+ render: (v) => ue(v)
7156
7159
  }))
7157
7160
  };
7158
7161
  })
7159
7162
  } : {
7160
7163
  id: c,
7161
- name: ne(o),
7164
+ name: re(o),
7162
7165
  nodes: [
7163
7166
  {
7164
7167
  id: `${o}-values`,
7165
7168
  type: "entriesGrid",
7166
7169
  layout: { variant: "lightCard" },
7167
7170
  when: (d) => {
7168
- var g;
7169
- return Array.isArray((g = d == null ? void 0 : d[o]) == null ? void 0 : g.values) && d[o].values.length > 0;
7171
+ var h;
7172
+ return Array.isArray((h = d == null ? void 0 : d[o]) == null ? void 0 : h.values) && d[o].values.length > 0;
7170
7173
  },
7171
7174
  entries: `${o}.values`,
7172
- keyOf: (d, g) => String(g ?? Math.random()),
7173
- labelOf: (d, g) => `Item ${g ?? ""}`,
7174
- valueOf: (d) => se(d)
7175
+ keyOf: (d, h) => String(h ?? Math.random()),
7176
+ labelOf: (d, h) => `Item ${h ?? ""}`,
7177
+ valueOf: (d) => ue(d)
7175
7178
  }
7176
7179
  ]
7177
7180
  } : me(l) ? {
7178
7181
  id: c,
7179
- name: ne(o),
7182
+ name: re(o),
7180
7183
  nodes: [
7181
7184
  {
7182
7185
  id: `${o}-values`,
@@ -7197,7 +7200,7 @@ function Jl(e) {
7197
7200
  ]
7198
7201
  } : {
7199
7202
  id: c,
7200
- name: ne(o),
7203
+ name: re(o),
7201
7204
  nodes: [
7202
7205
  {
7203
7206
  id: `${o}-values`,
@@ -7215,7 +7218,7 @@ function Jl(e) {
7215
7218
  id: `${o}.values`,
7216
7219
  label: "values",
7217
7220
  value: `${o}.values`,
7218
- render: (s) => se(s)
7221
+ render: (s) => ue(s)
7219
7222
  }
7220
7223
  ]
7221
7224
  }
@@ -7224,7 +7227,7 @@ function Jl(e) {
7224
7227
  }
7225
7228
  return {
7226
7229
  id: c,
7227
- name: ne(o),
7230
+ name: re(o),
7228
7231
  nodes: [
7229
7232
  {
7230
7233
  id: `${o}-object`,
@@ -7245,27 +7248,27 @@ function Zl(e, t) {
7245
7248
  }
7246
7249
  function $s(e) {
7247
7250
  const { data: t, isMobile: n, isTablet: r, onBackStep: o, schema: i } = e, c = Zl(t, i), u = { data: t, isMobile: n, isTablet: r }, l = Pn(() => ql(Mn), []), s = c.steps.map((p) => {
7248
- const d = p.nodes.map((g) => Mn(g, u, l)).filter((g) => g != null && g !== !1);
7251
+ const d = p.nodes.map((h) => Mn(h, u, l)).filter((h) => h != null && h !== !1);
7249
7252
  return {
7250
7253
  ...p,
7251
7254
  renderedNodes: d
7252
7255
  };
7253
7256
  }).filter((p) => p.renderedNodes.length > 0);
7254
- return /* @__PURE__ */ a(x, { direction: "column", width: "100%", gap: "24px", children: s.map((p) => /* @__PURE__ */ a(Ql, { title: p.name, children: /* @__PURE__ */ v(
7255
- x,
7257
+ return /* @__PURE__ */ a(T, { direction: "column", width: "100%", gap: "24px", children: s.map((p) => /* @__PURE__ */ a(Ql, { title: p.name, children: /* @__PURE__ */ b(
7258
+ T,
7256
7259
  {
7257
7260
  direction: "column",
7258
7261
  width: "100%",
7259
7262
  alignItems: "flex-end",
7260
7263
  gap: r ? "12px" : "16px",
7261
7264
  children: [
7262
- /* @__PURE__ */ a(x, { direction: "column", width: "100%", gap: "8px", children: p.renderedNodes }),
7265
+ /* @__PURE__ */ a(T, { direction: "column", width: "100%", gap: "8px", children: p.renderedNodes }),
7263
7266
  /* @__PURE__ */ a(
7264
7267
  Y,
7265
7268
  {
7266
7269
  iconBefore: /* @__PURE__ */ a(yr, {}),
7267
7270
  onClick: () => p.onBack ? p.onBack({ stepId: p.id }) : o == null ? void 0 : o(Number(p.id)),
7268
- appearance: ce.DARK,
7271
+ appearance: he.DARK,
7269
7272
  variant: "none",
7270
7273
  children: "Regresar a este paso"
7271
7274
  }
@@ -7281,13 +7284,13 @@ export {
7281
7284
  nn as BusinessRuleView,
7282
7285
  qn as BusinessRuleViewNew,
7283
7286
  ps as BusinessRules,
7284
- hs as BusinessRulesNew,
7285
- gs as BusinessRulesWithGroup,
7287
+ gs as BusinessRulesNew,
7288
+ hs as BusinessRulesWithGroup,
7286
7289
  Cs as DragAndDropBoxes,
7287
7290
  Rn as DraggableList,
7288
7291
  ca as DropdownMenu,
7289
7292
  Ss as DropdownMenuContainer,
7290
- re as EValueHowToSetUp,
7293
+ oe as EValueHowToSetUp,
7291
7294
  fs as Filter,
7292
7295
  ms as FormFilter,
7293
7296
  Gn as ModalRules,
@@ -7299,7 +7302,7 @@ export {
7299
7302
  Bn as filterByGroup,
7300
7303
  Es as flatFromGroups,
7301
7304
  bs as formatDecisionForBackend,
7302
- Ce as getConditionsByGroupNew,
7305
+ xe as getConditionsByGroupNew,
7303
7306
  vl as groupsRecordToArrayNew,
7304
7307
  ks as mapByGroupNew,
7305
7308
  As as normalizeDecisionToNewShape,