@isettingkit/business-rules 2.1.23 → 2.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { jsx as i, jsxs as m, Fragment as z } from "react/jsx-runtime";
2
- import { MdOutlineDelete as dn, MdClear as cn, MdAdd as We, MdOutlineCreate as Lt, MdExpandLess as Ot, MdExpandMore as Cn, MdInfo as Mt, MdCached as Pt, MdOutlineInfo as zt, MdClose as Vt, MdOutlineFilterAltOff as lt, MdOutlineFilterAlt as st, MdChevronRight as Vn, MdArrowRight as _t, MdOutlineArrowCircleLeft as jt, MdOutlineArrowCircleRight as Ut, MdOutlineChevronRight as Ht, MdOutlineError as Bt } from "react-icons/md";
3
- import { inube as E, Stack as y, Divider as G, Icon as U, Text as F, SkeletonLine as ee, useMediaQuery as re, Blanket as un, Button as q, Grid as Xe, Toggle as pn, Checkbox as $n, Date as Oe, Box as qt, Tag as ke, Tabs as dt, SkeletonIcon as Gt, Fieldset as Ue, OptionList as Yt, Checkpicker as Wt, Label as Xt, OptionItem as Qt } from "@inubekit/inubekit";
4
- import C, { keyframes as In, ThemeContext as Fn } from "styled-components";
5
- import { ValueDataType as B, ValueHowToSetUp as ne, DecisionConditionRender as an, DecisionConditionRenderNew as _n } from "@isettingkit/input";
6
- import { DecisionViewConditionRenderer as Fe, DecisionViewConditionRendererNew as Je } from "@isettingkit/view";
2
+ import { MdOutlineDelete as dn, MdClear as cn, MdAdd as Xe, MdOutlineCreate as Mt, MdExpandLess as Pt, MdExpandMore as Cn, MdInfo as zt, MdCached as Vt, MdOutlineInfo as _t, MdClose as Ut, MdOutlineFilterAltOff as st, MdOutlineFilterAlt as dt, MdChevronRight as _n, MdArrowRight as jt, MdOutlineArrowCircleLeft as Ht, MdOutlineArrowCircleRight as Bt, MdOutlineChevronRight as qt, MdOutlineError as Gt } from "react-icons/md";
3
+ import { inube as E, Stack as y, Divider as G, Icon as j, Text as $, SkeletonLine as ee, useMediaQuery as re, Blanket as un, Button as q, Grid as Qe, Toggle as pn, Checkbox as In, Date as Me, Box as Yt, Tag as ke, Tabs as ct, SkeletonIcon as Wt, Fieldset as He, OptionList as Xt, Checkpicker as Qt, Label as Zt, OptionItem as Kt } from "@inubekit/inubekit";
4
+ import C, { keyframes as Fn, ThemeContext as Rn } from "styled-components";
5
+ import { ValueDataType as B, ValueHowToSetUp as ne, DecisionConditionRender as an, DecisionConditionRenderNew as Un } from "@isettingkit/input";
6
+ import { DecisionViewConditionRenderer as Re, DecisionViewConditionRendererNew as Je } from "@isettingkit/view";
7
7
  import { createPortal as gn } from "react-dom";
8
- import { useFormik as Rn } from "formik";
9
- import { string as de, mixed as Ve, object as te, number as ce, lazy as Ge, date as Me } from "yup";
10
- import P, { useState as H, useRef as Re, useEffect as $e, useContext as Ln, forwardRef as Zt, useMemo as ct, useCallback as Kt } from "react";
11
- import { Link as ut, useLocation as Jt } from "react-router-dom";
12
- import er from "axios";
13
- import { franc as nr } from "franc-min";
14
- const tr = C.div`
8
+ import { useFormik as Ln } from "formik";
9
+ import { string as de, mixed as _e, object as te, number as ce, lazy as Ye, date as Pe } from "yup";
10
+ import P, { useState as H, useRef as Le, useEffect as $e, useContext as On, forwardRef as Jt, useMemo as ut, useCallback as er } from "react";
11
+ import { Link as pt, useLocation as nr } from "react-router-dom";
12
+ import tr from "axios";
13
+ import { franc as rr } from "franc-min";
14
+ const or = C.div`
15
15
  border-radius: 8px;
16
16
  border: 1px solid
17
17
  ${({ theme: e }) => {
@@ -46,14 +46,14 @@ C.div`
46
46
  border-radius: 8px;
47
47
  }
48
48
  `;
49
- const Qe = (e) => {
49
+ const Ze = (e) => {
50
50
  const { children: n, controls: t = !0, handleDelete: r, id: o } = e;
51
- return /* @__PURE__ */ i(tr, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "16px", padding: "12px 16px", children: [
51
+ return /* @__PURE__ */ i(or, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "16px", padding: "12px 16px", children: [
52
52
  n,
53
53
  t && /* @__PURE__ */ m(z, { children: [
54
54
  /* @__PURE__ */ i(G, {}),
55
55
  /* @__PURE__ */ i(y, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ i(
56
- U,
56
+ j,
57
57
  {
58
58
  cursorHover: !0,
59
59
  appearance: "danger",
@@ -66,20 +66,20 @@ const Qe = (e) => {
66
66
  ) })
67
67
  ] })
68
68
  ] }) });
69
- }, rr = (e) => e.value, or = (e) => e.value, ar = (e) => e.value, ir = (e) => ({
69
+ }, ar = (e) => e.value, ir = (e) => e.value, lr = (e) => e.value, sr = (e) => ({
70
70
  from: e.from ?? "",
71
71
  to: e.to ?? ""
72
- }), lr = (e) => e.value, sr = (e) => e.value, dr = (e) => e.value;
72
+ }), dr = (e) => e.value, cr = (e) => e.value, ur = (e) => e.value;
73
73
  var k = /* @__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))(k || {});
74
- const cr = {
75
- [k.LIST_OF_VALUES]: or,
76
- [k.LIST_OF_VALUES_MULTI]: ar,
77
- [k.RANGE]: ir,
78
- [k.GREATER_THAN]: lr,
79
- [k.LESS_THAN]: sr,
80
- [k.EQUAL]: dr
81
- }, He = (e) => {
82
- const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), r = cr[e == null ? void 0 : e.howToSetTheDecision] || rr;
74
+ const pr = {
75
+ [k.LIST_OF_VALUES]: ir,
76
+ [k.LIST_OF_VALUES_MULTI]: lr,
77
+ [k.RANGE]: sr,
78
+ [k.GREATER_THAN]: dr,
79
+ [k.LESS_THAN]: cr,
80
+ [k.EQUAL]: ur
81
+ }, Be = (e) => {
82
+ const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), r = pr[e == null ? void 0 : e.howToSetTheDecision] || ar;
83
83
  return t && r(n) || n || void 0;
84
84
  }, jn = C.div`
85
85
  & > div {
@@ -90,7 +90,7 @@ const cr = {
90
90
  return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || E.palette.neutral.N30;
91
91
  }};
92
92
  }
93
- `, Un = C.div`
93
+ `, Hn = C.div`
94
94
  width: 100%;
95
95
  height: 100%;
96
96
  overflow-y: auto;
@@ -108,7 +108,7 @@ const cr = {
108
108
  background-color: #ebecf0;
109
109
  border-radius: 8px;
110
110
  }
111
- `, ur = (e) => {
111
+ `, gr = (e) => {
112
112
  const {
113
113
  conditionsAlignment: n,
114
114
  decision: t,
@@ -122,17 +122,17 @@ const cr = {
122
122
  } = e;
123
123
  return a ? /* @__PURE__ */ m(y, { direction: "column", gap: "12px", children: [
124
124
  /* @__PURE__ */ i(y, { direction: "column", alignItems: "center", children: /* @__PURE__ */ i(
125
- Fe,
125
+ Re,
126
126
  {
127
127
  element: o,
128
- valueData: He(
128
+ valueData: Be(
129
129
  o
130
130
  ),
131
131
  type: "decision"
132
132
  }
133
133
  ) }, t.ruleName),
134
134
  /* @__PURE__ */ i(G, { dashed: !0 }),
135
- /* @__PURE__ */ i(Un, { children: /* @__PURE__ */ m(
135
+ /* @__PURE__ */ i(Hn, { children: /* @__PURE__ */ m(
136
136
  y,
137
137
  {
138
138
  direction: "column",
@@ -141,7 +141,7 @@ const cr = {
141
141
  height: "203px",
142
142
  children: [
143
143
  p.length > 0 && /* @__PURE__ */ i(
144
- F,
144
+ $,
145
145
  {
146
146
  type: "label",
147
147
  size: "large",
@@ -152,17 +152,17 @@ const cr = {
152
152
  }
153
153
  ),
154
154
  p.length > 0 && p.map((u) => /* @__PURE__ */ i(jn, { children: /* @__PURE__ */ i(y, { direction: "column", padding: "8px", children: /* @__PURE__ */ i(
155
- Fe,
155
+ Re,
156
156
  {
157
157
  element: { ...u, value: u.value },
158
- valueData: He(
158
+ valueData: Be(
159
159
  u
160
160
  )
161
161
  }
162
162
  ) }) }, u.conditionName)),
163
163
  p.length > 0 && /* @__PURE__ */ i(G, { dashed: !0 }),
164
164
  d && /* @__PURE__ */ i(z, { children: r && /* @__PURE__ */ i(
165
- Fe,
165
+ Re,
166
166
  {
167
167
  element: r.element,
168
168
  valueData: r.valueData,
@@ -182,7 +182,7 @@ const cr = {
182
182
  /* @__PURE__ */ i(G, { dashed: !0 }),
183
183
  /* @__PURE__ */ i(ee, { animated: !0, width: "150px" })
184
184
  ] }),
185
- /* @__PURE__ */ i(Un, { children: /* @__PURE__ */ i(
185
+ /* @__PURE__ */ i(Hn, { children: /* @__PURE__ */ i(
186
186
  y,
187
187
  {
188
188
  direction: "column",
@@ -205,7 +205,7 @@ const cr = {
205
205
  }
206
206
  ) })
207
207
  ] });
208
- }, On = (e) => {
208
+ }, Mn = (e) => {
209
209
  var g;
210
210
  const { decision: n, loading: t = !1, textValues: r } = e, o = !!(n != null && n.effectiveFrom), a = !!(n != null && n.validUntil), s = o && a ? {
211
211
  element: {
@@ -214,7 +214,7 @@ const cr = {
214
214
  howToSetTheDecision: ne.RANGE,
215
215
  decisionDataType: B.DATE
216
216
  },
217
- valueData: He({
217
+ valueData: Be({
218
218
  labelName: r == null ? void 0 : r.terms,
219
219
  value: {
220
220
  from: String(n.effectiveFrom),
@@ -230,7 +230,7 @@ const cr = {
230
230
  howToSetTheDecision: ne.EQUAL,
231
231
  decisionDataType: B.DATE
232
232
  },
233
- valueData: He({
233
+ valueData: Be({
234
234
  labelName: r == null ? void 0 : r.terms,
235
235
  value: String(n.effectiveFrom),
236
236
  howToSetTheDecision: ne.EQUAL,
@@ -239,13 +239,13 @@ const cr = {
239
239
  } : null, d = n ? {
240
240
  labelName: n.labelName || "",
241
241
  decisionDataType: n.decisionDataType || "alphabetical",
242
- value: He(n),
242
+ value: Be(n),
243
243
  howToSetTheDecision: n.howToSetTheDecision || "EqualTo"
244
244
  } : null, l = ((g = n == null ? void 0 : n.conditionsThatEstablishesTheDecision) == null ? void 0 : g.filter(
245
245
  (h) => !h.hidden
246
246
  )) || [], p = Array.from({ length: 5 }), u = !!(!t && n && r && d), c = l.length < 2 ? "start" : "space-between";
247
247
  return /* @__PURE__ */ i(
248
- ur,
248
+ gr,
249
249
  {
250
250
  conditionsAlignment: c,
251
251
  decision: n,
@@ -258,12 +258,12 @@ const cr = {
258
258
  visibleConditions: l
259
259
  }
260
260
  );
261
- }, pr = C.div`
261
+ }, hr = C.div`
262
262
  position: relative;
263
263
  & > div {
264
264
  padding: 24px 16px;
265
265
  }
266
- `, gr = C.div`
266
+ `, fr = C.div`
267
267
  background-color: ${({ theme: e }) => {
268
268
  var n, t;
269
269
  return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || E.palette.neutral.N0;
@@ -294,7 +294,7 @@ const cr = {
294
294
  background-color: #ebecf0;
295
295
  border-radius: 8px;
296
296
  }
297
- `, pt = (e) => {
297
+ `, gt = (e) => {
298
298
  const { children: n, portalId: t, onCloseModal: r, title: o } = e, a = document.getElementById(t);
299
299
  if (!a)
300
300
  throw new Error(
@@ -302,16 +302,16 @@ const cr = {
302
302
  );
303
303
  const s = re("(max-width: 400px)");
304
304
  return gn(
305
- /* @__PURE__ */ i(pr, { smallScreen: s, children: /* @__PURE__ */ i(un, { children: /* @__PURE__ */ i(gr, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "24px", children: [
305
+ /* @__PURE__ */ i(hr, { smallScreen: s, children: /* @__PURE__ */ i(un, { children: /* @__PURE__ */ i(fr, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "24px", children: [
306
306
  /* @__PURE__ */ i(y, { direction: "column", gap: "24px", children: /* @__PURE__ */ m(y, { alignItems: "center", justifyContent: "space-between", children: [
307
- /* @__PURE__ */ i(F, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
307
+ /* @__PURE__ */ i($, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
308
308
  /* @__PURE__ */ i(cn, { size: "24px", cursor: "pointer", onClick: r })
309
309
  ] }) }),
310
310
  n
311
311
  ] }) }) }) }),
312
312
  a
313
313
  );
314
- }, hr = In`
314
+ }, mr = Fn`
315
315
  from {
316
316
  opacity: 0;
317
317
  transform: translateY(20px);
@@ -345,7 +345,7 @@ C.div`
345
345
  }};
346
346
  }
347
347
  `;
348
- const gt = C.div`
348
+ const ht = C.div`
349
349
  & > div {
350
350
  background-color: ${({ theme: e }) => {
351
351
  var n, t;
@@ -358,18 +358,18 @@ const gt = C.div`
358
358
  height: 100%;
359
359
  padding-bottom: 12px;
360
360
  cursor: pointer;
361
- `, Ze = C.div`
361
+ `, Ke = C.div`
362
362
  width: 100%;
363
363
  height: 100%;
364
364
  & > div {
365
- animation: ${hr} 600ms ease-out;
365
+ animation: ${mr} 600ms ease-out;
366
366
  }
367
- `, fr = C.div`
367
+ `, br = C.div`
368
368
  & > div > div {
369
369
  border-radius: 8px;
370
370
  box-sizing: border-box;
371
371
  }
372
- `, mr = C.div`
372
+ `, vr = C.div`
373
373
  & > div {
374
374
  width: 100%;
375
375
  height: 100%;
@@ -389,50 +389,50 @@ const gt = C.div`
389
389
  border-radius: 8px;
390
390
  }
391
391
  }
392
- `, br = (e) => {
392
+ `, yr = (e) => {
393
393
  const { index: n, handleOpenModal: t } = e;
394
394
  return /* @__PURE__ */ i(
395
- Qe,
395
+ Ze,
396
396
  {
397
397
  id: `loading-card-${n}`,
398
398
  handleDelete: () => {
399
399
  },
400
400
  handleView: () => t ? t() : null,
401
401
  controls: !1,
402
- children: /* @__PURE__ */ i(On, { loading: !0 })
402
+ children: /* @__PURE__ */ i(Mn, { loading: !0 })
403
403
  },
404
404
  `loading-card-${n}`
405
405
  );
406
- }, vr = (e) => {
406
+ }, xr = (e) => {
407
407
  const { decision: n, controls: t, handleOpenModal: r, handleDelete: o, textValues: a } = e;
408
- return n ? /* @__PURE__ */ i(Ze, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
409
- /* @__PURE__ */ i(F, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
408
+ return n ? /* @__PURE__ */ i(Ke, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
409
+ /* @__PURE__ */ i($, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
410
410
  /* @__PURE__ */ i(
411
- Qe,
411
+ Ze,
412
412
  {
413
413
  id: n.decisionId,
414
414
  handleDelete: () => o ? o(n.decisionId) : null,
415
415
  handleView: () => r ? r(n) : null,
416
416
  controls: t,
417
- children: /* @__PURE__ */ i(On, { decision: n, textValues: a })
417
+ children: /* @__PURE__ */ i(Mn, { decision: n, textValues: a })
418
418
  }
419
419
  )
420
420
  ] }) }, n.decisionId) : null;
421
- }, yr = (e) => {
421
+ }, Tr = (e) => {
422
422
  const {
423
423
  customTitleContentAddCard: n,
424
424
  index: t,
425
425
  handleOpenModal: r,
426
426
  shouldRenderEmptyMessage: o
427
427
  } = e, a = n || "Agregar decisión";
428
- return /* @__PURE__ */ i(Ze, { children: o ? null : /* @__PURE__ */ m(y, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
429
- /* @__PURE__ */ i(F, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
428
+ return /* @__PURE__ */ i(Ke, { children: o ? null : /* @__PURE__ */ m(y, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
429
+ /* @__PURE__ */ i($, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
430
430
  /* @__PURE__ */ i(
431
- gt,
431
+ ht,
432
432
  {
433
433
  onClick: () => r ? r() : null,
434
434
  children: /* @__PURE__ */ i(
435
- Qe,
435
+ Ze,
436
436
  {
437
437
  id: `add-decision-${t}`,
438
438
  handleDelete: () => {
@@ -440,22 +440,22 @@ const gt = C.div`
440
440
  handleView: () => r ? r() : null,
441
441
  controls: !1,
442
442
  children: /* @__PURE__ */ m(y, { direction: "column", gap: "12px", alignItems: "center", children: [
443
- /* @__PURE__ */ i(U, { appearance: "gray", icon: /* @__PURE__ */ i(We, {}), size: "35px" }),
444
- /* @__PURE__ */ i(F, { appearance: "gray", type: "body", size: "large", children: a })
443
+ /* @__PURE__ */ i(j, { appearance: "gray", icon: /* @__PURE__ */ i(Xe, {}), size: "35px" }),
444
+ /* @__PURE__ */ i($, { appearance: "gray", type: "body", size: "large", children: a })
445
445
  ] })
446
446
  }
447
447
  )
448
448
  }
449
449
  )
450
450
  ] }) }, `add-decision-${t}`);
451
- }, xr = {
452
- loading: br,
453
- decision: vr,
454
- add: yr
451
+ }, wr = {
452
+ loading: yr,
453
+ decision: xr,
454
+ add: Tr
455
455
  }, Dn = (e) => {
456
- const { type: n } = e, t = xr[n];
456
+ const { type: n } = e, t = wr[n];
457
457
  return t ? t(e) : null;
458
- }, Tr = (e) => {
458
+ }, Cr = (e) => {
459
459
  const {
460
460
  controls: n,
461
461
  customTitleContentAddCard: t,
@@ -488,7 +488,7 @@ const gt = C.div`
488
488
  })
489
489
  ), p = ((r == null ? void 0 : r.length) === 0 || r.length < Math.floor(window.innerWidth / 300)) && !o && n;
490
490
  return { renderedCards: l, shouldRenderAddCard: p };
491
- }, bl = (e) => {
491
+ }, yl = (e) => {
492
492
  const {
493
493
  controls: n = !0,
494
494
  customTitleContentAddCard: t,
@@ -504,7 +504,7 @@ const gt = C.div`
504
504
  handleSubmitForm: g,
505
505
  handleDelete: h,
506
506
  terms: f = !0
507
- } = e, x = re("(max-width: 681px)"), b = re("(max-width: 400px)"), { renderedCards: D, shouldRenderAddCard: T } = Tr({
507
+ } = e, x = re("(max-width: 681px)"), b = re("(max-width: 400px)"), { renderedCards: D, shouldRenderAddCard: T } = Cr({
508
508
  controls: n,
509
509
  customTitleContentAddCard: t,
510
510
  decisions: o,
@@ -514,7 +514,7 @@ const gt = C.div`
514
514
  textValues: a
515
515
  }), S = (o == null ? void 0 : o.length) === 0 && !p;
516
516
  return /* @__PURE__ */ m(z, { children: [
517
- /* @__PURE__ */ i(fr, { children: /* @__PURE__ */ i(mr, { children: /* @__PURE__ */ i(y, { direction: "column", gap: "16px", padding: "6px", children: S ? /* @__PURE__ */ m(
517
+ /* @__PURE__ */ i(br, { children: /* @__PURE__ */ i(vr, { children: /* @__PURE__ */ i(y, { direction: "column", gap: "16px", padding: "6px", children: S ? /* @__PURE__ */ m(
518
518
  y,
519
519
  {
520
520
  direction: "column",
@@ -524,10 +524,10 @@ const gt = C.div`
524
524
  justifyContent: "center",
525
525
  alignItems: "center",
526
526
  children: [
527
- /* @__PURE__ */ i(F, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(z, { children: [
527
+ /* @__PURE__ */ i($, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(z, { children: [
528
528
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
529
529
  /* @__PURE__ */ m(
530
- F,
530
+ $,
531
531
  {
532
532
  as: "span",
533
533
  type: "label",
@@ -546,7 +546,7 @@ const gt = C.div`
546
546
  /* @__PURE__ */ i(
547
547
  q,
548
548
  {
549
- iconBefore: /* @__PURE__ */ i(We, {}),
549
+ iconBefore: /* @__PURE__ */ i(Xe, {}),
550
550
  onClick: () => u ? u() : null,
551
551
  children: t || "Agregar decisión"
552
552
  }
@@ -554,7 +554,7 @@ const gt = C.div`
554
554
  ]
555
555
  }
556
556
  ) : /* @__PURE__ */ m(
557
- Xe,
557
+ Qe,
558
558
  {
559
559
  templateColumns: b ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
560
560
  autoFlow: "row dense",
@@ -584,13 +584,13 @@ const gt = C.div`
584
584
  }
585
585
  ) }) }) }),
586
586
  d && /* @__PURE__ */ i(
587
- pt,
587
+ gt,
588
588
  {
589
589
  portalId: "modal-portal",
590
590
  onCloseModal: c,
591
591
  title: l ? "Editar Decisión" : "Nueva decisión",
592
592
  children: /* @__PURE__ */ i(
593
- Da,
593
+ Ea,
594
594
  {
595
595
  decision: l || s,
596
596
  onSubmitEvent: g,
@@ -602,12 +602,12 @@ const gt = C.div`
602
602
  }
603
603
  )
604
604
  ] });
605
- }, wr = C.div`
605
+ }, Dr = C.div`
606
606
  position: relative;
607
607
  & > div {
608
608
  padding: 24px 16px;
609
609
  }
610
- `, Cr = C.div`
610
+ `, Sr = C.div`
611
611
  background-color: ${({ theme: e }) => {
612
612
  var n, t;
613
613
  return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || E.palette.neutral.N0;
@@ -638,7 +638,7 @@ const gt = C.div`
638
638
  background-color: #ebecf0;
639
639
  border-radius: 8px;
640
640
  }
641
- `, Dr = (e) => {
641
+ `, Er = (e) => {
642
642
  const { children: n, portalId: t, onCloseModal: r, title: o } = e, a = document.getElementById(t);
643
643
  if (!a)
644
644
  throw new Error(
@@ -646,16 +646,16 @@ const gt = C.div`
646
646
  );
647
647
  const s = re("(max-width: 400px)");
648
648
  return gn(
649
- /* @__PURE__ */ i(wr, { $smallScreen: s, children: /* @__PURE__ */ i(un, { children: /* @__PURE__ */ i(Cr, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "24px", children: [
649
+ /* @__PURE__ */ i(Dr, { $smallScreen: s, children: /* @__PURE__ */ i(un, { children: /* @__PURE__ */ i(Sr, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "24px", children: [
650
650
  /* @__PURE__ */ i(y, { direction: "column", gap: "24px", children: /* @__PURE__ */ m(y, { alignItems: "center", justifyContent: "space-between", children: [
651
- /* @__PURE__ */ i(F, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
651
+ /* @__PURE__ */ i($, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
652
652
  /* @__PURE__ */ i(cn, { size: "24px", cursor: "pointer", onClick: r })
653
653
  ] }) }),
654
654
  n
655
655
  ] }) }) }) }),
656
656
  a
657
657
  );
658
- }, Sr = In`
658
+ }, Nr = Fn`
659
659
  from {
660
660
  opacity: 0;
661
661
  transform: translateY(20px);
@@ -707,15 +707,15 @@ C.div`
707
707
  width: 100%;
708
708
  height: 100%;
709
709
  & > div {
710
- animation: ${Sr} 600ms ease-out;
710
+ animation: ${Nr} 600ms ease-out;
711
711
  }
712
712
  `;
713
- const Er = C.div`
713
+ const kr = C.div`
714
714
  & > div > div {
715
715
  border-radius: 8px;
716
716
  box-sizing: border-box;
717
717
  }
718
- `, Nr = C.div`
718
+ `, Ar = C.div`
719
719
  & > div {
720
720
  width: 100%;
721
721
  height: 100%;
@@ -735,34 +735,34 @@ const Er = C.div`
735
735
  border-radius: 8px;
736
736
  }
737
737
  }
738
- `, kr = (e) => {
738
+ `, $r = (e) => {
739
739
  const { index: n, handleOpenModal: t } = e;
740
740
  return /* @__PURE__ */ i(
741
- Qe,
741
+ Ze,
742
742
  {
743
743
  id: `loading-card-${n}`,
744
744
  handleDelete: () => {
745
745
  },
746
746
  handleView: () => t ? t() : null,
747
747
  controls: !1,
748
- children: /* @__PURE__ */ i(On, { loading: !0 })
748
+ children: /* @__PURE__ */ i(Mn, { loading: !0 })
749
749
  },
750
750
  `loading-card-${n}`
751
751
  );
752
- }, Ar = (e) => e.value, $r = (e) => e.value, Ir = (e) => e.value, Fr = (e) => ({
752
+ }, Ir = (e) => e.value, Fr = (e) => e.value, Rr = (e) => e.value, Lr = (e) => ({
753
753
  from: e.from ?? "",
754
754
  to: e.to ?? ""
755
- }), Rr = (e) => e.value, Lr = (e) => e.value, Or = (e) => e.value, Mr = {
756
- [k.LIST_OF_VALUES]: $r,
757
- [k.LIST_OF_VALUES_MULTI]: Ir,
758
- [k.RANGE]: Fr,
759
- [k.GREATER_THAN]: Rr,
760
- [k.LESS_THAN]: Lr,
761
- [k.EQUAL]: Or
762
- }, Be = (e) => {
763
- const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), r = Mr[e == null ? void 0 : e.howToSetTheDecision] || Ar;
755
+ }), Or = (e) => e.value, Mr = (e) => e.value, Pr = (e) => e.value, zr = {
756
+ [k.LIST_OF_VALUES]: Fr,
757
+ [k.LIST_OF_VALUES_MULTI]: Rr,
758
+ [k.RANGE]: Lr,
759
+ [k.GREATER_THAN]: Or,
760
+ [k.LESS_THAN]: Mr,
761
+ [k.EQUAL]: Pr
762
+ }, qe = (e) => {
763
+ const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), r = zr[e == null ? void 0 : e.howToSetTheDecision] || Ir;
764
764
  return t && r(n) || n || void 0;
765
- }, Hn = C.div`
765
+ }, Bn = C.div`
766
766
  & > div {
767
767
  border-radius: 8px;
768
768
  border: 1px solid
@@ -771,7 +771,7 @@ const Er = C.div`
771
771
  return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || E.palette.neutral.N30;
772
772
  }};
773
773
  }
774
- `, Bn = C.div`
774
+ `, qn = C.div`
775
775
  width: 100%;
776
776
  height: 100%;
777
777
  overflow-y: auto;
@@ -789,7 +789,7 @@ const Er = C.div`
789
789
  background-color: #ebecf0;
790
790
  border-radius: 8px;
791
791
  }
792
- `, Pr = (e) => {
792
+ `, Vr = (e) => {
793
793
  const {
794
794
  conditionsAlignment: n,
795
795
  decision: t,
@@ -803,17 +803,17 @@ const Er = C.div`
803
803
  } = e;
804
804
  return a ? /* @__PURE__ */ m(y, { direction: "column", gap: "12px", children: [
805
805
  /* @__PURE__ */ i(y, { direction: "column", alignItems: "center", children: /* @__PURE__ */ i(
806
- Fe,
806
+ Re,
807
807
  {
808
808
  element: o,
809
- valueData: Be(
809
+ valueData: qe(
810
810
  o
811
811
  ),
812
812
  type: "decision"
813
813
  }
814
814
  ) }, t.ruleName),
815
815
  /* @__PURE__ */ i(G, { dashed: !0 }),
816
- /* @__PURE__ */ i(Bn, { children: /* @__PURE__ */ m(
816
+ /* @__PURE__ */ i(qn, { children: /* @__PURE__ */ m(
817
817
  y,
818
818
  {
819
819
  direction: "column",
@@ -822,7 +822,7 @@ const Er = C.div`
822
822
  height: "203px",
823
823
  children: [
824
824
  p.length > 0 && /* @__PURE__ */ i(
825
- F,
825
+ $,
826
826
  {
827
827
  type: "label",
828
828
  size: "large",
@@ -832,18 +832,18 @@ const Er = C.div`
832
832
  children: l.factsThatConditionIt
833
833
  }
834
834
  ),
835
- p.length > 0 && p.map((u) => /* @__PURE__ */ i(Hn, { children: /* @__PURE__ */ i(y, { direction: "column", padding: "8px", children: /* @__PURE__ */ i(
836
- Fe,
835
+ p.length > 0 && p.map((u) => /* @__PURE__ */ i(Bn, { children: /* @__PURE__ */ i(y, { direction: "column", padding: "8px", children: /* @__PURE__ */ i(
836
+ Re,
837
837
  {
838
838
  element: { ...u, value: u.value },
839
- valueData: Be(
839
+ valueData: qe(
840
840
  u
841
841
  )
842
842
  }
843
843
  ) }) }, u.conditionName)),
844
844
  p.length > 0 && /* @__PURE__ */ i(G, { dashed: !0 }),
845
845
  d && /* @__PURE__ */ i(z, { children: r && /* @__PURE__ */ i(
846
- Fe,
846
+ Re,
847
847
  {
848
848
  element: r.element,
849
849
  valueData: r.valueData,
@@ -863,14 +863,14 @@ const Er = C.div`
863
863
  /* @__PURE__ */ i(G, { dashed: !0 }),
864
864
  /* @__PURE__ */ i(ee, { animated: !0, width: "150px" })
865
865
  ] }),
866
- /* @__PURE__ */ i(Bn, { children: /* @__PURE__ */ i(
866
+ /* @__PURE__ */ i(qn, { children: /* @__PURE__ */ i(
867
867
  y,
868
868
  {
869
869
  direction: "column",
870
870
  gap: "12px",
871
871
  justifyContent: "space-between",
872
872
  height: "203px",
873
- children: s.map((u, c) => /* @__PURE__ */ i(Hn, { children: /* @__PURE__ */ m(
873
+ children: s.map((u, c) => /* @__PURE__ */ i(Bn, { children: /* @__PURE__ */ m(
874
874
  y,
875
875
  {
876
876
  direction: "column",
@@ -886,10 +886,10 @@ const Er = C.div`
886
886
  }
887
887
  ) })
888
888
  ] });
889
- }, zr = (e) => Array.isArray(e) ? e[0] : e ?? null, Vr = (e) => {
889
+ }, _r = (e) => Array.isArray(e) ? e[0] : e ?? null, Ur = (e) => {
890
890
  var n;
891
- return ((n = zr(e == null ? void 0 : e.conditionGroups)) == null ? void 0 : n.conditionsThatEstablishesTheDecision) ?? [];
892
- }, _r = (e) => {
891
+ return ((n = _r(e == null ? void 0 : e.conditionGroups)) == null ? void 0 : n.conditionsThatEstablishesTheDecision) ?? [];
892
+ }, jr = (e) => {
893
893
  const { decision: n, loading: t = !1, textValues: r } = e, o = !!(n != null && n.effectiveFrom), a = !!(n != null && n.validUntil), s = o && a ? {
894
894
  element: {
895
895
  labelName: r == null ? void 0 : r.terms,
@@ -897,7 +897,7 @@ const Er = C.div`
897
897
  howToSetTheDecision: ne.RANGE,
898
898
  decisionDataType: B.DATE
899
899
  },
900
- valueData: Be({
900
+ valueData: qe({
901
901
  labelName: r == null ? void 0 : r.terms,
902
902
  value: {
903
903
  from: String(n.effectiveFrom),
@@ -913,7 +913,7 @@ const Er = C.div`
913
913
  howToSetTheDecision: ne.EQUAL,
914
914
  decisionDataType: B.DATE
915
915
  },
916
- valueData: Be({
916
+ valueData: qe({
917
917
  labelName: r == null ? void 0 : r.terms,
918
918
  value: String(n.effectiveFrom),
919
919
  howToSetTheDecision: ne.EQUAL,
@@ -922,11 +922,11 @@ const Er = C.div`
922
922
  } : null, d = n ? {
923
923
  labelName: n.labelName || "",
924
924
  decisionDataType: n.decisionDataType || "alphabetical",
925
- value: Be(n),
925
+ value: qe(n),
926
926
  howToSetTheDecision: n.howToSetTheDecision || "EqualTo"
927
- } : null, l = Vr(n).filter((g) => !(g != null && g.hidden)), p = Array.from({ length: 5 }), u = !!(!t && n && r && d), c = l.length < 2 ? "start" : "space-between";
927
+ } : null, l = Ur(n).filter((g) => !(g != null && g.hidden)), p = Array.from({ length: 5 }), u = !!(!t && n && r && d), c = l.length < 2 ? "start" : "space-between";
928
928
  return /* @__PURE__ */ i(
929
- Pr,
929
+ Vr,
930
930
  {
931
931
  conditionsAlignment: c,
932
932
  decision: n,
@@ -939,7 +939,7 @@ const Er = C.div`
939
939
  visibleConditions: l
940
940
  }
941
941
  );
942
- }, jr = C.div`
942
+ }, Hr = C.div`
943
943
  border-radius: 8px;
944
944
  border: 1px solid
945
945
  ${({ theme: e }) => {
@@ -974,14 +974,14 @@ C.div`
974
974
  border-radius: 8px;
975
975
  }
976
976
  `;
977
- const Ur = (e) => {
977
+ const Br = (e) => {
978
978
  const { children: n, controls: t = !0, handleDelete: r, id: o } = e;
979
- return /* @__PURE__ */ i(jr, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "16px", padding: "12px 16px", children: [
979
+ return /* @__PURE__ */ i(Hr, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "16px", padding: "12px 16px", children: [
980
980
  n,
981
981
  t && /* @__PURE__ */ m(z, { children: [
982
982
  /* @__PURE__ */ i(G, {}),
983
983
  /* @__PURE__ */ i(y, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ i(
984
- U,
984
+ j,
985
985
  {
986
986
  cursorHover: !0,
987
987
  appearance: "danger",
@@ -994,19 +994,19 @@ const Ur = (e) => {
994
994
  ) })
995
995
  ] })
996
996
  ] }) });
997
- }, Hr = (e) => {
997
+ }, qr = (e) => {
998
998
  const { decision: n, controls: t, handleOpenModal: r, handleDelete: o, textValues: a } = e;
999
- return n ? /* @__PURE__ */ i(Ze, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
1000
- /* @__PURE__ */ i(F, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
999
+ return n ? /* @__PURE__ */ i(Ke, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
1000
+ /* @__PURE__ */ i($, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
1001
1001
  /* @__PURE__ */ i(
1002
- Ur,
1002
+ Br,
1003
1003
  {
1004
1004
  id: n.decisionId,
1005
1005
  handleDelete: () => o ? o(n.decisionId) : null,
1006
1006
  handleView: () => r ? r(n) : null,
1007
1007
  controls: t,
1008
1008
  children: /* @__PURE__ */ i(
1009
- _r,
1009
+ jr,
1010
1010
  {
1011
1011
  decision: n,
1012
1012
  textValues: a
@@ -1015,21 +1015,21 @@ const Ur = (e) => {
1015
1015
  }
1016
1016
  )
1017
1017
  ] }) }, n.decisionId) : null;
1018
- }, Br = (e) => {
1018
+ }, Gr = (e) => {
1019
1019
  const {
1020
1020
  customTitleContentAddCard: n,
1021
1021
  index: t,
1022
1022
  handleOpenModal: r,
1023
1023
  shouldRenderEmptyMessage: o
1024
1024
  } = e, a = n || "Agregar decisión";
1025
- return /* @__PURE__ */ i(Ze, { children: o ? null : /* @__PURE__ */ m(y, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
1026
- /* @__PURE__ */ i(F, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
1025
+ return /* @__PURE__ */ i(Ke, { children: o ? null : /* @__PURE__ */ m(y, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
1026
+ /* @__PURE__ */ i($, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
1027
1027
  /* @__PURE__ */ i(
1028
- gt,
1028
+ ht,
1029
1029
  {
1030
1030
  onClick: () => r ? r() : null,
1031
1031
  children: /* @__PURE__ */ i(
1032
- Qe,
1032
+ Ze,
1033
1033
  {
1034
1034
  id: `add-decision-${t}`,
1035
1035
  handleDelete: () => {
@@ -1037,30 +1037,30 @@ const Ur = (e) => {
1037
1037
  handleView: () => r ? r() : null,
1038
1038
  controls: !1,
1039
1039
  children: /* @__PURE__ */ m(y, { direction: "column", gap: "12px", alignItems: "center", children: [
1040
- /* @__PURE__ */ i(U, { appearance: "gray", icon: /* @__PURE__ */ i(We, {}), size: "35px" }),
1041
- /* @__PURE__ */ i(F, { appearance: "gray", type: "body", size: "large", children: a })
1040
+ /* @__PURE__ */ i(j, { appearance: "gray", icon: /* @__PURE__ */ i(Xe, {}), size: "35px" }),
1041
+ /* @__PURE__ */ i($, { appearance: "gray", type: "body", size: "large", children: a })
1042
1042
  ] })
1043
1043
  }
1044
1044
  )
1045
1045
  }
1046
1046
  )
1047
1047
  ] }) }, `add-decision-${t}`);
1048
- }, qr = {
1049
- loading: kr,
1050
- decision: Hr,
1051
- add: Br
1048
+ }, Yr = {
1049
+ loading: $r,
1050
+ decision: qr,
1051
+ add: Gr
1052
1052
  }, Sn = (e) => {
1053
- const { type: n } = e, t = qr[n];
1053
+ const { type: n } = e, t = Yr[n];
1054
1054
  return t ? t(e) : null;
1055
- }, Gr = (e) => ({
1055
+ }, Wr = (e) => ({
1056
1056
  schema: de().required("Requerido").test(
1057
1057
  "non-empty",
1058
1058
  "El valor no puede estar vacío",
1059
1059
  (n) => n != null && n.trim() !== ""
1060
1060
  ),
1061
1061
  value: e
1062
- }), Yr = (e) => ({
1063
- schema: Ve().test(
1062
+ }), Xr = (e) => ({
1063
+ schema: _e().test(
1064
1064
  "isArrayOrString",
1065
1065
  "Debe ser un array de strings/numbers o un solo string",
1066
1066
  (n) => Array.isArray(n) ? n.every(
@@ -1068,8 +1068,8 @@ const Ur = (e) => {
1068
1068
  ) : typeof n == "string"
1069
1069
  ),
1070
1070
  value: e
1071
- }), Wr = (e) => ({
1072
- schema: Ve().test(
1071
+ }), Qr = (e) => ({
1072
+ schema: _e().test(
1073
1073
  "isArrayOrString",
1074
1074
  "Debe ser un array de strings/numbers o un solo string ",
1075
1075
  (n) => Array.isArray(n) ? n.every(
@@ -1077,7 +1077,7 @@ const Ur = (e) => {
1077
1077
  ) : typeof n == "string"
1078
1078
  ),
1079
1079
  value: e
1080
- }), Xr = (e) => {
1080
+ }), Zr = (e) => {
1081
1081
  const n = (e == null ? void 0 : e.from) ?? 0, t = (e == null ? void 0 : e.to) ?? 0;
1082
1082
  return {
1083
1083
  schema: te({
@@ -1099,16 +1099,16 @@ const Ur = (e) => {
1099
1099
  } : {
1100
1100
  schema: de().required("Requerido"),
1101
1101
  value: e
1102
- }, Qr = {
1103
- [k.LIST_OF_VALUES]: Yr,
1104
- [k.LIST_OF_VALUES_MULTI]: Wr,
1105
- [k.RANGE]: Xr,
1102
+ }, Kr = {
1103
+ [k.LIST_OF_VALUES]: Xr,
1104
+ [k.LIST_OF_VALUES_MULTI]: Qr,
1105
+ [k.RANGE]: Zr,
1106
1106
  [k.GREATER_THAN]: vn,
1107
1107
  [k.LESS_THAN]: vn,
1108
1108
  [k.EQUAL]: vn
1109
- }, Zr = (e) => Qr[e] || Gr;
1110
- var Mn = /* @__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))(Mn || {});
1111
- const rn = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Array.isArray(e) || e.length > 0), Kr = (e, n) => {
1109
+ }, Jr = (e) => Kr[e] || Wr;
1110
+ var Pn = /* @__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))(Pn || {});
1111
+ const rn = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Array.isArray(e) || e.length > 0), eo = (e, n) => {
1112
1112
  var d;
1113
1113
  const t = Object.entries((e == null ? void 0 : e.conditionsThatEstablishesTheDecision) ?? {}).filter(([, l]) => rn(l)).map(([l, p]) => ({ conditionName: l, value: p }));
1114
1114
  let r = [];
@@ -1127,7 +1127,7 @@ const rn = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Ar
1127
1127
  };
1128
1128
  });
1129
1129
  };
1130
- function Jr({
1130
+ function no({
1131
1131
  decision: e,
1132
1132
  onSubmitEvent: n,
1133
1133
  textValues: t
@@ -1152,7 +1152,7 @@ function Jr({
1152
1152
  let d;
1153
1153
  const l = {
1154
1154
  ruleName: de().required("El nombre de la regla es requerido"),
1155
- value: Ge(() => Zr(
1155
+ value: Ye(() => Jr(
1156
1156
  d.values.howToSetTheDecision
1157
1157
  )(
1158
1158
  d.values.value,
@@ -1160,7 +1160,7 @@ function Jr({
1160
1160
  ).schema),
1161
1161
  conditionsThatEstablishesTheDecision: te().shape({})
1162
1162
  };
1163
- t.terms && (l.effectiveFrom = Me().required("La fecha de inicio es requerida"), l.validUntil = Me().when(
1163
+ t.terms && (l.effectiveFrom = Pe().required("La fecha de inicio es requerida"), l.validUntil = Pe().when(
1164
1164
  "checkClosed",
1165
1165
  (h, f, { parent: x }) => (x == null ? void 0 : x.checkClosed) ? f.required("La fecha de finalización es requerida").test(
1166
1166
  "is-after-startDate",
@@ -1172,13 +1172,13 @@ function Jr({
1172
1172
  ) : f.notRequired()
1173
1173
  ));
1174
1174
  const p = te(l);
1175
- return d = Rn({
1175
+ return d = Ln({
1176
1176
  initialValues: s,
1177
1177
  validationSchema: p,
1178
1178
  validateOnBlur: !0,
1179
1179
  onSubmit: (h) => {
1180
1180
  var D;
1181
- const f = ((D = e.conditionGroups) == null ? void 0 : D.ConditionGroupId) ?? "group-primary", x = h.toggleNone ? [] : Kr(h, r), b = {
1181
+ const f = ((D = e.conditionGroups) == null ? void 0 : D.ConditionGroupId) ?? "group-primary", x = h.toggleNone ? [] : eo(h, r), b = {
1182
1182
  ...e,
1183
1183
  ruleName: h.ruleName,
1184
1184
  decisionDataType: h.decisionDataType,
@@ -1201,7 +1201,7 @@ function Jr({
1201
1201
  void 0
1202
1202
  );
1203
1203
  else if (d.values.conditionsThatEstablishesTheDecision[f.conditionName] === void 0) {
1204
- const b = f.howToSetTheCondition === Mn.LIST_OF_VALUES_MULTI ? [] : "";
1204
+ const b = f.howToSetTheCondition === Pn.LIST_OF_VALUES_MULTI ? [] : "";
1205
1205
  d.setFieldValue(
1206
1206
  `conditionsThatEstablishesTheDecision.${f.conditionName}`,
1207
1207
  b
@@ -1210,7 +1210,7 @@ function Jr({
1210
1210
  });
1211
1211
  } };
1212
1212
  }
1213
- const eo = C.div`
1213
+ const to = C.div`
1214
1214
  & > div {
1215
1215
  border-radius: 8px;
1216
1216
  border: 1px solid
@@ -1219,7 +1219,7 @@ const eo = C.div`
1219
1219
  return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || E.palette.neutral.N30;
1220
1220
  }};
1221
1221
  }
1222
- `, no = C.div`
1222
+ `, ro = C.div`
1223
1223
  width: 100%;
1224
1224
  height: 100%;
1225
1225
  overflow-y: auto;
@@ -1236,7 +1236,7 @@ const eo = C.div`
1236
1236
  background-color: #ebecf0;
1237
1237
  border-radius: 8px;
1238
1238
  }
1239
- `, to = (e) => {
1239
+ `, oo = (e) => {
1240
1240
  const {
1241
1241
  checked: n,
1242
1242
  children: t,
@@ -1258,12 +1258,12 @@ const eo = C.div`
1258
1258
  },
1259
1259
  size: "small",
1260
1260
  value: d,
1261
- children: /* @__PURE__ */ i(F, { size: "medium", type: "label", weight: "bold", as: "span", children: a })
1261
+ children: /* @__PURE__ */ i($, { size: "medium", type: "label", weight: "bold", as: "span", children: a })
1262
1262
  }
1263
1263
  ) }),
1264
1264
  l && /* @__PURE__ */ i(z, { children: t })
1265
1265
  ] });
1266
- }, ro = (e) => {
1266
+ }, ao = (e) => {
1267
1267
  const {
1268
1268
  onHandleStartChange: n,
1269
1269
  onHandleEndChange: t,
@@ -1278,17 +1278,17 @@ const eo = C.div`
1278
1278
  messageEnd: c = "",
1279
1279
  statusStart: g = "pending",
1280
1280
  statusEnd: h = "pending"
1281
- } = e, [f, x] = H(s), [b, D] = H(l), [T, S] = H(p), N = ({ target: $ }) => {
1282
- x($.checked), r && r($.checked);
1283
- }, w = ($) => {
1284
- D($.target.value), n($);
1285
- }, R = ($) => {
1286
- S($.target.value), t($);
1281
+ } = e, [f, x] = H(s), [b, D] = H(l), [T, S] = H(p), N = ({ target: I }) => {
1282
+ x(I.checked), r && r(I.checked);
1283
+ }, w = (I) => {
1284
+ D(I.target.value), n(I);
1285
+ }, R = (I) => {
1286
+ S(I.target.value), t(I);
1287
1287
  }, O = re("(max-width: 400px)");
1288
1288
  return /* @__PURE__ */ m(z, { children: [
1289
1289
  /* @__PURE__ */ m(y, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
1290
1290
  /* @__PURE__ */ i(
1291
- F,
1291
+ $,
1292
1292
  {
1293
1293
  appearance: "gray",
1294
1294
  margin: "10px 0",
@@ -1306,7 +1306,7 @@ const eo = C.div`
1306
1306
  wrap: "wrap",
1307
1307
  gap: "4px",
1308
1308
  children: /* @__PURE__ */ i(
1309
- $n,
1309
+ In,
1310
1310
  {
1311
1311
  label: "Cerrada",
1312
1312
  onChange: N,
@@ -1325,7 +1325,7 @@ const eo = C.div`
1325
1325
  gap: "24px",
1326
1326
  children: [
1327
1327
  /* @__PURE__ */ i(
1328
- Oe,
1328
+ Me,
1329
1329
  {
1330
1330
  id: "dateStart",
1331
1331
  label: o,
@@ -1338,7 +1338,7 @@ const eo = C.div`
1338
1338
  }
1339
1339
  ),
1340
1340
  f && /* @__PURE__ */ i(
1341
- Oe,
1341
+ Me,
1342
1342
  {
1343
1343
  id: "dateEnd",
1344
1344
  label: a,
@@ -1354,7 +1354,7 @@ const eo = C.div`
1354
1354
  }
1355
1355
  )
1356
1356
  ] });
1357
- }, oo = (e) => {
1357
+ }, io = (e) => {
1358
1358
  const {
1359
1359
  formik: n,
1360
1360
  textValues: t,
@@ -1374,7 +1374,7 @@ const eo = C.div`
1374
1374
  isDecision: !0
1375
1375
  }),
1376
1376
  /* @__PURE__ */ i(G, { dashed: !0 }),
1377
- /* @__PURE__ */ i(eo, { children: /* @__PURE__ */ i(no, { children: /* @__PURE__ */ m(
1377
+ /* @__PURE__ */ i(to, { children: /* @__PURE__ */ i(ro, { children: /* @__PURE__ */ m(
1378
1378
  y,
1379
1379
  {
1380
1380
  direction: "column",
@@ -1389,7 +1389,7 @@ const eo = C.div`
1389
1389
  alignItems: "center",
1390
1390
  gap: "64px",
1391
1391
  children: [
1392
- /* @__PURE__ */ i(F, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
1392
+ /* @__PURE__ */ i($, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
1393
1393
  /* @__PURE__ */ i(
1394
1394
  pn,
1395
1395
  {
@@ -1397,7 +1397,7 @@ const eo = C.div`
1397
1397
  onChange: () => s(!n.values.toggleNone),
1398
1398
  checked: n.values.toggleNone,
1399
1399
  size: "small",
1400
- children: /* @__PURE__ */ i(F, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
1400
+ children: /* @__PURE__ */ i($, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
1401
1401
  }
1402
1402
  )
1403
1403
  ]
@@ -1406,7 +1406,7 @@ const eo = C.div`
1406
1406
  /* @__PURE__ */ i(y, { direction: "column", gap: "20px", children: o == null ? void 0 : o.map((c) => {
1407
1407
  var g;
1408
1408
  return /* @__PURE__ */ i(
1409
- to,
1409
+ oo,
1410
1410
  {
1411
1411
  id: `toggle-${c.conditionName}`,
1412
1412
  name: `toggle.${c.conditionName}`,
@@ -1414,7 +1414,7 @@ const eo = C.div`
1414
1414
  checked: !n.values.toggleNone && ((g = n.values.conditionsThatEstablishesTheDecision) == null ? void 0 : g[c.conditionName]) !== void 0,
1415
1415
  handleToggleChange: (h) => d(
1416
1416
  c.conditionName,
1417
- c.howToSetTheCondition === Mn.LIST_OF_VALUES_MULTI
1417
+ c.howToSetTheCondition === Pn.LIST_OF_VALUES_MULTI
1418
1418
  )(h.target.checked),
1419
1419
  children: an({ condition: c, formik: n })
1420
1420
  },
@@ -1427,7 +1427,7 @@ const eo = C.div`
1427
1427
  t.terms && /* @__PURE__ */ m(z, { children: [
1428
1428
  /* @__PURE__ */ i(G, { dashed: !0 }),
1429
1429
  /* @__PURE__ */ i(
1430
- ro,
1430
+ ao,
1431
1431
  {
1432
1432
  labelStart: t.termStart,
1433
1433
  labelEnd: t.termEnd,
@@ -1447,15 +1447,15 @@ const eo = C.div`
1447
1447
  )
1448
1448
  ] }),
1449
1449
  /* @__PURE__ */ i(G, {}),
1450
- l && /* @__PURE__ */ i(F, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
1450
+ l && /* @__PURE__ */ i($, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
1451
1451
  /* @__PURE__ */ m(y, { direction: "row", justifyContent: "end", gap: "16px", children: [
1452
1452
  /* @__PURE__ */ i(q, { appearance: "gray", onClick: r, children: t.cancel }),
1453
1453
  /* @__PURE__ */ i(q, { type: "submit", children: t.confirm })
1454
1454
  ] })
1455
1455
  ] }) });
1456
- }, ao = (e) => {
1456
+ }, lo = (e) => {
1457
1457
  var h, f;
1458
- const { decision: n, onSubmitEvent: t, textValues: r, onCancel: o } = e, { formik: a, handleToggleNoneChange: s } = Jr({
1458
+ const { decision: n, onSubmitEvent: t, textValues: r, onCancel: o } = e, { formik: a, handleToggleNoneChange: s } = no({
1459
1459
  decision: n,
1460
1460
  onSubmitEvent: t,
1461
1461
  textValues: r
@@ -1469,7 +1469,7 @@ const eo = C.div`
1469
1469
  (x) => !x.hidden
1470
1470
  )) || [], p = !!a.errors.conditionsThatEstablishesTheDecision && a.submitCount > 0, u = a.touched.effectiveFrom ? a.errors.effectiveFrom ? "invalid" : "valid" : void 0, c = a.touched.validUntil ? a.errors.validUntil ? "invalid" : "valid" : void 0;
1471
1471
  return /* @__PURE__ */ i(
1472
- oo,
1472
+ io,
1473
1473
  {
1474
1474
  formik: a,
1475
1475
  onCancel: o,
@@ -1501,7 +1501,7 @@ const eo = C.div`
1501
1501
  termEndStatus: c
1502
1502
  }
1503
1503
  );
1504
- }, io = (e) => {
1504
+ }, so = (e) => {
1505
1505
  const {
1506
1506
  controls: n,
1507
1507
  customTitleContentAddCard: t,
@@ -1534,7 +1534,7 @@ const eo = C.div`
1534
1534
  })
1535
1535
  ), p = ((r == null ? void 0 : r.length) === 0 || r.length < Math.floor(window.innerWidth / 300)) && !o && n;
1536
1536
  return { renderedCards: l, shouldRenderAddCard: p };
1537
- }, vl = (e) => {
1537
+ }, xl = (e) => {
1538
1538
  const {
1539
1539
  controls: n = !0,
1540
1540
  customTitleContentAddCard: t,
@@ -1550,7 +1550,7 @@ const eo = C.div`
1550
1550
  handleSubmitForm: g,
1551
1551
  handleDelete: h,
1552
1552
  terms: f = !0
1553
- } = e, x = re("(max-width: 681px)"), b = re("(max-width: 400px)"), { renderedCards: D, shouldRenderAddCard: T } = io({
1553
+ } = e, x = re("(max-width: 681px)"), b = re("(max-width: 400px)"), { renderedCards: D, shouldRenderAddCard: T } = so({
1554
1554
  controls: n,
1555
1555
  customTitleContentAddCard: t,
1556
1556
  decisions: o,
@@ -1560,7 +1560,7 @@ const eo = C.div`
1560
1560
  textValues: a
1561
1561
  }), S = (o == null ? void 0 : o.length) === 0 && !p;
1562
1562
  return /* @__PURE__ */ m(z, { children: [
1563
- /* @__PURE__ */ i(Er, { children: /* @__PURE__ */ i(Nr, { children: /* @__PURE__ */ i(y, { direction: "column", gap: "16px", padding: "6px", children: S ? /* @__PURE__ */ m(
1563
+ /* @__PURE__ */ i(kr, { children: /* @__PURE__ */ i(Ar, { children: /* @__PURE__ */ i(y, { direction: "column", gap: "16px", padding: "6px", children: S ? /* @__PURE__ */ m(
1564
1564
  y,
1565
1565
  {
1566
1566
  direction: "column",
@@ -1570,10 +1570,10 @@ const eo = C.div`
1570
1570
  justifyContent: "center",
1571
1571
  alignItems: "center",
1572
1572
  children: [
1573
- /* @__PURE__ */ i(F, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(z, { children: [
1573
+ /* @__PURE__ */ i($, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(z, { children: [
1574
1574
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
1575
1575
  /* @__PURE__ */ m(
1576
- F,
1576
+ $,
1577
1577
  {
1578
1578
  as: "span",
1579
1579
  type: "label",
@@ -1592,7 +1592,7 @@ const eo = C.div`
1592
1592
  /* @__PURE__ */ i(
1593
1593
  q,
1594
1594
  {
1595
- iconBefore: /* @__PURE__ */ i(We, {}),
1595
+ iconBefore: /* @__PURE__ */ i(Xe, {}),
1596
1596
  onClick: () => u ? u() : null,
1597
1597
  children: t || "Agregar decisión"
1598
1598
  }
@@ -1600,7 +1600,7 @@ const eo = C.div`
1600
1600
  ]
1601
1601
  }
1602
1602
  ) : /* @__PURE__ */ m(
1603
- Xe,
1603
+ Qe,
1604
1604
  {
1605
1605
  templateColumns: b ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
1606
1606
  autoFlow: "row dense",
@@ -1630,13 +1630,13 @@ const eo = C.div`
1630
1630
  }
1631
1631
  ) }) }) }),
1632
1632
  d && /* @__PURE__ */ i(
1633
- Dr,
1633
+ Er,
1634
1634
  {
1635
1635
  portalId: "modal-portal",
1636
1636
  onCloseModal: c,
1637
1637
  title: l ? "Editar Decisión" : "Nueva decisión",
1638
1638
  children: /* @__PURE__ */ i(
1639
- ao,
1639
+ lo,
1640
1640
  {
1641
1641
  decision: l || s,
1642
1642
  onSubmitEvent: g,
@@ -1648,20 +1648,20 @@ const eo = C.div`
1648
1648
  }
1649
1649
  )
1650
1650
  ] });
1651
- }, ht = (e) => {
1651
+ }, ft = (e) => {
1652
1652
  const { children: n } = e;
1653
- return /* @__PURE__ */ i(qt, { width: "100%", children: n });
1654
- }, lo = (e) => e.value, so = (e) => e.value, co = (e) => e.value, uo = (e) => ({
1653
+ return /* @__PURE__ */ i(Yt, { width: "100%", children: n });
1654
+ }, co = (e) => e.value, uo = (e) => e.value, po = (e) => e.value, go = (e) => ({
1655
1655
  from: e.from ?? "",
1656
1656
  to: e.to ?? ""
1657
- }), po = (e) => e.value, go = (e) => e.value, ho = (e) => e.value, fo = {
1658
- [k.LIST_OF_VALUES]: so,
1659
- [k.LIST_OF_VALUES_MULTI]: co,
1660
- [k.RANGE]: uo,
1661
- [k.GREATER_THAN]: po,
1662
- [k.LESS_THAN]: go,
1663
- [k.EQUAL]: ho
1664
- }, qe = (e) => {
1657
+ }), ho = (e) => e.value, fo = (e) => e.value, mo = (e) => e.value, bo = {
1658
+ [k.LIST_OF_VALUES]: uo,
1659
+ [k.LIST_OF_VALUES_MULTI]: po,
1660
+ [k.RANGE]: go,
1661
+ [k.GREATER_THAN]: ho,
1662
+ [k.LESS_THAN]: fo,
1663
+ [k.EQUAL]: mo
1664
+ }, Ge = (e) => {
1665
1665
  const n = e == null ? void 0 : e.value;
1666
1666
  if (typeof n == "string" && n.includes(" a ")) {
1667
1667
  const t = [
@@ -1678,8 +1678,8 @@ const eo = C.div`
1678
1678
  }
1679
1679
  return n;
1680
1680
  }
1681
- return typeof n == "object" && n !== null && !Array.isArray(n) ? "from" in n && "to" in n ? n : (fo[e == null ? void 0 : e.howToSetTheDecision] || lo)(n) : n || void 0;
1682
- }, mo = C.div`
1681
+ return typeof n == "object" && n !== null && !Array.isArray(n) ? "from" in n && "to" in n ? n : (bo[e == null ? void 0 : e.howToSetTheDecision] || co)(n) : n || void 0;
1682
+ }, vo = C.div`
1683
1683
  display: flex;
1684
1684
  justify-content: ${({ $justifyContent: e }) => e};
1685
1685
  align-items: ${({ $alignItems: e }) => e};
@@ -1723,7 +1723,7 @@ const eo = C.div`
1723
1723
  scroll: D = !1
1724
1724
  } = e;
1725
1725
  return /* @__PURE__ */ i(
1726
- mo,
1726
+ vo,
1727
1727
  {
1728
1728
  ref: n,
1729
1729
  direction: o,
@@ -1776,20 +1776,20 @@ C.div`
1776
1776
  border-radius: 8px;
1777
1777
  }
1778
1778
  `;
1779
- const bo = C.div`
1779
+ const yo = C.div`
1780
1780
  cursor: pointer;
1781
- `, vo = C.div`
1781
+ `, xo = C.div`
1782
1782
  & > div > div > div > p {
1783
1783
  text-wrap-mode: nowrap;
1784
1784
  }
1785
- `, yo = C.div`
1785
+ `, To = C.div`
1786
1786
  & > div {
1787
1787
  justify-content: auto;
1788
1788
  gap: 8px;
1789
1789
  }
1790
1790
  `;
1791
1791
  var se = /* @__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))(se || {});
1792
- const xo = (e) => {
1792
+ const wo = (e) => {
1793
1793
  const {
1794
1794
  controls: n,
1795
1795
  conditionsAlignment: t,
@@ -1813,14 +1813,14 @@ const xo = (e) => {
1813
1813
  hasMultipleGroups: N
1814
1814
  } = e;
1815
1815
  return a ? /* @__PURE__ */ m(y, { direction: "column", gap: "16px", children: [
1816
- /* @__PURE__ */ i(bo, { onClick: p, children: /* @__PURE__ */ m(
1816
+ /* @__PURE__ */ i(yo, { onClick: p, children: /* @__PURE__ */ m(
1817
1817
  y,
1818
1818
  {
1819
1819
  alignItems: "start",
1820
1820
  justifyContent: "space-between",
1821
1821
  children: [
1822
1822
  /* @__PURE__ */ m(y, { gap: "12px", children: [
1823
- /* @__PURE__ */ i(vo, { children: /* @__PURE__ */ i(
1823
+ /* @__PURE__ */ i(xo, { children: /* @__PURE__ */ i(
1824
1824
  ke,
1825
1825
  {
1826
1826
  id: "tag",
@@ -1829,11 +1829,11 @@ const xo = (e) => {
1829
1829
  displayIcon: !1
1830
1830
  }
1831
1831
  ) }),
1832
- /* @__PURE__ */ i(yo, { children: /* @__PURE__ */ i(
1832
+ /* @__PURE__ */ i(To, { children: /* @__PURE__ */ i(
1833
1833
  Je,
1834
1834
  {
1835
1835
  element: o,
1836
- valueData: qe(
1836
+ valueData: Ge(
1837
1837
  o
1838
1838
  ),
1839
1839
  type: "decision"
@@ -1843,10 +1843,10 @@ const xo = (e) => {
1843
1843
  /* @__PURE__ */ m(y, { gap: "12px", children: [
1844
1844
  n && /* @__PURE__ */ m(z, { children: [
1845
1845
  /* @__PURE__ */ i(
1846
- U,
1846
+ j,
1847
1847
  {
1848
1848
  appearance: "primary",
1849
- icon: /* @__PURE__ */ i(Lt, {}),
1849
+ icon: /* @__PURE__ */ i(Mt, {}),
1850
1850
  size: "24px",
1851
1851
  cursorHover: !0,
1852
1852
  onClick: (w) => {
@@ -1855,7 +1855,7 @@ const xo = (e) => {
1855
1855
  }
1856
1856
  ),
1857
1857
  /* @__PURE__ */ i(
1858
- U,
1858
+ j,
1859
1859
  {
1860
1860
  appearance: "danger",
1861
1861
  icon: /* @__PURE__ */ i(dn, {}),
@@ -1868,10 +1868,10 @@ const xo = (e) => {
1868
1868
  )
1869
1869
  ] }),
1870
1870
  /* @__PURE__ */ i(
1871
- U,
1871
+ j,
1872
1872
  {
1873
1873
  appearance: "dark",
1874
- icon: l ? /* @__PURE__ */ i(Ot, {}) : /* @__PURE__ */ i(Cn, {}),
1874
+ icon: l ? /* @__PURE__ */ i(Pt, {}) : /* @__PURE__ */ i(Cn, {}),
1875
1875
  size: "24px",
1876
1876
  cursorHover: !0
1877
1877
  }
@@ -1884,14 +1884,14 @@ const xo = (e) => {
1884
1884
  l && /* @__PURE__ */ m(z, { children: [
1885
1885
  /* @__PURE__ */ i(G, { dashed: !0 }),
1886
1886
  N ? /* @__PURE__ */ i(
1887
- dt,
1887
+ ct,
1888
1888
  {
1889
1889
  tabs: b,
1890
1890
  selectedTab: D,
1891
1891
  onChange: T
1892
1892
  }
1893
1893
  ) : /* @__PURE__ */ i(
1894
- F,
1894
+ $,
1895
1895
  {
1896
1896
  type: "label",
1897
1897
  size: "large",
@@ -1924,7 +1924,7 @@ const xo = (e) => {
1924
1924
  value: w.value,
1925
1925
  howToSetTheCondition: w.howToSetTheCondition === se.LIST_OF_VALUES ? se.LIST_OF_VALUES_MULTI : w.howToSetTheCondition
1926
1926
  },
1927
- valueData: qe(
1927
+ valueData: Ge(
1928
1928
  w
1929
1929
  )
1930
1930
  }
@@ -1977,18 +1977,24 @@ const xo = (e) => {
1977
1977
  ] }),
1978
1978
  /* @__PURE__ */ m(y, { alignItems: "center", gap: "8px", children: [
1979
1979
  /* @__PURE__ */ i(ee, { animated: !0, width: "50px" }),
1980
- /* @__PURE__ */ i(Gt, { animated: !0 })
1980
+ /* @__PURE__ */ i(Wt, { animated: !0 })
1981
1981
  ] })
1982
1982
  ] });
1983
- }, qn = (e) => !!e && typeof e == "object" && !Array.isArray(e) && Object.values(e).every(Array.isArray), on = (e) => {
1983
+ }, Gn = (e) => !e || typeof e != "object" || Array.isArray(e) ? !1 : Object.values(e).some(Array.isArray), on = (e) => {
1984
1984
  const n = /* @__PURE__ */ new Set(), t = [];
1985
1985
  for (const r of e) {
1986
1986
  const o = String((r == null ? void 0 : r.conditionName) ?? "");
1987
1987
  n.has(o) || (n.add(o), t.push(r));
1988
1988
  }
1989
1989
  return t;
1990
- }, Pe = (e) => {
1990
+ }, ze = (e) => {
1991
1991
  if (!e) return {};
1992
+ if (Gn(e.conditionsThatEstablishesTheDecision)) {
1993
+ const n = e.conditionsThatEstablishesTheDecision;
1994
+ return Object.fromEntries(
1995
+ Object.entries(n).map(([t, r]) => [t, on(r)])
1996
+ );
1997
+ }
1992
1998
  if (Array.isArray(e.conditionGroups)) {
1993
1999
  const n = e.conditionGroups.map((t) => [
1994
2000
  t.ConditionGroupId,
@@ -1998,29 +2004,19 @@ const xo = (e) => {
1998
2004
  ]);
1999
2005
  return Object.fromEntries(n);
2000
2006
  }
2001
- if (qn(e.conditionsThatEstablishesTheDecision)) {
2002
- const n = e.conditionsThatEstablishesTheDecision;
2003
- return Object.fromEntries(
2004
- Object.entries(n).map(([t, r]) => [t, on(r)])
2005
- );
2006
- }
2007
- return qn(e) ? Object.fromEntries(
2007
+ return Gn(e) ? Object.fromEntries(
2008
2008
  Object.entries(e).map(([n, t]) => [n, on(t)])
2009
2009
  ) : {};
2010
- }, ft = (e, n) => Object.fromEntries(
2010
+ }, mt = (e, n) => Object.fromEntries(
2011
2011
  Object.entries(e).map(([t, r]) => [t, r.filter(n)])
2012
- ), To = (e, n) => {
2013
- switch (n) {
2014
- case "Year":
2015
- return `${e} en años`;
2016
- case "Month":
2017
- return `${e} en meses`;
2018
- case "Day":
2019
- return `${e} en días`;
2020
- default:
2021
- return `${e}`;
2022
- }
2023
- }, wo = (e, n) => {
2012
+ ), Co = {
2013
+ Year: { label: "en años", labelView: "años" },
2014
+ Month: { label: "en meses", labelView: "meses" },
2015
+ Day: { label: "en días", labelView: "días" }
2016
+ }, En = (e, n, t = !1) => {
2017
+ const r = Co[n ?? ""];
2018
+ return r ? t ? `${e} ${r.labelView}` : `${e} ${r.label}` : e;
2019
+ }, Do = (e, n) => {
2024
2020
  if (e == null) return "";
2025
2021
  const t = Array.isArray(e) ? e.join(", ") : typeof e == "object" && e !== null ? JSON.stringify(e) : String(e ?? "");
2026
2022
  switch (n) {
@@ -2062,7 +2058,7 @@ const xo = (e) => {
2062
2058
  if (isNaN(r.getTime())) return "";
2063
2059
  const o = r.getUTCDate(), a = r.getUTCMonth(), s = r.getUTCFullYear(), d = String(o).padStart(2, "0"), l = n[a] ?? "";
2064
2060
  return l ? `${d}/${l}/${s}` : "";
2065
- }, Gn = (e, n) => e === "group-primary" ? "Condición principal" : `Condición alterna N° ${String(n).padStart(2, "0")}`, mt = (e) => {
2061
+ }, Yn = (e, n) => e === "group-primary" ? "Condición principal" : `Condición alterna N° ${String(n).padStart(2, "0")}`, bt = (e) => {
2066
2062
  var me, le, _;
2067
2063
  const {
2068
2064
  cardTitle: n = !0,
@@ -2082,7 +2078,7 @@ const xo = (e) => {
2082
2078
  howToSetTheDecision: ne.EQUAL,
2083
2079
  decisionDataType: B.DATE
2084
2080
  },
2085
- valueData: qe({
2081
+ valueData: Ge({
2086
2082
  labelName: o == null ? void 0 : o.effectiveFrom,
2087
2083
  value: en(t.effectiveFrom),
2088
2084
  howToSetTheDecision: ne.EQUAL,
@@ -2095,7 +2091,7 @@ const xo = (e) => {
2095
2091
  howToSetTheDecision: ne.EQUAL,
2096
2092
  decisionDataType: B.DATE
2097
2093
  },
2098
- valueData: qe({
2094
+ valueData: Ge({
2099
2095
  labelName: o == null ? void 0 : o.validUntil,
2100
2096
  value: en(t.validUntil),
2101
2097
  howToSetTheDecision: ne.EQUAL,
@@ -2104,10 +2100,10 @@ const xo = (e) => {
2104
2100
  } : null, x = t ? {
2105
2101
  labelName: n && t.labelName || "",
2106
2102
  decisionDataType: t.decisionDataType || B.ALPHABETICAL,
2107
- value: qe(t),
2103
+ value: Ge(t),
2108
2104
  howToSetTheDecision: t.howToSetTheDecision || ne.EQUAL
2109
2105
  } : null, b = P.useMemo(
2110
- () => t ? Pe(t) : {},
2106
+ () => t ? ze(t) : {},
2111
2107
  [t]
2112
2108
  ), D = ((le = (me = t == null ? void 0 : t.conditionGroups) == null ? void 0 : me.map((A) => A == null ? void 0 : A.ConditionGroupId)) == null ? void 0 : le.filter(Boolean)) || Object.keys(b), T = D[0] || "group-primary", S = P.useMemo(() => {
2113
2109
  const A = {}, M = b[T] || [], pe = b["group-primary"] || [];
@@ -2128,36 +2124,36 @@ const xo = (e) => {
2128
2124
  return Object.keys(S).forEach((M) => {
2129
2125
  const pe = S[M];
2130
2126
  pe && Array.isArray(pe) ? A[M] = pe.map((L) => {
2131
- let I = L.labelName;
2132
- L.timeUnit && L.labelName && (I = To(L.labelName, L.timeUnit));
2133
- let j = L.value;
2134
- return (L == null ? void 0 : L.howToSetTheCondition) !== void 0 && (L == null ? void 0 : L.howToSetTheCondition) !== null && (L == null ? void 0 : L.value) !== void 0 && (L == null ? void 0 : L.value) !== null && (j = wo(
2127
+ let F = L.labelName;
2128
+ L.timeUnit && L.labelName && (F = En(L.labelName, L.timeUnit));
2129
+ let U = L.value;
2130
+ return (L == null ? void 0 : L.howToSetTheCondition) !== void 0 && (L == null ? void 0 : L.howToSetTheCondition) !== null && (L == null ? void 0 : L.value) !== void 0 && (L == null ? void 0 : L.value) !== null && (U = Do(
2135
2131
  L.value,
2136
2132
  L.howToSetTheCondition
2137
2133
  )), {
2138
2134
  ...L,
2139
- labelName: I,
2140
- value: j
2135
+ labelName: F,
2136
+ value: U
2141
2137
  };
2142
2138
  }) : A[M] = pe;
2143
2139
  }), A;
2144
- }, [S]), R = ft(
2140
+ }, [S]), R = mt(
2145
2141
  w,
2146
2142
  (A) => !A.hidden
2147
2143
  ), O = {};
2148
- let $ = 1;
2144
+ let I = 1;
2149
2145
  const V = N.map((A) => {
2150
- const M = A === "group-primary" ? "mainCondition" : `alternateCondition-${$++}`;
2146
+ const M = A === "group-primary" ? "mainCondition" : `alternateCondition-${I++}`;
2151
2147
  return O[M] = A, {
2152
2148
  id: M,
2153
- label: A === "group-primary" ? Gn(A, 0) : Gn(A, Number(M.split("-").at(-1))),
2149
+ label: A === "group-primary" ? Yn(A, 0) : Yn(A, Number(M.split("-").at(-1))),
2154
2150
  isDisabled: !1
2155
2151
  };
2156
2152
  }), [Z, be] = P.useState(
2157
2153
  ((_ = V[0]) == null ? void 0 : _.id) ?? "mainCondition"
2158
2154
  ), ve = (A) => be(A), fe = O[Z] ?? "group-primary", ae = R[fe] ?? [], ye = N.length > 1, Ne = Array.from({ length: 5 }), ue = !!(!r && t && o && x), xe = ae.length < 2 ? "start" : "space-between", Te = `N° ${String((a ?? 0) + 1).padStart(2, "0")}`;
2159
2155
  return /* @__PURE__ */ i(
2160
- xo,
2156
+ wo,
2161
2157
  {
2162
2158
  conditionsAlignment: xe,
2163
2159
  controls: u,
@@ -2182,7 +2178,7 @@ const xo = (e) => {
2182
2178
  hasMultipleGroups: ye
2183
2179
  }
2184
2180
  );
2185
- }, Co = In`
2181
+ }, So = Fn`
2186
2182
  from {
2187
2183
  opacity: 0;
2188
2184
  transform: translateY(20px);
@@ -2216,7 +2212,7 @@ C.div`
2216
2212
  }};
2217
2213
  }
2218
2214
  `;
2219
- const Do = C.div`
2215
+ const Eo = C.div`
2220
2216
  & > div {
2221
2217
  box-shadow: 0px 2px 3px 0px
2222
2218
  ${({ theme: e }) => {
@@ -2225,18 +2221,18 @@ const Do = C.div`
2225
2221
  }};
2226
2222
  cursor: pointer;
2227
2223
  }
2228
- `, So = C.div`
2224
+ `, No = C.div`
2229
2225
  width: 100%;
2230
2226
  height: 100%;
2231
2227
  & > div {
2232
- animation: ${Co} 600ms ease-out;
2228
+ animation: ${So} 600ms ease-out;
2233
2229
  }
2234
- `, Eo = C.div`
2230
+ `, ko = C.div`
2235
2231
  & > div > div {
2236
2232
  border-radius: 8px;
2237
2233
  box-sizing: border-box;
2238
2234
  }
2239
- `, No = C.div`
2235
+ `, Ao = C.div`
2240
2236
  & > div {
2241
2237
  width: 100%;
2242
2238
  height: 100%;
@@ -2256,21 +2252,21 @@ const Do = C.div`
2256
2252
  border-radius: 8px;
2257
2253
  }
2258
2254
  }
2259
- `, ko = (e) => {
2255
+ `, $o = (e) => {
2260
2256
  const { index: n, handleOpenModal: t } = e;
2261
2257
  return /* @__PURE__ */ i(
2262
- ht,
2258
+ ft,
2263
2259
  {
2264
2260
  id: `loading-card-${n}`,
2265
2261
  handleDelete: () => {
2266
2262
  },
2267
2263
  handleView: () => t ? t() : null,
2268
2264
  controls: !1,
2269
- children: /* @__PURE__ */ i(mt, { loading: !0 })
2265
+ children: /* @__PURE__ */ i(bt, { loading: !0 })
2270
2266
  },
2271
2267
  `loading-card-${n}`
2272
2268
  );
2273
- }, Ao = (e) => {
2269
+ }, Io = (e) => {
2274
2270
  const {
2275
2271
  cardTitle: n,
2276
2272
  decision: t,
@@ -2282,14 +2278,14 @@ const Do = C.div`
2282
2278
  isOpen: l,
2283
2279
  onToggle: p
2284
2280
  } = e;
2285
- return t ? /* @__PURE__ */ i(Ze, { children: /* @__PURE__ */ i(y, { direction: "column", gap: "4px", width: "100%", children: /* @__PURE__ */ i(
2286
- ht,
2281
+ return t ? /* @__PURE__ */ i(Ke, { children: /* @__PURE__ */ i(y, { direction: "column", gap: "4px", width: "100%", children: /* @__PURE__ */ i(
2282
+ ft,
2287
2283
  {
2288
2284
  id: t.decisionId,
2289
2285
  handleDelete: () => a ? a(t.decisionId) : null,
2290
2286
  handleView: () => o ? o(t) : null,
2291
2287
  children: /* @__PURE__ */ i(
2292
- mt,
2288
+ bt,
2293
2289
  {
2294
2290
  cardTitle: n,
2295
2291
  controls: r,
@@ -2304,15 +2300,15 @@ const Do = C.div`
2304
2300
  )
2305
2301
  }
2306
2302
  ) }) }, t.decisionId) : null;
2307
- }, $o = (e) => {
2303
+ }, Fo = (e) => {
2308
2304
  const {
2309
2305
  customTitleContentAddCard: n,
2310
2306
  index: t,
2311
2307
  handleOpenModal: r,
2312
2308
  shouldRenderEmptyMessage: o
2313
2309
  } = e;
2314
- return /* @__PURE__ */ i(So, { children: o ? null : /* @__PURE__ */ i(
2315
- Do,
2310
+ return /* @__PURE__ */ i(No, { children: o ? null : /* @__PURE__ */ i(
2311
+ Eo,
2316
2312
  {
2317
2313
  onClick: () => r ? r() : null,
2318
2314
  children: /* @__PURE__ */ i(
@@ -2331,12 +2327,12 @@ const Do = C.div`
2331
2327
  alignItems: "center",
2332
2328
  padding: "16px",
2333
2329
  children: [
2334
- /* @__PURE__ */ i(F, { appearance: "gray", type: "label", size: "large", weight: "bold", children: n || "Agregar decisión" }),
2330
+ /* @__PURE__ */ i($, { appearance: "gray", type: "label", size: "large", weight: "bold", children: n || "Agregar decisión" }),
2335
2331
  /* @__PURE__ */ i(
2336
- U,
2332
+ j,
2337
2333
  {
2338
2334
  appearance: "gray",
2339
- icon: /* @__PURE__ */ i(We, {}),
2335
+ icon: /* @__PURE__ */ i(Xe, {}),
2340
2336
  size: "24px",
2341
2337
  cursorHover: !0
2342
2338
  }
@@ -2348,14 +2344,14 @@ const Do = C.div`
2348
2344
  )
2349
2345
  }
2350
2346
  ) }, `add-decision-${t}`);
2351
- }, Io = {
2352
- loading: ko,
2353
- decision: Ao,
2354
- add: $o
2355
- }, En = (e) => {
2356
- const { type: n } = e, t = Io[n];
2347
+ }, Ro = {
2348
+ loading: $o,
2349
+ decision: Io,
2350
+ add: Fo
2351
+ }, Nn = (e) => {
2352
+ const { type: n } = e, t = Ro[n];
2357
2353
  return t ? t(e) : null;
2358
- }, Fo = (e) => {
2354
+ }, Lo = (e) => {
2359
2355
  const {
2360
2356
  cardTitle: n,
2361
2357
  controls: t,
@@ -2368,7 +2364,7 @@ const Do = C.div`
2368
2364
  isOpenFor: p,
2369
2365
  toggleAt: u
2370
2366
  } = e, c = a ? Array.from({ length: 3 }).map(
2371
- (h, f) => En({
2367
+ (h, f) => Nn({
2372
2368
  type: "loading",
2373
2369
  index: f,
2374
2370
  controls: t,
@@ -2379,7 +2375,7 @@ const Do = C.div`
2379
2375
  textValues: l
2380
2376
  })
2381
2377
  ) : o == null ? void 0 : o.map(
2382
- (h, f) => En({
2378
+ (h, f) => Nn({
2383
2379
  cardTitle: n,
2384
2380
  type: "decision",
2385
2381
  decision: h,
@@ -2395,13 +2391,13 @@ const Do = C.div`
2395
2391
  })
2396
2392
  ), g = ((o == null ? void 0 : o.length) === 0 || o.length < Math.floor(window.innerWidth / 300)) && !a && t;
2397
2393
  return { renderedCards: c, shouldRenderAddCard: g };
2398
- }, Ro = C.div`
2394
+ }, Oo = C.div`
2399
2395
  position: relative;
2400
2396
  & > div {
2401
2397
  padding: 24px 16px;
2402
2398
  place-items: unset;
2403
2399
  }
2404
- `, Lo = C.div`
2400
+ `, Mo = C.div`
2405
2401
  background-color: ${({ theme: e }) => {
2406
2402
  var n, t;
2407
2403
  return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || E.palette.neutral.N0;
@@ -2433,7 +2429,7 @@ const Do = C.div`
2433
2429
  background-color: #ebecf0;
2434
2430
  border-radius: 8px;
2435
2431
  }
2436
- `, Oo = (e) => {
2432
+ `, Po = (e) => {
2437
2433
  const { children: n, description: t, portalId: r, onCloseModal: o, title: a } = e, s = document.getElementById(r);
2438
2434
  if (!s)
2439
2435
  throw new Error(
@@ -2441,12 +2437,12 @@ const Do = C.div`
2441
2437
  );
2442
2438
  const d = re("(max-width: 400px)");
2443
2439
  return gn(
2444
- /* @__PURE__ */ i(Ro, { smallScreen: d, children: /* @__PURE__ */ i(un, { children: /* @__PURE__ */ i(Lo, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "24px", children: [
2440
+ /* @__PURE__ */ i(Oo, { smallScreen: d, children: /* @__PURE__ */ i(un, { children: /* @__PURE__ */ i(Mo, { children: /* @__PURE__ */ m(y, { direction: "column", gap: "24px", children: [
2445
2441
  /* @__PURE__ */ m(y, { direction: "column", gap: "24px", children: [
2446
2442
  /* @__PURE__ */ m(y, { alignItems: "center", justifyContent: "space-between", children: [
2447
2443
  /* @__PURE__ */ m(y, { direction: "column", gap: "8px", children: [
2448
2444
  /* @__PURE__ */ i(
2449
- F,
2445
+ $,
2450
2446
  {
2451
2447
  type: "title",
2452
2448
  size: "medium",
@@ -2455,7 +2451,7 @@ const Do = C.div`
2455
2451
  children: a
2456
2452
  }
2457
2453
  ),
2458
- /* @__PURE__ */ i(F, { size: "medium", appearance: "gray", children: t })
2454
+ /* @__PURE__ */ i($, { size: "medium", appearance: "gray", children: t })
2459
2455
  ] }),
2460
2456
  /* @__PURE__ */ i(cn, { size: "24px", cursor: "pointer", onClick: o })
2461
2457
  ] }),
@@ -2465,15 +2461,15 @@ const Do = C.div`
2465
2461
  ] }) }) }) }),
2466
2462
  s
2467
2463
  );
2468
- }, Mo = (e) => ({
2464
+ }, zo = (e) => ({
2469
2465
  schema: de().required("Requerido").test(
2470
2466
  "non-empty",
2471
2467
  "El valor no puede estar vacío",
2472
2468
  (n) => n != null && n.trim() !== ""
2473
2469
  ),
2474
2470
  value: e
2475
- }), Po = (e) => ({
2476
- schema: Ve().test(
2471
+ }), Vo = (e) => ({
2472
+ schema: _e().test(
2477
2473
  "isArrayOrString",
2478
2474
  "Por favor selecciona una opcion",
2479
2475
  (n) => Array.isArray(n) ? n.every(
@@ -2481,8 +2477,8 @@ const Do = C.div`
2481
2477
  ) : typeof n == "string"
2482
2478
  ),
2483
2479
  value: e
2484
- }), zo = (e) => ({
2485
- schema: Ve().test(
2480
+ }), _o = (e) => ({
2481
+ schema: _e().test(
2486
2482
  "isArrayOrString",
2487
2483
  "Por favor selecciona al menos una opcion",
2488
2484
  (n) => Array.isArray(n) ? n.every(
@@ -2490,7 +2486,7 @@ const Do = C.div`
2490
2486
  ) : typeof n == "string"
2491
2487
  ),
2492
2488
  value: e
2493
- }), Vo = (e) => {
2489
+ }), Uo = (e) => {
2494
2490
  const n = (e == null ? void 0 : e.from) ?? 0, t = (e == null ? void 0 : e.to) ?? 0;
2495
2491
  return {
2496
2492
  schema: te({
@@ -2530,20 +2526,20 @@ const Do = C.div`
2530
2526
  schema: de().required("Requerido"),
2531
2527
  value: e
2532
2528
  };
2533
- }, _o = {
2534
- [k.LIST_OF_VALUES]: Po,
2535
- [k.LIST_OF_VALUES_MULTI]: zo,
2536
- [k.RANGE]: Vo,
2529
+ }, jo = {
2530
+ [k.LIST_OF_VALUES]: Vo,
2531
+ [k.LIST_OF_VALUES_MULTI]: _o,
2532
+ [k.RANGE]: Uo,
2537
2533
  [k.GREATER_THAN]: yn,
2538
2534
  [k.LESS_THAN]: yn,
2539
2535
  [k.EQUAL]: yn
2540
- }, Yn = (e) => _o[e] || Mo;
2541
- function jo({
2536
+ }, Wn = (e) => jo[e] || zo;
2537
+ function Ho({
2542
2538
  decision: e,
2543
2539
  onSubmitEvent: n,
2544
2540
  textValues: t
2545
2541
  }) {
2546
- const r = Pe(e) || {}, o = () => Object.values(r).flat(), a = {
2542
+ const r = ze(e) || {}, o = () => Object.values(r).flat(), a = {
2547
2543
  ruleName: e.ruleName || "",
2548
2544
  decisionDataType: e.decisionDataType || B.ALPHABETICAL,
2549
2545
  howToSetTheDecision: e.howToSetTheDecision || "",
@@ -2558,19 +2554,19 @@ function jo({
2558
2554
  let s;
2559
2555
  const d = {
2560
2556
  ruleName: de().required("El nombre de la decision es requerido"),
2561
- value: Ge(() => Yn(
2557
+ value: Ye(() => Wn(
2562
2558
  s.values.howToSetTheDecision
2563
2559
  )(
2564
2560
  s.values.value,
2565
2561
  s.values.decisionDataType
2566
2562
  ).schema),
2567
- conditionsThatEstablishesTheDecision: Ge((u, { parent: c }) => {
2563
+ conditionsThatEstablishesTheDecision: Ye((u, { parent: c }) => {
2568
2564
  if ((c == null ? void 0 : c.toggleNone) && Object.keys(c.conditionsThatEstablishesTheDecision || {}).length > 0) return te().shape({});
2569
2565
  const f = o().reduce(
2570
2566
  (x, b) => {
2571
2567
  var T;
2572
2568
  if (((T = s.values.conditionsThatEstablishesTheDecision) == null ? void 0 : T[b.conditionName]) !== void 0) {
2573
- const S = Yn(
2569
+ const S = Wn(
2574
2570
  b.howToSetTheCondition
2575
2571
  );
2576
2572
  x[b.conditionName] = S(
@@ -2591,9 +2587,9 @@ function jo({
2591
2587
  );
2592
2588
  })
2593
2589
  };
2594
- t.terms && (d.effectiveFrom = Me().required(
2590
+ t.terms && (d.effectiveFrom = Pe().required(
2595
2591
  "Se requiere la fecha de vigencia desde"
2596
- ), d.validUntil = Me().when(
2592
+ ), d.validUntil = Pe().when(
2597
2593
  "checkClosed",
2598
2594
  (u, c, { parent: g }) => (g == null ? void 0 : g.checkClosed) ? c.required("Se requiere la fecha de vigencia hasta").test(
2599
2595
  "is-after-startDate",
@@ -2605,7 +2601,7 @@ function jo({
2605
2601
  ) : c.notRequired()
2606
2602
  ));
2607
2603
  const l = te(d);
2608
- return s = Rn({
2604
+ return s = Ln({
2609
2605
  initialValues: a,
2610
2606
  validationSchema: l,
2611
2607
  validateOnBlur: !0,
@@ -2682,16 +2678,17 @@ C.div`
2682
2678
  border-radius: 8px;
2683
2679
  }
2684
2680
  `;
2685
- const Uo = C.div`
2681
+ const Bo = C.div`
2686
2682
  display: flex;
2687
2683
  width: -webkit-fill-available;
2684
+ align-items: center;
2688
2685
  & > div {
2689
2686
  display: grid;
2690
2687
  grid-template-columns: repeat(2, 1fr);
2691
2688
  gap: 16px;
2692
2689
  width: -webkit-fill-available;
2693
2690
  }
2694
- `, Ho = (e) => {
2691
+ `, qo = (e) => {
2695
2692
  const {
2696
2693
  onHandleStartChange: n,
2697
2694
  onHandleEndChange: t,
@@ -2706,18 +2703,18 @@ const Uo = C.div`
2706
2703
  messageEnd: c = "",
2707
2704
  statusStart: g = "pending",
2708
2705
  statusEnd: h = "pending"
2709
- } = e, [f, x] = H(s), [b, D] = H(l), [T, S] = H(p), N = ({ target: $ }) => {
2710
- x($.checked), r && r($.checked);
2711
- }, w = ($) => {
2712
- D($.target.value), n($);
2713
- }, R = ($) => {
2714
- S($.target.value), t($);
2706
+ } = e, [f, x] = H(s), [b, D] = H(l), [T, S] = H(p), N = ({ target: I }) => {
2707
+ x(I.checked), r && r(I.checked);
2708
+ }, w = (I) => {
2709
+ D(I.target.value), n(I);
2710
+ }, R = (I) => {
2711
+ S(I.target.value), t(I);
2715
2712
  }, O = re("(max-width: 400px)");
2716
2713
  return /* @__PURE__ */ m(y, { direction: "column", width: "100%", gap: "20px", children: [
2717
2714
  /* @__PURE__ */ m(y, { justifyContent: "space-between", children: [
2718
- /* @__PURE__ */ i(F, { appearance: "dark", size: "large", type: "label", children: "¿La vigencia para este decisión es cerrada?" }),
2715
+ /* @__PURE__ */ i($, { appearance: "dark", size: "large", type: "label", children: "¿La vigencia para este decisión es cerrada?" }),
2719
2716
  /* @__PURE__ */ i(
2720
- $n,
2717
+ In,
2721
2718
  {
2722
2719
  label: "Cerrada",
2723
2720
  onChange: N,
@@ -2734,7 +2731,7 @@ const Uo = C.div`
2734
2731
  gap: "24px",
2735
2732
  children: [
2736
2733
  /* @__PURE__ */ i(
2737
- Oe,
2734
+ Me,
2738
2735
  {
2739
2736
  id: "dateStart",
2740
2737
  label: o,
@@ -2748,7 +2745,7 @@ const Uo = C.div`
2748
2745
  }
2749
2746
  ),
2750
2747
  f && /* @__PURE__ */ i(
2751
- Oe,
2748
+ Me,
2752
2749
  {
2753
2750
  id: "dateEnd",
2754
2751
  label: a,
@@ -2765,7 +2762,7 @@ const Uo = C.div`
2765
2762
  }
2766
2763
  )
2767
2764
  ] });
2768
- }, Bo = (e) => {
2765
+ }, Go = (e) => {
2769
2766
  const {
2770
2767
  activeTab: n,
2771
2768
  conditionsErrorText: t,
@@ -2788,14 +2785,17 @@ const Uo = C.div`
2788
2785
  } = e;
2789
2786
  return /* @__PURE__ */ m(z, { children: [
2790
2787
  /* @__PURE__ */ i("form", { onSubmit: o.handleSubmit, children: /* @__PURE__ */ m(y, { direction: "column", gap: "24px", width: "100%", children: [
2791
- /* @__PURE__ */ i(Ue, { legend: "Decisión N° 01", spacing: "wide", children: /* @__PURE__ */ i(y, { justifyContent: "center", width: "-webkit-fill-available", children: _n({
2792
- condition: a,
2793
- formik: o,
2794
- isDecision: !0
2795
- }) }) }),
2796
- /* @__PURE__ */ i(Ue, { legend: "Condiciones a evaluar", spacing: "wide", children: /* @__PURE__ */ m(y, { direction: "column", gap: "20px", width: "100%", children: [
2788
+ /* @__PURE__ */ i(He, { legend: "Decisión N° 01", spacing: "wide", children: /* @__PURE__ */ m(y, { justifyContent: "center", width: "-webkit-fill-available", alignItems: "center", children: [
2789
+ Un({
2790
+ condition: a,
2791
+ formik: o,
2792
+ isDecision: !0
2793
+ }),
2794
+ a.timeUnit && /* @__PURE__ */ i($, { as: "span", size: "medium", padding: "0 0 0 16px", children: a.timeUnit })
2795
+ ] }) }),
2796
+ /* @__PURE__ */ i(He, { legend: "Condiciones a evaluar", spacing: "wide", children: /* @__PURE__ */ m(y, { direction: "column", gap: "20px", width: "100%", children: [
2797
2797
  /* @__PURE__ */ i(
2798
- dt,
2798
+ ct,
2799
2799
  {
2800
2800
  onChange: l,
2801
2801
  tabs: u,
@@ -2804,9 +2804,9 @@ const Uo = C.div`
2804
2804
  ),
2805
2805
  /* @__PURE__ */ m(y, { justifyContent: "flex-end", alignItems: "center", children: [
2806
2806
  /* @__PURE__ */ i(
2807
- U,
2807
+ j,
2808
2808
  {
2809
- icon: /* @__PURE__ */ i(Mt, {}),
2809
+ icon: /* @__PURE__ */ i(zt, {}),
2810
2810
  appearance: "help",
2811
2811
  onClick: b,
2812
2812
  cursorHover: !0
@@ -2816,7 +2816,7 @@ const Uo = C.div`
2816
2816
  q,
2817
2817
  {
2818
2818
  type: "button",
2819
- iconBefore: /* @__PURE__ */ i(Pt, {}),
2819
+ iconBefore: /* @__PURE__ */ i(Vt, {}),
2820
2820
  variant: "none",
2821
2821
  appearance: "gray",
2822
2822
  onClick: b,
@@ -2831,15 +2831,18 @@ const Uo = C.div`
2831
2831
  gap: "16px",
2832
2832
  alignItems: "center",
2833
2833
  children: [
2834
- /* @__PURE__ */ i(Uo, { children: /* @__PURE__ */ i(
2835
- _n,
2836
- {
2837
- condition: S,
2838
- formik: o
2839
- }
2840
- ) }),
2834
+ /* @__PURE__ */ m(Bo, { children: [
2835
+ /* @__PURE__ */ i(
2836
+ Un,
2837
+ {
2838
+ condition: S,
2839
+ formik: o
2840
+ }
2841
+ ),
2842
+ S.timeUnit && /* @__PURE__ */ i($, { as: "span", size: "medium", padding: "0 0 0 16px", children: S.__unitAfterInput })
2843
+ ] }),
2841
2844
  /* @__PURE__ */ i(
2842
- U,
2845
+ j,
2843
2846
  {
2844
2847
  icon: /* @__PURE__ */ i(dn, {}),
2845
2848
  appearance: "danger",
@@ -2851,10 +2854,10 @@ const Uo = C.div`
2851
2854
  },
2852
2855
  S.conditionName
2853
2856
  )) }),
2854
- p && /* @__PURE__ */ i(F, { type: "label", size: "medium", appearance: "danger", children: t ?? "Existen errores en el formulario, por favor revísalos." })
2857
+ p && /* @__PURE__ */ i($, { type: "label", size: "medium", appearance: "danger", children: t ?? "Existen errores en el formulario, por favor revísalos." })
2855
2858
  ] }) }),
2856
- /* @__PURE__ */ i(Ue, { legend: "Vigencia", spacing: "wide", children: h.terms && /* @__PURE__ */ i(
2857
- Ho,
2859
+ /* @__PURE__ */ i(He, { legend: "Vigencia", spacing: "wide", children: h.terms && /* @__PURE__ */ i(
2860
+ qo,
2858
2861
  {
2859
2862
  labelStart: h.termStart,
2860
2863
  labelEnd: h.termEnd,
@@ -2878,13 +2881,13 @@ const Uo = C.div`
2878
2881
  ] })
2879
2882
  ] }) }),
2880
2883
  x && f && /* @__PURE__ */ i(
2881
- pt,
2884
+ gt,
2882
2885
  {
2883
2886
  portalId: f,
2884
2887
  title: "Redefinir la condición",
2885
2888
  onCloseModal: D,
2886
2889
  children: /* @__PURE__ */ m(y, { direction: "column", gap: "16px", children: [
2887
- /* @__PURE__ */ i(F, { 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 ." }),
2890
+ /* @__PURE__ */ i($, { 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 ." }),
2888
2891
  /* @__PURE__ */ m(y, { justifyContent: "end", gap: "12px", children: [
2889
2892
  /* @__PURE__ */ i(
2890
2893
  q,
@@ -2903,18 +2906,18 @@ const Uo = C.div`
2903
2906
  }
2904
2907
  )
2905
2908
  ] });
2906
- }, qo = (e) => {
2907
- const { label: n, howToSet: t, isFirst: r = !1 } = e, o = Wo(n), a = Yo(o), s = r ? "Que" : "Y que", d = a ? o : `${Xo(o)} ${o}`, l = Jo(t);
2909
+ }, Yo = (e) => {
2910
+ const { label: n, howToSet: t, isFirst: r = !1 } = e, o = Qo(n), a = Xo(o), s = r ? "Que" : "Y que", d = a ? o : `${Zo(o)} ${o}`, l = na(t);
2908
2911
  return `${s} ${d} ${l}`;
2909
- }, Go = /^(el|la|los|las)\s/i;
2910
- function Yo(e) {
2911
- return Go.test(e);
2912
+ }, Wo = /^(el|la|los|las)\s/i;
2913
+ function Xo(e) {
2914
+ return Wo.test(e);
2912
2915
  }
2913
- function Wo(e) {
2916
+ function Qo(e) {
2914
2917
  return e.replace(/\s+/g, " ").trim();
2915
2918
  }
2916
- function Xo(e) {
2917
- const n = Qo(e).toLowerCase(), t = /\b(s|es)\b/.test(Zo(e).toLowerCase()) && !n.endsWith("és");
2919
+ function Zo(e) {
2920
+ const n = Ko(e).toLowerCase(), t = /\b(s|es)\b/.test(Jo(e).toLowerCase()) && !n.endsWith("és");
2918
2921
  return ({
2919
2922
  mano: "f",
2920
2923
  día: "m",
@@ -2926,26 +2929,28 @@ function Xo(e) {
2926
2929
  antigüedad: "f",
2927
2930
  antiguedad: "f",
2928
2931
  puntaje: "m"
2929
- }[n] ?? Ko(n)) === "f" ? t ? "las" : "la" : t ? "los" : "el";
2932
+ }[n] ?? ea(n)) === "f" ? t ? "las" : "la" : t ? "los" : "el";
2930
2933
  }
2931
- function Qo(e) {
2934
+ function Ko(e) {
2932
2935
  return (e.toLowerCase().split(
2933
2936
  /\bdel\b|\bde la\b|\bde los\b|\bde las\b|\bde\b/
2934
2937
  )[0].trim().split(/\s+/)[0] ?? "").normalize("NFD").replace(/^[^a-záéíóúüñ]+/i, "");
2935
2938
  }
2936
- function Zo(e) {
2939
+ function Jo(e) {
2937
2940
  const n = e.trim().split(/\s+/);
2938
2941
  return n[n.length - 1] || "";
2939
2942
  }
2940
- function Ko(e) {
2943
+ function ea(e) {
2941
2944
  return /(?:dad|tad|tud|umbre|ción|sión|ie|sis|itis)$/.test(e) || e.endsWith("ez") || e.endsWith("eza") ? "f" : /(?:aje|or|án|ambre)$/.test(e) ? "m" : e.endsWith("a") ? "f" : "m";
2942
2945
  }
2943
- function Jo(e) {
2946
+ function na(e) {
2944
2947
  switch (e) {
2945
2948
  case k.EQUAL:
2949
+ return "sea";
2946
2950
  case k.GREATER_THAN:
2951
+ return "sea mayor a";
2947
2952
  case k.LESS_THAN:
2948
- return "sea";
2953
+ return "sea menor a";
2949
2954
  case k.RANGE:
2950
2955
  return "esté entre";
2951
2956
  case k.LIST_OF_VALUES:
@@ -2955,7 +2960,7 @@ function Jo(e) {
2955
2960
  return "sea";
2956
2961
  }
2957
2962
  }
2958
- const ea = (e) => {
2963
+ const ta = (e) => {
2959
2964
  if (typeof e == "string") {
2960
2965
  const n = e.toLowerCase();
2961
2966
  if (n.includes("equal")) return se.EQUAL;
@@ -2967,7 +2972,7 @@ const ea = (e) => {
2967
2972
  return se.LIST_OF_VALUES;
2968
2973
  }
2969
2974
  return e ?? se.EQUAL;
2970
- }, Wn = (e, n) => e === "group-primary" ? "Condición principal" : `Condición alterna N° ${String(n).padStart(2, "0")}`, na = (e) => {
2975
+ }, Xn = (e, n) => e === "group-primary" ? "Condición principal" : `Condición alterna N° ${String(n).padStart(2, "0")}`, ra = (e) => {
2971
2976
  var L;
2972
2977
  const {
2973
2978
  decision: n,
@@ -2977,103 +2982,104 @@ const ea = (e) => {
2977
2982
  onRemoveCondition: a,
2978
2983
  onRestoreConditions: s,
2979
2984
  fullTemplate: d
2980
- } = e, { formik: l, handleToggleNoneChange: p } = jo({
2985
+ } = e, { formik: l, handleToggleNoneChange: p } = Ho({
2981
2986
  decision: n,
2982
2987
  onSubmitEvent: t,
2983
2988
  textValues: r
2984
- }), c = Pe(d ?? n), g = Pe(n), h = ft(
2989
+ }), c = ze(d ?? n), g = ze(n), h = mt(
2985
2990
  g,
2986
- (I) => !I.hidden
2991
+ (F) => !F.hidden
2987
2992
  ), f = Object.keys(h), x = [
2988
- ...f.filter((I) => I === "group-primary"),
2989
- ...f.filter((I) => I !== "group-primary")
2993
+ ...f.filter((F) => F === "group-primary"),
2994
+ ...f.filter((F) => F !== "group-primary")
2990
2995
  ], b = {};
2991
2996
  let D = 1;
2992
- const T = x.map((I) => {
2993
- const j = I === "group-primary" ? "mainCondition" : `alternateCondition-${D++}`;
2994
- return b[j] = I, {
2995
- id: j,
2996
- label: I === "group-primary" ? Wn(I, 0) : Wn(I, Number(j.split("-").at(-1))),
2997
+ const T = x.map((F) => {
2998
+ const U = F === "group-primary" ? "mainCondition" : `alternateCondition-${D++}`;
2999
+ return b[U] = F, {
3000
+ id: U,
3001
+ label: F === "group-primary" ? Xn(F, 0) : Xn(F, Number(U.split("-").at(-1))),
2997
3002
  isDisabled: !1
2998
3003
  };
2999
3004
  }), [S, N] = P.useState(
3000
3005
  ((L = T[0]) == null ? void 0 : L.id) ?? "mainCondition"
3001
- ), w = (I) => N(I), R = b[S] ?? "group-primary", O = P.useMemo(() => {
3002
- const I = [
3006
+ ), w = (F) => N(F), R = b[S] ?? "group-primary", O = P.useMemo(() => {
3007
+ const F = [
3003
3008
  ...Object.keys(h).filter((K) => K === "group-primary"),
3004
3009
  ...Object.keys(h).filter((K) => K !== "group-primary")
3005
3010
  ];
3006
- let j = !1;
3007
- const Q = I.map((K) => {
3008
- const $t = (h[K] ?? []).map((Ke, It) => {
3009
- const zn = !j && K === "group-primary" && It === 0;
3010
- zn && (j = !0);
3011
- const Ft = ea(Ke.howToSetTheCondition ?? Ke.valueUse), Rt = qo({
3012
- label: Ke.labelName || "",
3013
- howToSet: Ft,
3014
- isFirst: zn
3015
- });
3016
- return { ...Ke, labelName: Rt };
3011
+ let U = !1;
3012
+ const Q = F.map((K) => {
3013
+ const It = (h[K] ?? []).map((Fe, Ft) => {
3014
+ const Vn = !U && K === "group-primary" && Ft === 0;
3015
+ Vn && (U = !0);
3016
+ const Rt = ta(Fe.howToSetTheCondition ?? Fe.valueUse), Lt = Yo({
3017
+ label: Fe.labelName || "",
3018
+ howToSet: Rt,
3019
+ isFirst: Vn
3020
+ }), Ot = Fe.timeUnit ? En("", Fe.timeUnit, !0).trim() : "";
3021
+ return { ...Fe, labelName: Lt, __unitAfterInput: Ot };
3017
3022
  });
3018
- return [K, $t];
3023
+ return [K, It];
3019
3024
  });
3020
3025
  return Object.fromEntries(Q);
3021
- }, [h]), $ = O[R] ?? [], V = O["group-primary"] ?? [], Z = {
3026
+ }, [h]), I = O[R] ?? [], V = O["group-primary"] ?? [], Z = {
3022
3027
  decisionDataType: n.decisionDataType,
3023
3028
  howToSetTheCondition: n.howToSetTheDecision,
3024
3029
  labelName: n.labelName,
3025
3030
  listOfPossibleValues: n.listOfPossibleValues,
3026
- ruleName: n.ruleName
3031
+ ruleName: n.ruleName,
3032
+ timeUnit: n.timeUnit ? En("", n.timeUnit, !0).trim() : ""
3027
3033
  }, be = l.submitCount > 0 || !!l.touched.effectiveFrom, ve = l.submitCount > 0 || !!l.touched.validUntil, fe = be ? l.errors.effectiveFrom ? "invalid" : "valid" : void 0, ae = ve ? l.errors.validUntil ? "invalid" : "valid" : void 0, ye = P.useMemo(() => {
3028
- const I = l.errors.conditionsThatEstablishesTheDecision;
3029
- if (!I) return;
3030
- if (typeof I == "string") return I;
3031
- const j = (Q) => {
3034
+ const F = l.errors.conditionsThatEstablishesTheDecision;
3035
+ if (!F) return;
3036
+ if (typeof F == "string") return F;
3037
+ const U = (Q) => {
3032
3038
  if (Q) {
3033
3039
  if (typeof Q == "string") return Q;
3034
3040
  if (Array.isArray(Q))
3035
3041
  for (const K of Q) {
3036
- const we = j(K);
3042
+ const we = U(K);
3037
3043
  if (we) return we;
3038
3044
  }
3039
3045
  else if (typeof Q == "object")
3040
3046
  for (const K of Object.values(Q)) {
3041
- const we = j(K);
3047
+ const we = U(K);
3042
3048
  if (we) return we;
3043
3049
  }
3044
3050
  }
3045
3051
  };
3046
- return j(I);
3047
- }, [l.errors.conditionsThatEstablishesTheDecision]), Ne = l.submitCount > 0 && !!ye, ue = (I) => I != null && I.isMulti || I != null && I.multiple || (I == null ? void 0 : I.valueUse) === "Among" ? [] : "", xe = (I) => {
3048
- const Q = Object.values(c).flat().find((we) => we.conditionName === I), K = ue(Q);
3052
+ return U(F);
3053
+ }, [l.errors.conditionsThatEstablishesTheDecision]), Ne = l.submitCount > 0 && !!ye, ue = (F) => F != null && F.isMulti || F != null && F.multiple || (F == null ? void 0 : F.valueUse) === "Among" ? [] : "", xe = (F) => {
3054
+ const Q = Object.values(c).flat().find((we) => we.conditionName === F), K = ue(Q);
3049
3055
  l.setFieldValue(
3050
- `conditionsThatEstablishesTheDecision.${I}`,
3056
+ `conditionsThatEstablishesTheDecision.${F}`,
3051
3057
  K
3052
3058
  ), l.setFieldTouched(
3053
- `conditionsThatEstablishesTheDecision.${I}`,
3059
+ `conditionsThatEstablishesTheDecision.${F}`,
3054
3060
  !1,
3055
3061
  !1
3056
3062
  );
3057
3063
  }, Te = () => {
3058
- (c[R] ?? []).forEach((j) => {
3059
- const Q = `conditionsThatEstablishesTheDecision.${j.conditionName}`;
3060
- l.setFieldValue(Q, ue(j)), l.setFieldTouched(Q, !1, !1);
3064
+ (c[R] ?? []).forEach((U) => {
3065
+ const Q = `conditionsThatEstablishesTheDecision.${U.conditionName}`;
3066
+ l.setFieldValue(Q, ue(U)), l.setFieldTouched(Q, !1, !1);
3061
3067
  });
3062
3068
  }, [me, le] = P.useState(!1);
3063
3069
  return /* @__PURE__ */ i(
3064
- Bo,
3070
+ Go,
3065
3071
  {
3066
3072
  activeTab: S,
3067
3073
  conditionsErrorText: ye,
3068
- currentConditions: $,
3074
+ currentConditions: I,
3069
3075
  decision: n,
3070
3076
  formik: l,
3071
3077
  normalizedDecision: Z,
3072
3078
  onCancel: o,
3073
3079
  onRedefineCurrentTab: Te,
3074
3080
  onTabChange: w,
3075
- onClearCondition: (I) => {
3076
- xe(I), a == null || a(I);
3081
+ onClearCondition: (F) => {
3082
+ xe(F), a == null || a(F);
3077
3083
  },
3078
3084
  showConditionsError: Ne,
3079
3085
  tabs: T,
@@ -3089,14 +3095,14 @@ const ea = (e) => {
3089
3095
  onCloseRedefineConfirm: () => le(!1),
3090
3096
  onConfirmRedefine: () => {
3091
3097
  Te();
3092
- const I = (c[R] ?? []).map(
3093
- (j) => j.conditionName
3098
+ const F = (c[R] ?? []).map(
3099
+ (U) => U.conditionName
3094
3100
  );
3095
- s == null || s(I), le(!1);
3101
+ s == null || s(F), le(!1);
3096
3102
  }
3097
3103
  }
3098
3104
  );
3099
- }, yl = (e) => {
3105
+ }, Tl = (e) => {
3100
3106
  const {
3101
3107
  cardTitle: n = !0,
3102
3108
  controls: t = !0,
@@ -3116,7 +3122,7 @@ const ea = (e) => {
3116
3122
  onRemoveCondition: b,
3117
3123
  onRestoreConditions: D,
3118
3124
  baseDecisionTemplate: T
3119
- } = e, [S, N] = H(null), w = re("(max-width: 681px)"), { renderedCards: R, shouldRenderAddCard: O } = Fo({
3125
+ } = e, [S, N] = H(null), w = re("(max-width: 681px)"), { renderedCards: R, shouldRenderAddCard: O } = Lo({
3120
3126
  cardTitle: n,
3121
3127
  controls: t,
3122
3128
  customTitleContentAddCard: r,
@@ -3127,9 +3133,9 @@ const ea = (e) => {
3127
3133
  textValues: s,
3128
3134
  isOpenFor: (V) => S === V,
3129
3135
  toggleAt: (V) => N((Z) => Z === V ? null : V)
3130
- }), $ = (a == null ? void 0 : a.length) === 0 && !u;
3136
+ }), I = (a == null ? void 0 : a.length) === 0 && !u;
3131
3137
  return /* @__PURE__ */ m(z, { children: [
3132
- /* @__PURE__ */ i(Eo, { children: /* @__PURE__ */ i(No, { children: /* @__PURE__ */ i(y, { direction: "column", gap: "16px", padding: "6px", children: $ ? /* @__PURE__ */ i(Ue, { legend: "Decisiones", children: /* @__PURE__ */ m(
3138
+ /* @__PURE__ */ i(ko, { children: /* @__PURE__ */ i(Ao, { children: /* @__PURE__ */ i(y, { direction: "column", gap: "16px", padding: "6px", children: I ? /* @__PURE__ */ i(He, { legend: "Decisiones", children: /* @__PURE__ */ m(
3133
3139
  y,
3134
3140
  {
3135
3141
  direction: "column",
@@ -3139,15 +3145,15 @@ const ea = (e) => {
3139
3145
  alignItems: "center",
3140
3146
  children: [
3141
3147
  /* @__PURE__ */ i(
3142
- U,
3148
+ j,
3143
3149
  {
3144
3150
  appearance: "help",
3145
- icon: /* @__PURE__ */ i(zt, {}),
3151
+ icon: /* @__PURE__ */ i(_t, {}),
3146
3152
  size: "40px"
3147
3153
  }
3148
3154
  ),
3149
3155
  /* @__PURE__ */ i(
3150
- F,
3156
+ $,
3151
3157
  {
3152
3158
  type: "title",
3153
3159
  size: "medium",
@@ -3156,14 +3162,14 @@ const ea = (e) => {
3156
3162
  children: "Sin decisiones"
3157
3163
  }
3158
3164
  ),
3159
- /* @__PURE__ */ i(F, { as: "span", size: "medium", appearance: "gray", children: o || /* @__PURE__ */ m(z, { children: [
3165
+ /* @__PURE__ */ i($, { as: "span", size: "medium", appearance: "gray", children: o || /* @__PURE__ */ m(z, { children: [
3160
3166
  "Aun no tienes decisiones definidas, para empezar haz clic en",
3161
3167
  r || ' "Agregar decisión"'
3162
3168
  ] }) })
3163
3169
  ]
3164
3170
  }
3165
3171
  ) }) : /* @__PURE__ */ m(
3166
- Xe,
3172
+ Qe,
3167
3173
  {
3168
3174
  templateColumns: "1fr",
3169
3175
  autoFlow: "row dense",
@@ -3176,7 +3182,7 @@ const ea = (e) => {
3176
3182
  height: w ? "auto" : "484px",
3177
3183
  children: [
3178
3184
  R,
3179
- O && En({
3185
+ O && Nn({
3180
3186
  type: "add",
3181
3187
  index: a == null ? void 0 : a.length,
3182
3188
  controls: t,
@@ -3186,21 +3192,21 @@ const ea = (e) => {
3186
3192
  handleOpenModal: c,
3187
3193
  handleDelete: f,
3188
3194
  textValues: s,
3189
- shouldRenderEmptyMessage: $,
3195
+ shouldRenderEmptyMessage: I,
3190
3196
  terms: x
3191
3197
  })
3192
3198
  ]
3193
3199
  }
3194
3200
  ) }) }) }),
3195
3201
  l && /* @__PURE__ */ i(
3196
- Oo,
3202
+ Po,
3197
3203
  {
3198
3204
  portalId: "modal-portal",
3199
3205
  onCloseModal: g,
3200
3206
  title: p ? "Editar Decisión" : "Configurar Decisión",
3201
3207
  description: "Diligencia los campos para configurar tu decisión.",
3202
3208
  children: /* @__PURE__ */ i(
3203
- na,
3209
+ ra,
3204
3210
  {
3205
3211
  decision: p || d,
3206
3212
  fullTemplate: T ?? d,
@@ -3215,16 +3221,16 @@ const ea = (e) => {
3215
3221
  }
3216
3222
  )
3217
3223
  ] });
3218
- }, ta = {
3224
+ }, oa = {
3219
3225
  border: {
3220
3226
  color: E.palette.neutral.N40
3221
3227
  }
3222
- }, ra = C.div`
3228
+ }, aa = C.div`
3223
3229
  border-width: 1px;
3224
3230
  border-style: solid;
3225
3231
  border-color: ${({ theme: e }) => {
3226
3232
  var n, t;
3227
- return ((t = (n = e == null ? void 0 : e.box) == null ? void 0 : n.border) == null ? void 0 : t.color) || ta.border.color;
3233
+ return ((t = (n = e == null ? void 0 : e.box) == null ? void 0 : n.border) == null ? void 0 : t.color) || oa.border.color;
3228
3234
  }};
3229
3235
  border-radius: ${({ $borderRadius: e }) => e};
3230
3236
  margin: ${({ $margin: e }) => e};
@@ -3233,7 +3239,7 @@ const ea = (e) => {
3233
3239
  height: ${({ $height: e }) => e};
3234
3240
  box-sizing: border-box;
3235
3241
  `;
3236
- function oa(e) {
3242
+ function ia(e) {
3237
3243
  const {
3238
3244
  children: n,
3239
3245
  padding: t = "16px",
@@ -3243,7 +3249,7 @@ function oa(e) {
3243
3249
  height: s
3244
3250
  } = e;
3245
3251
  return /* @__PURE__ */ i(
3246
- ra,
3252
+ aa,
3247
3253
  {
3248
3254
  $padding: t,
3249
3255
  $margin: r,
@@ -3254,8 +3260,8 @@ function oa(e) {
3254
3260
  }
3255
3261
  );
3256
3262
  }
3257
- const aa = (e, n) => {
3258
- const [t, r] = H([]), [o, a] = H([]), [s, d] = H(!1), l = Re(null);
3263
+ const la = (e, n) => {
3264
+ const [t, r] = H([]), [o, a] = H([]), [s, d] = H(!1), l = Le(null);
3259
3265
  return $e(() => {
3260
3266
  if (!e.current || !l.current) return;
3261
3267
  const p = e.current, u = l.current, c = () => {
@@ -3281,21 +3287,21 @@ C.div`
3281
3287
  width: 100%;
3282
3288
  }
3283
3289
  `;
3284
- const ia = C.div`
3290
+ const sa = C.div`
3285
3291
  position: absolute;
3286
3292
  top: calc(100% + 4px);
3287
3293
  right: 0;
3288
3294
  z-index: 1000;
3289
3295
  width: 170px;
3290
- `, la = C.div`
3296
+ `, da = C.div`
3291
3297
  position: absolute;
3292
3298
  visibility: hidden;
3293
3299
  pointer-events: none;
3294
3300
  height: 0;
3295
3301
  overflow: hidden;
3296
- `, sa = C.div`
3302
+ `, ca = C.div`
3297
3303
  cursor: pointer;
3298
- `, Nn = {
3304
+ `, kn = {
3299
3305
  border: {
3300
3306
  color: {
3301
3307
  regular: E.palette.neutral.N40,
@@ -3331,7 +3337,7 @@ const ia = C.div`
3331
3337
  hover: E.palette.neutral.N30
3332
3338
  }
3333
3339
  }
3334
- }, da = C.li`
3340
+ }, ua = C.li`
3335
3341
  display: flex;
3336
3342
  align-items: center;
3337
3343
  align-self: stretch;
@@ -3346,14 +3352,14 @@ const ia = C.div`
3346
3352
  &:hover {
3347
3353
  background-color: ${({ theme: e }) => {
3348
3354
  var n, t, r;
3349
- return ((r = (t = (n = e == null ? void 0 : e.input) == null ? void 0 : n.background) == null ? void 0 : t.color) == null ? void 0 : r.regular) || Nn.background.color.regular;
3355
+ return ((r = (t = (n = e == null ? void 0 : e.input) == null ? void 0 : n.background) == null ? void 0 : t.color) == null ? void 0 : r.regular) || kn.background.color.regular;
3350
3356
  }};
3351
3357
  }
3352
- `, ca = (e) => {
3358
+ `, pa = (e) => {
3353
3359
  var g, h, f, x, b, D;
3354
- const { id: n, label: t, leadingIcon: r, onClose: o } = e, [a, s] = H(!1), d = () => s(!0), l = () => s(!1), p = Ln(Fn), u = ((f = (h = (g = p == null ? void 0 : p.input) == null ? void 0 : g.option) == null ? void 0 : h.appearance) == null ? void 0 : f.hover) ?? Nn.option.appearance.hover, c = ((D = (b = (x = p == null ? void 0 : p.input) == null ? void 0 : x.option) == null ? void 0 : b.appearance) == null ? void 0 : D.regular) ?? Nn.option.appearance.regular;
3360
+ const { id: n, label: t, leadingIcon: r, onClose: o } = e, [a, s] = H(!1), d = () => s(!0), l = () => s(!1), p = On(Rn), u = ((f = (h = (g = p == null ? void 0 : p.input) == null ? void 0 : g.option) == null ? void 0 : h.appearance) == null ? void 0 : f.hover) ?? kn.option.appearance.hover, c = ((D = (b = (x = p == null ? void 0 : p.input) == null ? void 0 : x.option) == null ? void 0 : b.appearance) == null ? void 0 : D.regular) ?? kn.option.appearance.regular;
3355
3361
  return /* @__PURE__ */ i(
3356
- da,
3362
+ ua,
3357
3363
  {
3358
3364
  id: n,
3359
3365
  onMouseEnter: d,
@@ -3362,7 +3368,7 @@ const ia = C.div`
3362
3368
  T.stopPropagation();
3363
3369
  },
3364
3370
  children: /* @__PURE__ */ m(
3365
- Xe,
3371
+ Qe,
3366
3372
  {
3367
3373
  alignItems: "center",
3368
3374
  gap: "8px",
@@ -3370,7 +3376,7 @@ const ia = C.div`
3370
3376
  width: "100%",
3371
3377
  children: [
3372
3378
  r && /* @__PURE__ */ i(
3373
- U,
3379
+ j,
3374
3380
  {
3375
3381
  icon: r,
3376
3382
  size: "medium",
@@ -3378,7 +3384,7 @@ const ia = C.div`
3378
3384
  }
3379
3385
  ),
3380
3386
  /* @__PURE__ */ i(
3381
- F,
3387
+ $,
3382
3388
  {
3383
3389
  textAlign: "start",
3384
3390
  size: "medium",
@@ -3387,9 +3393,9 @@ const ia = C.div`
3387
3393
  }
3388
3394
  ),
3389
3395
  /* @__PURE__ */ i(
3390
- U,
3396
+ j,
3391
3397
  {
3392
- icon: /* @__PURE__ */ i(Vt, {}),
3398
+ icon: /* @__PURE__ */ i(Ut, {}),
3393
3399
  size: "small",
3394
3400
  onClick: (T) => {
3395
3401
  T.stopPropagation(), o == null || o();
@@ -3403,7 +3409,7 @@ const ia = C.div`
3403
3409
  )
3404
3410
  }
3405
3411
  );
3406
- }, xl = (e) => {
3412
+ }, wl = (e) => {
3407
3413
  const {
3408
3414
  appliedFilters: n = [],
3409
3415
  onClear: t,
@@ -3411,12 +3417,12 @@ const ia = C.div`
3411
3417
  noFiltersLabel: o,
3412
3418
  titleClearFilter: a,
3413
3419
  titleFilter: s
3414
- } = e, d = Re(null), l = Re(null), p = Re(null), {
3420
+ } = e, d = Le(null), l = Le(null), p = Le(null), {
3415
3421
  visible: u,
3416
3422
  hidden: c,
3417
3423
  showOverflowIndicator: g,
3418
3424
  measurementRef: h
3419
- } = aa(d, n), [f, x] = H(!1), b = (w) => {
3425
+ } = la(d, n), [f, x] = H(!1), b = (w) => {
3420
3426
  w.stopPropagation(), x((R) => !R);
3421
3427
  };
3422
3428
  $e(() => {
@@ -3434,10 +3440,10 @@ const ia = C.div`
3434
3440
  icon: w.icon
3435
3441
  })), N = (w) => {
3436
3442
  var R, O;
3437
- (O = (R = c.find(($) => $.label === w)) == null ? void 0 : R.onClose) == null || O.call(R), x(!1);
3443
+ (O = (R = c.find((I) => I.label === w)) == null ? void 0 : R.onClose) == null || O.call(R), x(!1);
3438
3444
  };
3439
- return /* @__PURE__ */ m(oa, { borderRadius: "8px", width: "100%", children: [
3440
- /* @__PURE__ */ i(la, { ref: h, children: n.map((w) => /* @__PURE__ */ i("div", { "data-filter-tag": "true", children: /* @__PURE__ */ i(
3445
+ return /* @__PURE__ */ m(ia, { borderRadius: "8px", width: "100%", children: [
3446
+ /* @__PURE__ */ i(da, { ref: h, children: n.map((w) => /* @__PURE__ */ i("div", { "data-filter-tag": "true", children: /* @__PURE__ */ i(
3441
3447
  ke,
3442
3448
  {
3443
3449
  appearance: "primary",
@@ -3448,7 +3454,7 @@ const ia = C.div`
3448
3454
  onClose: w.onClose
3449
3455
  }
3450
3456
  ) }, w.label)) }),
3451
- /* @__PURE__ */ m(Xe, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
3457
+ /* @__PURE__ */ m(Qe, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
3452
3458
  /* @__PURE__ */ i(
3453
3459
  ie,
3454
3460
  {
@@ -3461,7 +3467,7 @@ const ia = C.div`
3461
3467
  alignItems: "center",
3462
3468
  padding: "0px 8px",
3463
3469
  border: !0,
3464
- children: D ? /* @__PURE__ */ i(F, { size: "small", type: "label", appearance: "gray", children: o }) : /* @__PURE__ */ m(z, { children: [
3470
+ children: D ? /* @__PURE__ */ i($, { size: "small", type: "label", appearance: "gray", children: o }) : /* @__PURE__ */ m(z, { children: [
3465
3471
  u.map((w) => /* @__PURE__ */ i(
3466
3472
  ke,
3467
3473
  {
@@ -3481,20 +3487,20 @@ const ia = C.div`
3481
3487
  ref: p,
3482
3488
  style: { position: "relative", display: "inline-block" },
3483
3489
  children: [
3484
- /* @__PURE__ */ i(sa, { onClick: b, children: /* @__PURE__ */ i(
3490
+ /* @__PURE__ */ i(ca, { onClick: b, children: /* @__PURE__ */ i(
3485
3491
  ke,
3486
3492
  {
3487
3493
  appearance: "primary",
3488
3494
  label: `+${c.length}`
3489
3495
  }
3490
3496
  ) }),
3491
- T && /* @__PURE__ */ i(ia, { ref: l, children: /* @__PURE__ */ i(
3492
- Yt,
3497
+ T && /* @__PURE__ */ i(sa, { ref: l, children: /* @__PURE__ */ i(
3498
+ Xt,
3493
3499
  {
3494
3500
  options: S,
3495
3501
  onOptionClick: N,
3496
3502
  children: c.map((w) => /* @__PURE__ */ i(
3497
- ca,
3503
+ pa,
3498
3504
  {
3499
3505
  id: w.label,
3500
3506
  label: w.label,
@@ -3519,7 +3525,7 @@ const ia = C.div`
3519
3525
  {
3520
3526
  cursorHover: !0,
3521
3527
  disabled: D,
3522
- iconBefore: /* @__PURE__ */ i(lt, {}),
3528
+ iconBefore: /* @__PURE__ */ i(st, {}),
3523
3529
  onClick: t,
3524
3530
  variant: "outlined",
3525
3531
  children: a
@@ -3529,7 +3535,7 @@ const ia = C.div`
3529
3535
  q,
3530
3536
  {
3531
3537
  cursorHover: !0,
3532
- iconBefore: /* @__PURE__ */ i(st, {}),
3538
+ iconBefore: /* @__PURE__ */ i(dt, {}),
3533
3539
  onClick: r,
3534
3540
  variant: "outlined",
3535
3541
  children: s
@@ -3537,7 +3543,7 @@ const ia = C.div`
3537
3543
  )
3538
3544
  ] })
3539
3545
  ] });
3540
- }, ua = C.div`
3546
+ }, ga = C.div`
3541
3547
  display: flex;
3542
3548
  flex-direction: column;
3543
3549
  background-color: ${({ theme: e }) => {
@@ -3550,7 +3556,7 @@ const ia = C.div`
3550
3556
  padding: 24px;
3551
3557
  gap: 24px;
3552
3558
  box-sizing: border-box;
3553
- `, Tl = (e) => {
3559
+ `, Cl = (e) => {
3554
3560
  const {
3555
3561
  actionButtonLabel: n,
3556
3562
  cancelButtonLabel: t,
@@ -3566,14 +3572,14 @@ const ia = C.div`
3566
3572
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
3567
3573
  );
3568
3574
  return gn(
3569
- /* @__PURE__ */ i(un, { children: /* @__PURE__ */ m(ua, { $smallScreen: p, children: [
3575
+ /* @__PURE__ */ i(un, { children: /* @__PURE__ */ m(ga, { $smallScreen: p, children: [
3570
3576
  /* @__PURE__ */ m(y, { direction: "column", gap: "16px", children: [
3571
3577
  /* @__PURE__ */ m(y, { alignContent: "center", justifyContent: "space-between", children: [
3572
- /* @__PURE__ */ i(F, { appearance: "dark", size: "small", type: "headline", children: l }),
3578
+ /* @__PURE__ */ i($, { appearance: "dark", size: "small", type: "headline", children: l }),
3573
3579
  /* @__PURE__ */ m(y, { alignItems: "center", children: [
3574
- /* @__PURE__ */ i(F, { children: "Cerrar" }),
3580
+ /* @__PURE__ */ i($, { children: "Cerrar" }),
3575
3581
  /* @__PURE__ */ i(
3576
- U,
3582
+ j,
3577
3583
  {
3578
3584
  appearance: "dark",
3579
3585
  icon: /* @__PURE__ */ i(cn, {}),
@@ -3592,7 +3598,7 @@ const ia = C.div`
3592
3598
  {
3593
3599
  appearance: "gray",
3594
3600
  onClick: s,
3595
- iconBefore: /* @__PURE__ */ i(lt, {}),
3601
+ iconBefore: /* @__PURE__ */ i(st, {}),
3596
3602
  spacing: "wide",
3597
3603
  variant: "outlined",
3598
3604
  children: t
@@ -3613,12 +3619,12 @@ const ia = C.div`
3613
3619
  ] }) }),
3614
3620
  u
3615
3621
  );
3616
- }, wl = (e) => {
3622
+ }, Dl = (e) => {
3617
3623
  const { appliedFilters: n, fields: t, onChange: r, noFiltersLabel: o } = e, a = re("(max-width: 768px)"), s = !n || n.length === 0;
3618
3624
  return /* @__PURE__ */ m(y, { direction: "column", gap: "16px", children: [
3619
3625
  a && /* @__PURE__ */ m(z, { children: [
3620
3626
  /* @__PURE__ */ m(y, { gap: "6px", width: "100%", alignItems: "center", children: [
3621
- /* @__PURE__ */ i(U, { appearance: "gray", icon: /* @__PURE__ */ i(st, {}) }),
3627
+ /* @__PURE__ */ i(j, { appearance: "gray", icon: /* @__PURE__ */ i(dt, {}) }),
3622
3628
  /* @__PURE__ */ i(
3623
3629
  ie,
3624
3630
  {
@@ -3631,7 +3637,7 @@ const ia = C.div`
3631
3637
  border: !0,
3632
3638
  width: "100%",
3633
3639
  height: "36px",
3634
- children: s ? /* @__PURE__ */ i(F, { size: "small", type: "label", appearance: "gray", children: o }) : n == null ? void 0 : n.map((d) => /* @__PURE__ */ i(
3640
+ children: s ? /* @__PURE__ */ i($, { size: "small", type: "label", appearance: "gray", children: o }) : n == null ? void 0 : n.map((d) => /* @__PURE__ */ i(
3635
3641
  ke,
3636
3642
  {
3637
3643
  appearance: "primary",
@@ -3649,9 +3655,9 @@ const ia = C.div`
3649
3655
  /* @__PURE__ */ i(G, { dashed: !0 })
3650
3656
  ] }),
3651
3657
  t.map((d) => /* @__PURE__ */ m(y, { gap: "6px", alignItems: "center", children: [
3652
- /* @__PURE__ */ i(y, { padding: "22px 0 0 0", children: /* @__PURE__ */ i(U, { appearance: "primary", icon: d.icon }) }),
3658
+ /* @__PURE__ */ i(y, { padding: "22px 0 0 0", children: /* @__PURE__ */ i(j, { appearance: "primary", icon: d.icon }) }),
3653
3659
  /* @__PURE__ */ i(
3654
- Wt,
3660
+ Qt,
3655
3661
  {
3656
3662
  disabled: d.disabled,
3657
3663
  invalid: d.invalid,
@@ -3669,12 +3675,12 @@ const ia = C.div`
3669
3675
  )
3670
3676
  ] }, d.name))
3671
3677
  ] });
3672
- }, pa = (e) => {
3678
+ }, ha = (e) => {
3673
3679
  const n = [];
3674
3680
  return e.from !== void 0 && e.from !== null && n.push(`>${e.from}`), e.to !== void 0 && e.to !== null && n.push(`<${e.to}`), n.join(";");
3675
- }, Cl = (e) => {
3681
+ }, Sl = (e) => {
3676
3682
  var s;
3677
- const { decision: n, fallbackId: t, template: r } = e, o = (d) => typeof d == "object" && d !== null && "from" in d && "to" in d ? pa(d) : d, a = ((s = n.conditionsThatEstablishesTheDecision) == null ? void 0 : s.map((d, l) => {
3683
+ const { decision: n, fallbackId: t, template: r } = e, o = (d) => typeof d == "object" && d !== null && "from" in d && "to" in d ? ha(d) : d, a = ((s = n.conditionsThatEstablishesTheDecision) == null ? void 0 : s.map((d, l) => {
3678
3684
  var c;
3679
3685
  const p = d == null ? void 0 : d.value;
3680
3686
  return p == null || typeof p == "string" && p.trim() === "" || Array.isArray(p) && p.length === 0 ? null : {
@@ -3690,7 +3696,7 @@ const ia = C.div`
3690
3696
  value: o(n.value),
3691
3697
  conditionsThatEstablishesTheDecision: a
3692
3698
  };
3693
- }, Dl = (e) => {
3699
+ }, El = (e) => {
3694
3700
  if (typeof e != "string") return e;
3695
3701
  const n = e.split(";").map((r) => r.trim()), t = {};
3696
3702
  for (const r of n)
@@ -3702,7 +3708,7 @@ const ia = C.div`
3702
3708
  isNaN(o) || (t.to = o);
3703
3709
  }
3704
3710
  return t.from !== void 0 || t.to !== void 0 ? t : e;
3705
- }, Sl = (e) => {
3711
+ }, Nl = (e) => {
3706
3712
  const { dataDecision: n, originalDecision: t } = e, r = {
3707
3713
  conditionName: n.ruleName || "",
3708
3714
  labelName: n.labelName || "",
@@ -3718,7 +3724,7 @@ const ia = C.div`
3718
3724
  (o) => o.hidden ? { ...r } : o
3719
3725
  )
3720
3726
  };
3721
- }, El = (e) => {
3727
+ }, kl = (e) => {
3722
3728
  const { decisions: n } = e;
3723
3729
  return n == null ? void 0 : n.map((t) => {
3724
3730
  var o;
@@ -3737,15 +3743,15 @@ const ia = C.div`
3737
3743
  )
3738
3744
  } : t;
3739
3745
  });
3740
- }, ga = (e) => ({
3746
+ }, fa = (e) => ({
3741
3747
  schema: de().required("Requerido").test(
3742
3748
  "non-empty",
3743
3749
  "El valor no puede estar vacío",
3744
3750
  (n) => n != null && n.trim() !== ""
3745
3751
  ),
3746
3752
  value: e
3747
- }), ha = (e) => ({
3748
- schema: Ve().test(
3753
+ }), ma = (e) => ({
3754
+ schema: _e().test(
3749
3755
  "isArrayOrString",
3750
3756
  "Debe ser un array de strings/numbers o un solo string",
3751
3757
  (n) => Array.isArray(n) ? n.every(
@@ -3753,8 +3759,8 @@ const ia = C.div`
3753
3759
  ) : typeof n == "string"
3754
3760
  ),
3755
3761
  value: e
3756
- }), fa = (e) => ({
3757
- schema: Ve().test(
3762
+ }), ba = (e) => ({
3763
+ schema: _e().test(
3758
3764
  "isArrayOrString",
3759
3765
  "Debe ser un array de strings/numbers o un solo string ",
3760
3766
  (n) => Array.isArray(n) ? n.every(
@@ -3762,7 +3768,7 @@ const ia = C.div`
3762
3768
  ) : typeof n == "string"
3763
3769
  ),
3764
3770
  value: e
3765
- }), ma = (e) => {
3771
+ }), va = (e) => {
3766
3772
  const n = (e == null ? void 0 : e.from) ?? 0, t = (e == null ? void 0 : e.to) ?? 0;
3767
3773
  return {
3768
3774
  schema: te({
@@ -3784,15 +3790,15 @@ const ia = C.div`
3784
3790
  } : {
3785
3791
  schema: de().required("Requerido"),
3786
3792
  value: e
3787
- }, ba = {
3788
- [k.LIST_OF_VALUES]: ha,
3789
- [k.LIST_OF_VALUES_MULTI]: fa,
3790
- [k.RANGE]: ma,
3793
+ }, ya = {
3794
+ [k.LIST_OF_VALUES]: ma,
3795
+ [k.LIST_OF_VALUES_MULTI]: ba,
3796
+ [k.RANGE]: va,
3791
3797
  [k.GREATER_THAN]: xn,
3792
3798
  [k.LESS_THAN]: xn,
3793
3799
  [k.EQUAL]: xn
3794
- }, Xn = (e) => ba[e] || ga;
3795
- function va({
3800
+ }, Qn = (e) => ya[e] || fa;
3801
+ function xa({
3796
3802
  decision: e,
3797
3803
  onSubmitEvent: n,
3798
3804
  textValues: t
@@ -3812,7 +3818,7 @@ function va({
3812
3818
  let o;
3813
3819
  const a = {
3814
3820
  ruleName: de().required("El nombre de la regla es requerido"),
3815
- value: Ge(() => Xn(
3821
+ value: Ye(() => Qn(
3816
3822
  o.values.howToSetTheDecision
3817
3823
  )(
3818
3824
  o.values.value,
@@ -3855,13 +3861,13 @@ function va({
3855
3861
  // },
3856
3862
  // );
3857
3863
  // }),
3858
- conditionsThatEstablishesTheDecision: Ge((l, { parent: p }) => {
3864
+ conditionsThatEstablishesTheDecision: Ye((l, { parent: p }) => {
3859
3865
  var g;
3860
3866
  if ((p == null ? void 0 : p.toggleNone) && Object.keys(p.conditionsThatEstablishesTheDecision || {}).length > 0) return te().shape({});
3861
3867
  const c = ((g = e.conditionsThatEstablishesTheDecision) == null ? void 0 : g.reduce(
3862
3868
  (h, f) => {
3863
3869
  if (o.values.conditionsThatEstablishesTheDecision[f.conditionName] !== void 0) {
3864
- const b = Xn(
3870
+ const b = Qn(
3865
3871
  f.howToSetTheCondition
3866
3872
  );
3867
3873
  h[f.conditionName] = b(
@@ -3876,9 +3882,9 @@ function va({
3876
3882
  return te(c);
3877
3883
  })
3878
3884
  };
3879
- t.terms && (a.effectiveFrom = Me().required(
3885
+ t.terms && (a.effectiveFrom = Pe().required(
3880
3886
  "La fecha de inicio es requerida"
3881
- ), a.validUntil = Me().when(
3887
+ ), a.validUntil = Pe().when(
3882
3888
  "checkClosed",
3883
3889
  (l, p, { parent: u }) => (u == null ? void 0 : u.checkClosed) ? p.required("La fecha de finalización es requerida").test(
3884
3890
  "is-after-startDate",
@@ -3890,7 +3896,7 @@ function va({
3890
3896
  ) : p.notRequired()
3891
3897
  ));
3892
3898
  const s = te(a);
3893
- return o = Rn({
3899
+ return o = Ln({
3894
3900
  initialValues: r,
3895
3901
  validationSchema: s,
3896
3902
  validateOnBlur: !0,
@@ -3932,7 +3938,7 @@ function va({
3932
3938
  });
3933
3939
  } };
3934
3940
  }
3935
- const ya = C.div`
3941
+ const Ta = C.div`
3936
3942
  & > div {
3937
3943
  border-radius: 8px;
3938
3944
  border: 1px solid
@@ -3941,7 +3947,7 @@ const ya = C.div`
3941
3947
  return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || E.palette.neutral.N30;
3942
3948
  }};
3943
3949
  }
3944
- `, xa = C.div`
3950
+ `, wa = C.div`
3945
3951
  width: 100%;
3946
3952
  height: 100%;
3947
3953
  overflow-y: auto;
@@ -3958,7 +3964,7 @@ const ya = C.div`
3958
3964
  background-color: #ebecf0;
3959
3965
  border-radius: 8px;
3960
3966
  }
3961
- `, Ta = (e) => {
3967
+ `, Ca = (e) => {
3962
3968
  const {
3963
3969
  checked: n,
3964
3970
  children: t,
@@ -3982,12 +3988,12 @@ const ya = C.div`
3982
3988
  onChange: u,
3983
3989
  size: "small",
3984
3990
  value: d,
3985
- children: /* @__PURE__ */ i(F, { size: "medium", type: "label", weight: "bold", children: a })
3991
+ children: /* @__PURE__ */ i($, { size: "medium", type: "label", weight: "bold", children: a })
3986
3992
  }
3987
3993
  ) }),
3988
3994
  l && /* @__PURE__ */ i(z, { children: t })
3989
3995
  ] });
3990
- }, wa = (e) => {
3996
+ }, Da = (e) => {
3991
3997
  const {
3992
3998
  onHandleStartChange: n,
3993
3999
  onHandleEndChange: t,
@@ -4002,17 +4008,17 @@ const ya = C.div`
4002
4008
  messageEnd: c = "",
4003
4009
  statusStart: g = "pending",
4004
4010
  statusEnd: h = "pending"
4005
- } = e, [f, x] = H(s), [b, D] = H(l), [T, S] = H(p), N = ({ target: $ }) => {
4006
- x($.checked), r && r($.checked);
4007
- }, w = ($) => {
4008
- D($.target.value), n($);
4009
- }, R = ($) => {
4010
- S($.target.value), t($);
4011
+ } = e, [f, x] = H(s), [b, D] = H(l), [T, S] = H(p), N = ({ target: I }) => {
4012
+ x(I.checked), r && r(I.checked);
4013
+ }, w = (I) => {
4014
+ D(I.target.value), n(I);
4015
+ }, R = (I) => {
4016
+ S(I.target.value), t(I);
4011
4017
  }, O = re("(max-width: 400px)");
4012
4018
  return /* @__PURE__ */ m(z, { children: [
4013
4019
  /* @__PURE__ */ m(y, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
4014
4020
  /* @__PURE__ */ i(
4015
- F,
4021
+ $,
4016
4022
  {
4017
4023
  appearance: "gray",
4018
4024
  margin: "10px 0",
@@ -4030,7 +4036,7 @@ const ya = C.div`
4030
4036
  wrap: "wrap",
4031
4037
  gap: "4px",
4032
4038
  children: /* @__PURE__ */ i(
4033
- $n,
4039
+ In,
4034
4040
  {
4035
4041
  label: "Cerrada",
4036
4042
  onChange: N,
@@ -4049,7 +4055,7 @@ const ya = C.div`
4049
4055
  gap: "24px",
4050
4056
  children: [
4051
4057
  /* @__PURE__ */ i(
4052
- Oe,
4058
+ Me,
4053
4059
  {
4054
4060
  id: "dateStart",
4055
4061
  label: o,
@@ -4062,7 +4068,7 @@ const ya = C.div`
4062
4068
  }
4063
4069
  ),
4064
4070
  f && /* @__PURE__ */ i(
4065
- Oe,
4071
+ Me,
4066
4072
  {
4067
4073
  id: "dateEnd",
4068
4074
  label: a,
@@ -4078,7 +4084,7 @@ const ya = C.div`
4078
4084
  }
4079
4085
  )
4080
4086
  ] });
4081
- }, Ca = (e) => {
4087
+ }, Sa = (e) => {
4082
4088
  const {
4083
4089
  formik: n,
4084
4090
  textValues: t,
@@ -4098,7 +4104,7 @@ const ya = C.div`
4098
4104
  isDecision: !0
4099
4105
  }),
4100
4106
  /* @__PURE__ */ i(G, { dashed: !0 }),
4101
- /* @__PURE__ */ i(ya, { children: /* @__PURE__ */ i(xa, { children: /* @__PURE__ */ m(
4107
+ /* @__PURE__ */ i(Ta, { children: /* @__PURE__ */ i(wa, { children: /* @__PURE__ */ m(
4102
4108
  y,
4103
4109
  {
4104
4110
  direction: "column",
@@ -4113,7 +4119,7 @@ const ya = C.div`
4113
4119
  alignItems: "center",
4114
4120
  gap: "64px",
4115
4121
  children: [
4116
- /* @__PURE__ */ i(F, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
4122
+ /* @__PURE__ */ i($, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
4117
4123
  /* @__PURE__ */ i(
4118
4124
  pn,
4119
4125
  {
@@ -4121,14 +4127,14 @@ const ya = C.div`
4121
4127
  onChange: () => s(!n.values.toggleNone),
4122
4128
  checked: n.values.toggleNone,
4123
4129
  size: "small",
4124
- children: /* @__PURE__ */ i(F, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
4130
+ children: /* @__PURE__ */ i($, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
4125
4131
  }
4126
4132
  )
4127
4133
  ]
4128
4134
  }
4129
4135
  ),
4130
4136
  /* @__PURE__ */ i(y, { direction: "column", gap: "20px", children: o == null ? void 0 : o.map((c) => /* @__PURE__ */ i(
4131
- Ta,
4137
+ Ca,
4132
4138
  {
4133
4139
  id: `toggle-${c.conditionName}`,
4134
4140
  name: `toggle.${c.conditionName}`,
@@ -4148,7 +4154,7 @@ const ya = C.div`
4148
4154
  t.terms && /* @__PURE__ */ m(z, { children: [
4149
4155
  /* @__PURE__ */ i(G, { dashed: !0 }),
4150
4156
  /* @__PURE__ */ i(
4151
- wa,
4157
+ Da,
4152
4158
  {
4153
4159
  labelStart: t.termStart,
4154
4160
  labelEnd: t.termEnd,
@@ -4168,15 +4174,15 @@ const ya = C.div`
4168
4174
  )
4169
4175
  ] }),
4170
4176
  /* @__PURE__ */ i(G, {}),
4171
- l && /* @__PURE__ */ i(F, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
4177
+ l && /* @__PURE__ */ i($, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
4172
4178
  /* @__PURE__ */ m(y, { direction: "row", justifyContent: "end", gap: "16px", children: [
4173
4179
  /* @__PURE__ */ i(q, { appearance: "gray", onClick: r, children: t.cancel }),
4174
4180
  /* @__PURE__ */ i(q, { type: "submit", children: t.confirm })
4175
4181
  ] })
4176
4182
  ] }) });
4177
- }, Da = (e) => {
4183
+ }, Ea = (e) => {
4178
4184
  var h;
4179
- const { decision: n, onSubmitEvent: t, textValues: r, onCancel: o } = e, { formik: a, handleToggleNoneChange: s } = va({
4185
+ const { decision: n, onSubmitEvent: t, textValues: r, onCancel: o } = e, { formik: a, handleToggleNoneChange: s } = xa({
4180
4186
  decision: n,
4181
4187
  onSubmitEvent: t,
4182
4188
  textValues: r
@@ -4190,7 +4196,7 @@ const ya = C.div`
4190
4196
  (f) => !f.hidden
4191
4197
  )) || [], p = !!a.errors.conditionsThatEstablishesTheDecision && a.submitCount > 0, u = a.touched.effectiveFrom ? a.errors.effectiveFrom ? "invalid" : "valid" : void 0, c = a.touched.validUntil ? a.errors.validUntil ? "invalid" : "valid" : void 0;
4192
4198
  return /* @__PURE__ */ i(
4193
- Ca,
4199
+ Sa,
4194
4200
  {
4195
4201
  formik: a,
4196
4202
  onCancel: o,
@@ -4222,7 +4228,7 @@ const ya = C.div`
4222
4228
  termEndStatus: c
4223
4229
  }
4224
4230
  );
4225
- }, Nl = (e) => {
4231
+ }, Al = (e) => {
4226
4232
  var o;
4227
4233
  const { decisionTemplate: n } = e, t = { ...n }, r = (o = t.conditionsThatEstablishesTheDecision) == null ? void 0 : o.find(
4228
4234
  (a) => a.switchPlaces
@@ -4238,7 +4244,7 @@ const ya = C.div`
4238
4244
  (a) => a.conditionName === r.conditionName ? { ...a, hidden: !0 } : a
4239
4245
  )
4240
4246
  } : t;
4241
- }, kl = (e) => {
4247
+ }, $l = (e) => {
4242
4248
  const { decisions: n } = e;
4243
4249
  return n == null ? void 0 : n.map((t) => {
4244
4250
  var o;
@@ -4274,7 +4280,7 @@ const ya = C.div`
4274
4280
  color: E.palette.neutral.N0
4275
4281
  }
4276
4282
  }
4277
- }, Sa = C.div`
4283
+ }, Na = C.div`
4278
4284
  & > div {
4279
4285
  border: 1px solid
4280
4286
  ${({ theme: e, $active: n }) => {
@@ -4290,27 +4296,27 @@ const ya = C.div`
4290
4296
  return ((o = (r = (t = e == null ? void 0 : e.menu) == null ? void 0 : t.item) == null ? void 0 : r.background) == null ? void 0 : o.hover) || Ce.item.background.hover;
4291
4297
  }};
4292
4298
  }
4293
- `, Qn = C.div`
4299
+ `, Zn = C.div`
4294
4300
  display: flex;
4295
4301
  align-items: center;
4296
4302
  gap: 12px;
4297
4303
  width: 100%;
4298
4304
  outline: none;
4299
4305
  cursor: pointer;
4300
- `, Ea = C.div`
4306
+ `, ka = C.div`
4301
4307
  display: flex;
4302
4308
  align-items: center;
4303
4309
  outline: none;
4304
4310
  cursor: pointer;
4305
- `, Na = C(ut)`
4311
+ `, Aa = C(pt)`
4306
4312
  display: flex;
4307
4313
  align-items: center;
4308
4314
  text-decoration: none;
4309
- `, ka = C(ut)`
4315
+ `, $a = C(pt)`
4310
4316
  display: block;
4311
4317
  text-decoration: none;
4312
4318
  color: inherit;
4313
- `, Aa = C.div`
4319
+ `, Ia = C.div`
4314
4320
  & > div {
4315
4321
  border-bottom: 1px solid
4316
4322
  ${({ theme: e, $active: n }) => {
@@ -4319,7 +4325,7 @@ const ya = C.div`
4319
4325
  }};
4320
4326
  border-radius: 8px 8px 0 0;
4321
4327
  }
4322
- `, bt = C.div`
4328
+ `, vt = C.div`
4323
4329
  display: block;
4324
4330
  text-decoration: none;
4325
4331
  background-color: ${({ theme: e, $active: n }) => {
@@ -4337,14 +4343,14 @@ const ya = C.div`
4337
4343
  return ((a = (o = (r = n == null ? void 0 : n.menu) == null ? void 0 : r.item) == null ? void 0 : o.background) == null ? void 0 : a.hover) || Ce.item.background.hover;
4338
4344
  }};
4339
4345
  }
4340
- `, $a = C.div`
4346
+ `, Fa = C.div`
4341
4347
  display: flex;
4342
4348
  flex-direction: column;
4343
4349
 
4344
- & > a:last-child ${bt} {
4350
+ & > a:last-child ${vt} {
4345
4351
  border-radius: 0 0 8px 8px;
4346
4352
  }
4347
- `, Ia = (e) => {
4353
+ `, Ra = (e) => {
4348
4354
  const { isOpen: n, links: t, onClick: r, title: o, activeId: a, headerPath: s, headerActive: d } = e, l = (f) => {
4349
4355
  (f.key === "Enter" || f.key === " ") && (f.preventDefault(), r());
4350
4356
  }, p = (f) => {
@@ -4352,16 +4358,16 @@ const ya = C.div`
4352
4358
  }, u = (f) => {
4353
4359
  (f.key === "Enter" || f.key === " ") && (f.preventDefault(), f.stopPropagation(), r());
4354
4360
  }, c = n || d ? "primary" : "dark", g = n || d ? "bold" : "normal", h = P.useId();
4355
- return /* @__PURE__ */ i(Sa, { $active: n, children: /* @__PURE__ */ m(ie, { border: !0, borderRadius: "8px", width: "100%", children: [
4361
+ return /* @__PURE__ */ i(Na, { $active: n, children: /* @__PURE__ */ m(ie, { border: !0, borderRadius: "8px", width: "100%", children: [
4356
4362
  /* @__PURE__ */ i(
4357
- Aa,
4363
+ Ia,
4358
4364
  {
4359
4365
  $active: n && t.length > 0,
4360
4366
  "aria-controls": h,
4361
4367
  "aria-expanded": n,
4362
4368
  onClick: p,
4363
4369
  onKeyDown: u,
4364
- children: s ? /* @__PURE__ */ i(Na, { to: s, children: /* @__PURE__ */ m(
4370
+ children: s ? /* @__PURE__ */ i(Aa, { to: s, children: /* @__PURE__ */ m(
4365
4371
  ie,
4366
4372
  {
4367
4373
  alignItems: "center",
@@ -4371,15 +4377,15 @@ const ya = C.div`
4371
4377
  padding: "12px 8px",
4372
4378
  children: [
4373
4379
  /* @__PURE__ */ i(
4374
- U,
4380
+ j,
4375
4381
  {
4376
4382
  appearance: c,
4377
4383
  cursorHover: !0,
4378
- icon: n && t.length > 0 ? /* @__PURE__ */ i(Cn, {}) : /* @__PURE__ */ i(Vn, {})
4384
+ icon: n && t.length > 0 ? /* @__PURE__ */ i(Cn, {}) : /* @__PURE__ */ i(_n, {})
4379
4385
  }
4380
4386
  ),
4381
- /* @__PURE__ */ i(Qn, { children: /* @__PURE__ */ i(
4382
- F,
4387
+ /* @__PURE__ */ i(Zn, { children: /* @__PURE__ */ i(
4388
+ $,
4383
4389
  {
4384
4390
  appearance: c,
4385
4391
  cursorHover: !0,
@@ -4401,22 +4407,22 @@ const ya = C.div`
4401
4407
  padding: "12px 8px",
4402
4408
  children: [
4403
4409
  /* @__PURE__ */ i(
4404
- U,
4410
+ j,
4405
4411
  {
4406
4412
  appearance: c,
4407
4413
  cursorHover: !0,
4408
- icon: n && t.length > 0 ? /* @__PURE__ */ i(Cn, {}) : /* @__PURE__ */ i(Vn, {})
4414
+ icon: n && t.length > 0 ? /* @__PURE__ */ i(Cn, {}) : /* @__PURE__ */ i(_n, {})
4409
4415
  }
4410
4416
  ),
4411
- /* @__PURE__ */ i(Qn, { children: /* @__PURE__ */ i(
4412
- Ea,
4417
+ /* @__PURE__ */ i(Zn, { children: /* @__PURE__ */ i(
4418
+ ka,
4413
4419
  {
4414
4420
  "aria-controls": h,
4415
4421
  "aria-expanded": n,
4416
4422
  onClick: r,
4417
4423
  onKeyDown: l,
4418
4424
  children: /* @__PURE__ */ i(
4419
- F,
4425
+ $,
4420
4426
  {
4421
4427
  appearance: c,
4422
4428
  cursorHover: !0,
@@ -4434,9 +4440,9 @@ const ya = C.div`
4434
4440
  )
4435
4441
  }
4436
4442
  ),
4437
- n && t.length > 0 && /* @__PURE__ */ i($a, { id: h, children: t.map((f) => {
4443
+ n && t.length > 0 && /* @__PURE__ */ i(Fa, { id: h, children: t.map((f) => {
4438
4444
  const x = f.id === a;
4439
- return /* @__PURE__ */ i(ka, { to: f.path, children: /* @__PURE__ */ i(bt, { $active: x, children: /* @__PURE__ */ m(
4445
+ return /* @__PURE__ */ i($a, { to: f.path, children: /* @__PURE__ */ i(vt, { $active: x, children: /* @__PURE__ */ m(
4440
4446
  y,
4441
4447
  {
4442
4448
  alignItems: "center",
@@ -4444,9 +4450,9 @@ const ya = C.div`
4444
4450
  gap: "8px",
4445
4451
  padding: x ? "8px 4px" : "8px 32px",
4446
4452
  children: [
4447
- x && /* @__PURE__ */ i(U, { appearance: "primary", icon: /* @__PURE__ */ i(_t, {}) }),
4453
+ x && /* @__PURE__ */ i(j, { appearance: "primary", icon: /* @__PURE__ */ i(jt, {}) }),
4448
4454
  /* @__PURE__ */ i(
4449
- F,
4455
+ $,
4450
4456
  {
4451
4457
  appearance: x ? "primary" : "dark",
4452
4458
  size: "small",
@@ -4460,7 +4466,7 @@ const ya = C.div`
4460
4466
  ) }) }, f.id);
4461
4467
  }) })
4462
4468
  ] }) });
4463
- }, Fa = C.div`
4469
+ }, La = C.div`
4464
4470
  & > div {
4465
4471
  background: ${({ $background: e, theme: n }) => {
4466
4472
  var t, r, o, a;
@@ -4468,13 +4474,13 @@ const ya = C.div`
4468
4474
  }};
4469
4475
  }
4470
4476
  height: 90vh;
4471
- `, Ra = (e, n) => {
4477
+ `, Oa = (e, n) => {
4472
4478
  var t;
4473
4479
  for (const r of n)
4474
4480
  if (r.path && (e === r.path || e.startsWith(r.path + "/")) || (t = r.links) != null && t.some((o) => o.path === e)) return r.id;
4475
4481
  return null;
4476
- }, Al = (e) => {
4477
- const { collapseOnNavigate: n = !1, defaultOpenId: t = null, groups: r } = e, o = Jt(), [a, s] = P.useState(t), d = P.useRef(o.pathname), l = P.useCallback(
4482
+ }, Il = (e) => {
4483
+ const { collapseOnNavigate: n = !1, defaultOpenId: t = null, groups: r } = e, o = nr(), [a, s] = P.useState(t), d = P.useRef(o.pathname), l = P.useCallback(
4478
4484
  (u) => {
4479
4485
  var c;
4480
4486
  return (c = u.find((g) => g.path === o.pathname)) == null ? void 0 : c.id;
@@ -4490,14 +4496,14 @@ const ya = C.div`
4490
4496
  s(null);
4491
4497
  return;
4492
4498
  }
4493
- const c = Ra(o.pathname, r);
4499
+ const c = Oa(o.pathname, r);
4494
4500
  if (c) {
4495
4501
  s(c);
4496
4502
  return;
4497
4503
  }
4498
4504
  t && s(t);
4499
- }, [n, t, r, o.pathname]), /* @__PURE__ */ i(Fa, { $background: !0, children: /* @__PURE__ */ i(y, { direction: "column", gap: "8px", padding: "12px", height: "100%", children: r.map((u) => /* @__PURE__ */ i(
4500
- Ia,
4505
+ }, [n, t, r, o.pathname]), /* @__PURE__ */ i(La, { $background: !0, children: /* @__PURE__ */ i(y, { direction: "column", gap: "8px", padding: "12px", height: "100%", children: r.map((u) => /* @__PURE__ */ i(
4506
+ Ra,
4501
4507
  {
4502
4508
  activeId: l(u.links),
4503
4509
  headerPath: u.path,
@@ -4516,7 +4522,7 @@ function W(e) {
4516
4522
  function Ee(e) {
4517
4523
  e.stopPropagation();
4518
4524
  }
4519
- function vt() {
4525
+ function yt() {
4520
4526
  const e = /* @__PURE__ */ new Map();
4521
4527
  return [function(r, o) {
4522
4528
  e.get(r) && e.get(r).forEach((a) => {
@@ -4527,53 +4533,53 @@ function vt() {
4527
4533
  a.push(o), e.set(r, a);
4528
4534
  }];
4529
4535
  }
4530
- var [yt, xt] = vt();
4531
- function La(e, n) {
4536
+ var [xt, Tt] = yt();
4537
+ function Ma(e, n) {
4532
4538
  return e.source === n.source && e.flags.split("").sort().join("") === n.flags.split("").sort().join("");
4533
4539
  }
4534
- function Ye(e, n, t = !0, r = ["__key"]) {
4540
+ function We(e, n, t = !0, r = ["__key"]) {
4535
4541
  if (e === n) return !0;
4536
4542
  if (typeof n == "object" && typeof e == "object" && e !== null && n !== null) {
4537
4543
  if (e instanceof Map || e instanceof Set) return !1;
4538
4544
  if (e instanceof Date && n instanceof Date)
4539
4545
  return e.getTime() === n.getTime();
4540
4546
  if (e instanceof RegExp && n instanceof RegExp)
4541
- return La(e, n);
4547
+ return Ma(e, n);
4542
4548
  if (e === null || n === null) return !1;
4543
4549
  const o = e, a = n;
4544
4550
  if (Object.keys(o).length !== Object.keys(a).length) return !1;
4545
4551
  for (const s of r)
4546
4552
  if ((s in o || s in a) && o[s] !== a[s]) return !1;
4547
4553
  for (const s in o)
4548
- if (!(s in a) || o[s] !== a[s] && !t || t && !Ye(o[s], a[s], t, r)) return !1;
4554
+ if (!(s in a) || o[s] !== a[s] && !t || t && !We(o[s], a[s], t, r)) return !1;
4549
4555
  return !0;
4550
4556
  }
4551
4557
  return !1;
4552
4558
  }
4553
- function Tt(e) {
4559
+ function wt(e) {
4554
4560
  return e.split(" ").filter((n) => n);
4555
4561
  }
4556
- function _e(e) {
4562
+ function Ue(e) {
4557
4563
  return { x: e.clientX, y: e.clientY };
4558
4564
  }
4559
4565
  Array();
4560
- var Pn = typeof window < "u", Y = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap();
4561
- function wt() {
4562
- if (!Pn) return !1;
4566
+ var zn = typeof window < "u", Y = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap();
4567
+ function Ct() {
4568
+ if (!zn) return !1;
4563
4569
  if ("userAgentData" in navigator)
4564
4570
  return navigator.userAgentData.mobile === !0;
4565
4571
  const e = navigator.userAgent, n = /android|iphone|ipod/i.test(e), t = /iPad/.test(e) || e.includes("Macintosh") && navigator.maxTouchPoints > 1;
4566
4572
  return n || t;
4567
4573
  }
4568
- var Oa = {
4574
+ var Pa = {
4569
4575
  affectedNodes: [],
4570
4576
  coordinates: {
4571
4577
  x: 0,
4572
4578
  y: 0
4573
4579
  },
4574
4580
  currentTargetValue: void 0,
4575
- on: xt,
4576
- emit: yt,
4581
+ on: Tt,
4582
+ emit: xt,
4577
4583
  originalZIndex: void 0,
4578
4584
  pointerSelection: !1,
4579
4585
  preventEnter: !1,
@@ -4599,16 +4605,16 @@ var Oa = {
4599
4605
  scrollDebounceTimeout: void 0,
4600
4606
  frameIdX: void 0,
4601
4607
  frameIdY: void 0
4602
- }, v = Oa, Se = !1, Zn, Tn;
4603
- function Ma() {
4608
+ }, v = Pa, Se = !1, Kn, Tn;
4609
+ function za() {
4604
4610
  v.scrollDebounceTimeout && clearTimeout(v.scrollDebounceTimeout), v.longPressTimeout && clearTimeout(v.longPressTimeout), v.frameIdX !== void 0 && cancelAnimationFrame(v.frameIdX), v.frameIdY !== void 0 && cancelAnimationFrame(v.frameIdY), v = { ...{
4605
4611
  affectedNodes: [],
4606
4612
  coordinates: {
4607
4613
  x: 0,
4608
4614
  y: 0
4609
4615
  },
4610
- on: xt,
4611
- emit: yt,
4616
+ on: Tt,
4617
+ emit: xt,
4612
4618
  currentTargetValue: void 0,
4613
4619
  originalZIndex: void 0,
4614
4620
  pointerId: void 0,
@@ -4641,38 +4647,38 @@ function Ma() {
4641
4647
  frameIdY: void 0
4642
4648
  } };
4643
4649
  }
4644
- function Ct(e) {
4650
+ function Dt(e) {
4645
4651
  return Object.assign(v, e), e.initialParent.data.emit("dragStarted", v), Se = !1, v.emit("dragStarted", v), v;
4646
4652
  }
4647
- function Pa() {
4653
+ function Va() {
4648
4654
  v.activeState && Ie(v.activeState.parent, void 0, v), v.selectedState && Ae(v.selectedState.nodes, v.selectedState.parent, v), v.selectedState = v.activeState = void 0;
4649
4655
  }
4650
- function za() {
4656
+ function _a() {
4651
4657
  if (v.pointerDown && (v.pointerDown.node.el.draggable = !0), v.pointerDown = void 0, !oe(v)) return;
4652
4658
  const e = v.currentParent.data.config;
4653
4659
  oe(v) && e.handleEnd(v);
4654
4660
  }
4655
- function Va(e) {
4661
+ function Ua(e) {
4656
4662
  e.key === "Escape" && (v.selectedState && Ae(v.selectedState.nodes, v.selectedState.parent, v), v.activeState && Ie(v.activeState.parent, void 0, v), v.selectedState = v.activeState = void 0);
4657
4663
  }
4658
- function _a(e) {
4664
+ function ja(e) {
4659
4665
  if (!X(v)) return;
4660
4666
  Se = !0;
4661
4667
  const n = v.initialParent.data.config.handleEnd;
4662
4668
  n(v);
4663
4669
  }
4664
- function ja(e) {
4670
+ function Ha(e) {
4665
4671
  if (!X(v)) return;
4666
4672
  W(e);
4667
- const { x: n, y: t } = _e(e);
4673
+ const { x: n, y: t } = Ue(e);
4668
4674
  X(v) && mn({ x: n, y: t }, e, v);
4669
4675
  }
4670
- function Ua(e) {
4676
+ function Ba(e) {
4671
4677
  if (!v.pointerDown || !v.pointerDown.validated) return;
4672
4678
  const n = v.pointerDown.parent.data.config;
4673
- if (!(e.pointerType === "mouse" && !wt()))
4679
+ if (!(e.pointerType === "mouse" && !Ct()))
4674
4680
  if (oe(v))
4675
- oe(v) && Kn(e, v);
4681
+ oe(v) && Jn(e, v);
4676
4682
  else {
4677
4683
  if (W(e), n.longPress && !v.longPress) {
4678
4684
  clearTimeout(v.longPressTimeout), v.longPress = !1;
@@ -4680,7 +4686,7 @@ function Ua(e) {
4680
4686
  }
4681
4687
  const t = n.draggedNodes(v.pointerDown);
4682
4688
  n.dragstartClasses(v.pointerDown.node, t, n, !0);
4683
- const r = v.pointerDown.node.el.getBoundingClientRect(), o = bi(
4689
+ const r = v.pointerDown.node.el.getBoundingClientRect(), o = yi(
4684
4690
  v.pointerDown.node,
4685
4691
  v.pointerDown.parent,
4686
4692
  e,
@@ -4688,24 +4694,24 @@ function Ua(e) {
4688
4694
  t,
4689
4695
  r
4690
4696
  );
4691
- Kn(e, o, !0);
4697
+ Jn(e, o, !0);
4692
4698
  }
4693
4699
  }
4694
- function Ha({
4700
+ function qa({
4695
4701
  parent: e,
4696
4702
  getValues: n,
4697
4703
  setValues: t,
4698
4704
  config: r = {}
4699
4705
  }) {
4700
4706
  var l, p, u;
4701
- if (!Pn) return;
4702
- Zn || (Zn = ln(document, {
4703
- dragover: ja,
4704
- pointerdown: Pa,
4705
- pointerup: za,
4706
- keydown: Va,
4707
- drop: _a,
4708
- pointermove: Ua,
4707
+ if (!zn) return;
4708
+ Kn || (Kn = ln(document, {
4709
+ dragover: Ha,
4710
+ pointerdown: Va,
4711
+ pointerup: _a,
4712
+ keydown: Ua,
4713
+ drop: ja,
4714
+ pointermove: Ba,
4709
4715
  pointercancel: J(r.handlePointercancel),
4710
4716
  touchmove: (c) => {
4711
4717
  X(v) && c.cancelable && W(c);
@@ -4713,45 +4719,45 @@ function Ha({
4713
4719
  contextmenu: (c) => {
4714
4720
  oe(v) && W(c);
4715
4721
  }
4716
- })), St(e);
4717
- const [o, a] = vt(), s = {
4722
+ })), Et(e);
4723
+ const [o, a] = yt(), s = {
4718
4724
  getValues: n,
4719
4725
  setValues: t,
4720
4726
  config: {
4721
4727
  dragDropEffect: r.dragDropEffect ?? "move",
4722
4728
  dragEffectAllowed: r.dragEffectAllowed ?? "move",
4723
- draggedNodes: ti,
4724
- dragstartClasses: ii,
4725
- handleNodeKeydown: si,
4726
- handleDragstart: oi,
4727
- handleNodeDragover: yi,
4728
- handleParentDragover: xi,
4729
- handleNodeDrop: ci,
4730
- handleNodeFocus: ui,
4731
- handleNodeBlur: pi,
4732
- handlePointercancel: hi,
4733
- handleEnd: fi,
4734
- handleDragend: gi,
4735
- handleParentFocus: qa,
4736
- handleNodePointerup: mi,
4737
- handleNodePointerover: di,
4738
- handleParentPointerover: Ti,
4739
- handleParentScroll: ri,
4740
- handleNodePointerdown: ai,
4741
- handleNodeDragenter: Ci,
4742
- handleNodeDragleave: Di,
4743
- handleParentDrop: Ya,
4729
+ draggedNodes: oi,
4730
+ dragstartClasses: si,
4731
+ handleNodeKeydown: ci,
4732
+ handleDragstart: ii,
4733
+ handleNodeDragover: Ti,
4734
+ handleParentDragover: wi,
4735
+ handleNodeDrop: pi,
4736
+ handleNodeFocus: gi,
4737
+ handleNodeBlur: hi,
4738
+ handlePointercancel: mi,
4739
+ handleEnd: bi,
4740
+ handleDragend: fi,
4741
+ handleParentFocus: Ya,
4742
+ handleNodePointerup: vi,
4743
+ handleNodePointerover: ui,
4744
+ handleParentPointerover: Ci,
4745
+ handleParentScroll: ai,
4746
+ handleNodePointerdown: li,
4747
+ handleNodeDragenter: Si,
4748
+ handleNodeDragleave: Ei,
4749
+ handleParentDrop: Xa,
4744
4750
  multiDrag: r.multiDrag ?? !1,
4745
4751
  nativeDrag: r.nativeDrag ?? !0,
4746
- performSort: Ba,
4747
- performTransfer: Ga,
4752
+ performSort: Ga,
4753
+ performTransfer: Wa,
4748
4754
  root: r.root ?? document,
4749
- setupNode: Xa,
4750
- setupNodeRemap: Et,
4751
- reapplyDragClasses: Qa,
4752
- tearDownNode: Ka,
4753
- tearDownNodeRemap: Za,
4754
- remapFinished: ei,
4755
+ setupNode: Za,
4756
+ setupNodeRemap: Nt,
4757
+ reapplyDragClasses: Ka,
4758
+ tearDownNode: ei,
4759
+ tearDownNodeRemap: Ja,
4760
+ remapFinished: ti,
4755
4761
  threshold: {
4756
4762
  horizontal: 0,
4757
4763
  vertical: 0
@@ -4764,7 +4770,7 @@ function Ha({
4764
4770
  on: a,
4765
4771
  emit: o
4766
4772
  };
4767
- new MutationObserver(Ja).observe(e, { childList: !0 }), Y.set(e, s), (l = r.plugins) == null || l.forEach((c) => {
4773
+ new MutationObserver(ni).observe(e, { childList: !0 }), Y.set(e, s), (l = r.plugins) == null || l.forEach((c) => {
4768
4774
  var g, h;
4769
4775
  (h = (g = c(e)) == null ? void 0 : g.tearDown) == null || h.call(g);
4770
4776
  }), (p = r.plugins) == null || p.forEach((c) => {
@@ -4773,10 +4779,10 @@ function Ha({
4773
4779
  }), (u = r.plugins) == null || u.forEach((c) => {
4774
4780
  var g, h;
4775
4781
  (h = (g = c(e)) == null ? void 0 : g.setup) == null || h.call(g);
4776
- }), Wa(e, s), hn(e, !0);
4782
+ }), Qa(e, s), hn(e, !0);
4777
4783
  }
4778
- function Dt(e, n, t, r, o, a) {
4779
- const { x: s, y: d } = _e(t), l = e.el.getBoundingClientRect();
4784
+ function St(e, n, t, r, o, a) {
4785
+ const { x: s, y: d } = Ue(t), l = e.el.getBoundingClientRect();
4780
4786
  return {
4781
4787
  affectedNodes: [],
4782
4788
  ascendingDirection: !1,
@@ -4810,16 +4816,16 @@ function Dt(e, n, t, r, o, a) {
4810
4816
  transferred: !1
4811
4817
  };
4812
4818
  }
4813
- function Ba({
4819
+ function Ga({
4814
4820
  parent: e,
4815
4821
  draggedNodes: n,
4816
4822
  targetNodes: t
4817
4823
  }) {
4818
4824
  hn(e.el);
4819
- const r = n.map((l) => l.data.value), o = ze(e.el, e.data), a = n[0].data.index, s = [...e.data.enabledNodes], d = [
4820
- ...o.filter((l) => !r.some((p) => Ye(l, p)))
4825
+ const r = n.map((l) => l.data.value), o = Ve(e.el, e.data), a = n[0].data.index, s = [...e.data.enabledNodes], d = [
4826
+ ...o.filter((l) => !r.some((p) => We(l, p)))
4821
4827
  ];
4822
- d.splice(t[0].data.index, 0, ...r), "draggedNode" in v && (v.currentTargetValue = t[0].data.value), kn(e.el, e.data, [...d]), e.data.config.onSort && e.data.config.onSort({
4828
+ d.splice(t[0].data.index, 0, ...r), "draggedNode" in v && (v.currentTargetValue = t[0].data.value), An(e.el, e.data, [...d]), e.data.config.onSort && e.data.config.onSort({
4823
4829
  parent: {
4824
4830
  el: e.el,
4825
4831
  data: e.data
@@ -4862,17 +4868,17 @@ function Ae(e, n, t) {
4862
4868
  function nn(e, n, t, r, o = !1) {
4863
4869
  r.pointerSelection = o;
4864
4870
  for (const a of n)
4865
- a.el.setAttribute("aria-selected", "true"), Le([a.el], e.data.config.selectedClass, !0);
4871
+ a.el.setAttribute("aria-selected", "true"), Oe([a.el], e.data.config.selectedClass, !0);
4866
4872
  r.selectedState = {
4867
4873
  nodes: n,
4868
4874
  parent: e
4869
4875
  }, Ie(e, t, r);
4870
4876
  }
4871
- function qa(e, n) {
4877
+ function Ya(e, n) {
4872
4878
  const t = e.targetData.parent.data.enabledNodes[0];
4873
4879
  t && (n.selectedState && n.selectedState.parent.el !== e.targetData.parent.el ? Ie(e.targetData.parent, t, n) : n.selectedState || Ie(e.targetData.parent, t, n));
4874
4880
  }
4875
- function Ga({
4881
+ function Wa({
4876
4882
  currentParent: e,
4877
4883
  targetParent: n,
4878
4884
  initialParent: t,
@@ -4883,12 +4889,12 @@ function Ga({
4883
4889
  }) {
4884
4890
  hn(t.el);
4885
4891
  const d = r.map((g) => g.data.value), l = [
4886
- ...ze(e.el, e.data).filter(
4887
- (g) => !d.some((h) => Ye(g, h))
4892
+ ...Ve(e.el, e.data).filter(
4893
+ (g) => !d.some((h) => We(g, h))
4888
4894
  )
4889
- ], p = ze(n.el, n.data), u = t.el === n.el && n.data.config.sortable === !1;
4895
+ ], p = Ve(n.el, n.data), u = t.el === n.el && n.data.config.sortable === !1;
4890
4896
  let c;
4891
- a.length ? (u ? c = o : n.data.config.sortable === !1 ? c = n.data.enabledNodes.length : c = a[0].data.index, p.splice(c, 0, ...d)) : (c = u ? o : n.data.enabledNodes.length, p.splice(c, 0, ...d)), kn(e.el, e.data, l), kn(n.el, n.data, p), n.data.config.onTransfer && n.data.config.onTransfer({
4897
+ a.length ? (u ? c = o : n.data.config.sortable === !1 ? c = n.data.enabledNodes.length : c = a[0].data.index, p.splice(c, 0, ...d)) : (c = u ? o : n.data.enabledNodes.length, p.splice(c, 0, ...d)), An(e.el, e.data, l), An(n.el, n.data, p), n.data.config.onTransfer && n.data.config.onTransfer({
4892
4898
  sourceParent: e,
4893
4899
  targetParent: n,
4894
4900
  initialParent: t,
@@ -4906,18 +4912,18 @@ function Ga({
4906
4912
  targetNodes: a || []
4907
4913
  });
4908
4914
  }
4909
- function ze(e, n) {
4915
+ function Ve(e, n) {
4910
4916
  return [...n.getValues(e)];
4911
4917
  }
4912
- function kn(e, n, t) {
4918
+ function An(e, n, t) {
4913
4919
  n.setValues(t, e);
4914
4920
  }
4915
- function Ya(e, n) {
4921
+ function Xa(e, n) {
4916
4922
  Ee(e.e), Se = !0;
4917
4923
  const t = n.initialParent.data.config.handleEnd;
4918
4924
  t(n);
4919
4925
  }
4920
- function St(e) {
4926
+ function Et(e) {
4921
4927
  const n = Y.get(e);
4922
4928
  n && n.abortControllers.mainParent && n.abortControllers.mainParent.abort();
4923
4929
  }
@@ -4927,7 +4933,7 @@ function X(e) {
4927
4933
  function oe(e) {
4928
4934
  return "synthDragging" in e && !!e.synthDragging;
4929
4935
  }
4930
- function Wa(e, n) {
4936
+ function Qa(e, n) {
4931
4937
  n.abortControllers.mainParent = ln(e, {
4932
4938
  dragover: tn(n.config.handleParentDragover),
4933
4939
  handleParentPointerover: n.config.handleParentPointerover,
@@ -4971,7 +4977,7 @@ function Wa(e, n) {
4971
4977
  }
4972
4978
  ));
4973
4979
  }
4974
- function Xa(e) {
4980
+ function Za(e) {
4975
4981
  var t;
4976
4982
  const n = e.parent.data.config;
4977
4983
  e.node.data.abortControllers.mainNode = ln(e.node.el, {
@@ -4999,33 +5005,33 @@ function Xa(e) {
4999
5005
  (a = (o = r(e.parent.el)) == null ? void 0 : o.setupNode) == null || a.call(o, e);
5000
5006
  });
5001
5007
  }
5002
- function Et(e) {
5008
+ function Nt(e) {
5003
5009
  var n;
5004
5010
  he.set(e.node.el, e.node.data), (n = e.parent.data.config.plugins) == null || n.forEach((t) => {
5005
5011
  var r, o;
5006
5012
  (o = (r = t(e.parent.el)) == null ? void 0 : r.setupNodeRemap) == null || o.call(r, e);
5007
5013
  });
5008
5014
  }
5009
- function Qa(e, n) {
5015
+ function Ka(e, n) {
5010
5016
  if (!X(v)) return;
5011
5017
  const t = oe(v) ? n.config.synthDropZoneClass : n.config.dropZoneClass;
5012
- v.draggedNode.el === e && Le([e], t, !0);
5018
+ v.draggedNode.el === e && Oe([e], t, !0);
5013
5019
  }
5014
- function Za(e) {
5020
+ function Ja(e) {
5015
5021
  var n;
5016
5022
  (n = e.parent.data.config.plugins) == null || n.forEach((t) => {
5017
5023
  var r, o;
5018
5024
  (o = (r = t(e.parent.el)) == null ? void 0 : r.tearDownNodeRemap) == null || o.call(r, e);
5019
5025
  });
5020
5026
  }
5021
- function Ka(e) {
5027
+ function ei(e) {
5022
5028
  var n, t, r, o, a;
5023
5029
  (n = e.parent.data.config.plugins) == null || n.forEach((s) => {
5024
5030
  var d, l;
5025
5031
  (l = (d = s(e.parent.el)) == null ? void 0 : d.tearDownNode) == null || l.call(d, e);
5026
5032
  }), e.node.el.draggable = !1, (r = (t = e.node.data) == null ? void 0 : t.abortControllers) != null && r.mainNode && ((a = (o = e.node.data) == null ? void 0 : o.abortControllers) == null || a.mainNode.abort());
5027
5033
  }
5028
- function Ja(e) {
5034
+ function ni(e) {
5029
5035
  if (e.length === 1 && e[0].addedNodes.length === 1 && !(e[0].addedNodes[0] instanceof HTMLElement))
5030
5036
  return;
5031
5037
  const n = e[0].target;
@@ -5072,7 +5078,7 @@ function hn(e, n) {
5072
5078
  index: l
5073
5079
  }
5074
5080
  );
5075
- if (!X(v) && v.activeState && Ye(v.activeState.node.data.value, c.value) && Ie(
5081
+ if (!X(v) && v.activeState && We(v.activeState.node.data.value, c.value) && Ie(
5076
5082
  {
5077
5083
  data: t,
5078
5084
  el: e
@@ -5082,7 +5088,7 @@ function hn(e, n) {
5082
5088
  data: c
5083
5089
  },
5084
5090
  v
5085
- ), X(v) && Ye(v.draggedNode.data.value, c.value)) {
5091
+ ), X(v) && We(v.draggedNode.data.value, c.value)) {
5086
5092
  v.draggedNode.data = c, v.draggedNode.el = p;
5087
5093
  const g = v.draggedNodes.find(
5088
5094
  (h) => h.data.value === c.value
@@ -5101,7 +5107,7 @@ function hn(e, n) {
5101
5107
  el: p,
5102
5108
  data: c
5103
5109
  }
5104
- }), Et({
5110
+ }), Nt({
5105
5111
  parent: {
5106
5112
  el: e,
5107
5113
  data: t
@@ -5117,13 +5123,13 @@ function hn(e, n) {
5117
5123
  (u = (p = l(e)) == null ? void 0 : p.remapFinished) == null || u.call(p);
5118
5124
  });
5119
5125
  }
5120
- function ei() {
5126
+ function ti() {
5121
5127
  v.remapJustFinished = !0, "draggedNode" in v && (v.affectedNodes = []);
5122
5128
  }
5123
- function ni(e) {
5129
+ function ri(e) {
5124
5130
  return !!e.targetData.parent.data.config.nativeDrag;
5125
5131
  }
5126
- function ti(e) {
5132
+ function oi(e) {
5127
5133
  var n;
5128
5134
  if (e.parent.data.config.multiDrag) {
5129
5135
  if (v.selectedState)
@@ -5136,14 +5142,14 @@ function ti(e) {
5136
5142
  } else return [e.node];
5137
5143
  return [];
5138
5144
  }
5139
- function ri(e) {
5145
+ function ai(e) {
5140
5146
  X(v) && (v.emit("scrollStarted", v), !oe(v) && (v.preventEnter = !0, Tn && clearTimeout(Tn), Tn = setTimeout(() => {
5141
5147
  v.preventEnter = !1, v.emit("scrollEnded", v);
5142
5148
  }, 100)));
5143
5149
  }
5144
- function oi(e, n) {
5150
+ function ii(e, n) {
5145
5151
  const t = e.targetData.parent.data.config;
5146
- if (!t.nativeDrag || !ni(e) || !Nt({
5152
+ if (!t.nativeDrag || !ri(e) || !kt({
5147
5153
  x: e.e.clientX,
5148
5154
  y: e.e.clientY,
5149
5155
  node: e.targetData.node,
@@ -5157,11 +5163,11 @@ function oi(e, n) {
5157
5163
  node: e.targetData.node
5158
5164
  });
5159
5165
  r.length === 0 && (r = [e.targetData.node]), t.dragstartClasses(e.targetData.node, r, t);
5160
- const o = li(e, r);
5166
+ const o = di(e, r);
5161
5167
  if (t.onDragstart) {
5162
5168
  const a = {
5163
5169
  parent: e.targetData.parent,
5164
- values: ze(
5170
+ values: Ve(
5165
5171
  e.targetData.parent.el,
5166
5172
  e.targetData.parent.data
5167
5173
  ),
@@ -5173,20 +5179,20 @@ function oi(e, n) {
5173
5179
  t.onDragstart(a);
5174
5180
  }
5175
5181
  }
5176
- function ai(e, n) {
5182
+ function li(e, n) {
5177
5183
  var d, l;
5178
5184
  if (Ee(e.e), n.pointerDown = {
5179
5185
  parent: e.targetData.parent,
5180
5186
  node: e.targetData.node,
5181
5187
  validated: !1
5182
- }, !Nt({
5188
+ }, !kt({
5183
5189
  x: e.e.clientX,
5184
5190
  y: e.e.clientY,
5185
5191
  node: e.targetData.node,
5186
5192
  config: e.targetData.parent.data.config
5187
5193
  }))
5188
5194
  return;
5189
- n.pointerDown.validated = !0, vi(e, n, e.targetData.node);
5195
+ n.pointerDown.validated = !0, xi(e, n, e.targetData.node);
5190
5196
  const t = e.targetData.parent.data;
5191
5197
  let r = [e.targetData.node];
5192
5198
  const o = e.e.ctrlKey || e.e.metaKey, a = e.e.shiftKey, s = e.targetData.node;
@@ -5235,7 +5241,7 @@ function ai(e, n) {
5235
5241
  }
5236
5242
  (l = (d = n.selectedState) == null ? void 0 : d.nodes) != null && l.length ? n.selectedState.nodes.findIndex(
5237
5243
  (u) => u.el === e.targetData.node.el
5238
- ) === -1 && (n.selectedState.parent.el !== e.targetData.parent.el ? Ae(n.selectedState.nodes, e.targetData.parent, n) : t.config.multiDrag && wt() ? r.push(...n.selectedState.nodes) : Ae(n.selectedState.nodes, e.targetData.parent, n), nn(
5244
+ ) === -1 && (n.selectedState.parent.el !== e.targetData.parent.el ? Ae(n.selectedState.nodes, e.targetData.parent, n) : t.config.multiDrag && Ct() ? r.push(...n.selectedState.nodes) : Ae(n.selectedState.nodes, e.targetData.parent, n), nn(
5239
5245
  e.targetData.parent,
5240
5246
  r,
5241
5247
  e.targetData.node,
@@ -5249,18 +5255,18 @@ function ai(e, n) {
5249
5255
  !0
5250
5256
  );
5251
5257
  }
5252
- function ii(e, n, t, r = !1) {
5253
- Le(
5258
+ function si(e, n, t, r = !1) {
5259
+ Oe(
5254
5260
  n.map((o) => o.el),
5255
5261
  r ? t.synthDraggingClass : t.draggingClass
5256
5262
  ), setTimeout(() => {
5257
5263
  De(
5258
5264
  n.map((o) => o.el),
5259
5265
  r ? t.synthDraggingClass : t.draggingClass
5260
- ), Le(
5266
+ ), Oe(
5261
5267
  n.map((o) => o.el),
5262
5268
  r ? t.synthDragPlaceholderClass : t.dragPlaceholderClass
5263
- ), Le(
5269
+ ), Oe(
5264
5270
  n.map((o) => o.el),
5265
5271
  r ? t.synthDropZoneClass : t.dropZoneClass
5266
5272
  ), De(
@@ -5269,10 +5275,10 @@ function ii(e, n, t, r = !1) {
5269
5275
  );
5270
5276
  });
5271
5277
  }
5272
- function li(e, n) {
5278
+ function di(e, n) {
5273
5279
  Ee(e.e);
5274
- const t = Ct(
5275
- Dt(
5280
+ const t = Dt(
5281
+ St(
5276
5282
  e.targetData.node,
5277
5283
  e.targetData.parent,
5278
5284
  e.e,
@@ -5324,7 +5330,7 @@ function li(e, n) {
5324
5330
  }
5325
5331
  return t;
5326
5332
  }
5327
- function Nt({
5333
+ function kt({
5328
5334
  x: e,
5329
5335
  y: n,
5330
5336
  node: t,
@@ -5340,22 +5346,22 @@ function Nt({
5340
5346
  if (a === s || s.contains(a)) return !0;
5341
5347
  return !1;
5342
5348
  }
5343
- function si(e) {
5349
+ function ci(e) {
5344
5350
  }
5345
- function di(e) {
5346
- e.detail.targetData.parent.el === e.detail.state.currentParent.el ? At(e.detail, e.detail.state) : fn(e.detail, e.detail.state);
5351
+ function ui(e) {
5352
+ e.detail.targetData.parent.el === e.detail.state.currentParent.el ? $t(e.detail, e.detail.state) : fn(e.detail, e.detail.state);
5347
5353
  }
5348
- function ci(e, n) {
5354
+ function pi(e, n) {
5349
5355
  const t = e.targetData.parent.data.config;
5350
5356
  t.nativeDrag && (Ee(e.e), Se = !0, t.handleEnd(n));
5351
5357
  }
5352
- function ui(e) {
5358
+ function gi(e) {
5353
5359
  e.e.target !== e.e.currentTarget && v.pointerDown && (v.pointerDown.node.el.draggable = !1);
5354
5360
  }
5355
- function pi(e) {
5361
+ function hi(e) {
5356
5362
  e.e.target !== e.e.currentTarget && v.pointerDown && (v.pointerDown.node.el.draggable = !0);
5357
5363
  }
5358
- function gi(e, n) {
5364
+ function fi(e, n) {
5359
5365
  const t = e.targetData.parent.data.config;
5360
5366
  if (t.nativeDrag) {
5361
5367
  if (W(e.e), Ee(e.e), Se) {
@@ -5365,7 +5371,7 @@ function gi(e, n) {
5365
5371
  t.handleEnd(n);
5366
5372
  }
5367
5373
  }
5368
- function hi(e, n) {
5374
+ function mi(e, n) {
5369
5375
  var r;
5370
5376
  if (!oe(n)) return;
5371
5377
  if (W(e.e), Se) {
@@ -5375,32 +5381,32 @@ function hi(e, n) {
5375
5381
  const t = (r = Y.get(n.initialParent.el)) == null ? void 0 : r.config;
5376
5382
  t != null && t.onDragend && t.onDragend({
5377
5383
  parent: n.currentParent,
5378
- values: ze(n.currentParent.el, n.currentParent.data),
5384
+ values: Ve(n.currentParent.el, n.currentParent.data),
5379
5385
  draggedNode: n.draggedNode,
5380
5386
  draggedNodes: n.draggedNodes,
5381
5387
  state: n
5382
5388
  }), t == null || t.handleEnd(n);
5383
5389
  }
5384
- function fi(e) {
5390
+ function bi(e) {
5385
5391
  var u, c, g, h, f;
5386
5392
  e.draggedNode && (e.draggedNode.el.draggable = !0);
5387
5393
  const n = e.draggedNodes.map((x) => x.el), t = e.initialParent.data, r = oe(e), o = (u = Y.get(e.initialParent.el)) == null ? void 0 : u.config, a = r ? o == null ? void 0 : o.synthDropZoneClass : o == null ? void 0 : o.dropZoneClass, s = (c = t == null ? void 0 : t.config) == null ? void 0 : c.longPressClass, d = r ? (g = t == null ? void 0 : t.config) == null ? void 0 : g.synthDragPlaceholderClass : (h = t == null ? void 0 : t.config) == null ? void 0 : h.dragPlaceholderClass, l = e.originalZIndex;
5388
- oe(e) && (e.clonedDraggedNode && e.clonedDraggedNode.remove(), e.longPressTimeout && clearTimeout(e.longPressTimeout)), An(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(() => {
5394
+ oe(e) && (e.clonedDraggedNode && e.clonedDraggedNode.remove(), e.longPressTimeout && clearTimeout(e.longPressTimeout)), $n(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(() => {
5389
5395
  De(n, a), De(n, s), De(n, d);
5390
5396
  }), Ae(e.draggedNodes, e.currentParent, e), Ie(e.currentParent, void 0, e);
5391
5397
  const p = { ...e };
5392
5398
  (f = o == null ? void 0 : o.onDragend) == null || f.call(o, {
5393
5399
  parent: p.currentParent,
5394
- values: ze(
5400
+ values: Ve(
5395
5401
  p.currentParent.el,
5396
5402
  p.currentParent.data
5397
5403
  ),
5398
5404
  draggedNode: p.draggedNode,
5399
5405
  draggedNodes: p.draggedNodes,
5400
5406
  state: p
5401
- }), e.emit("dragEnded", p), Ma();
5407
+ }), e.emit("dragEnded", p), za();
5402
5408
  }
5403
- function mi(e, n) {
5409
+ function vi(e, n) {
5404
5410
  Ee(e.e), !n.pointerSelection && n.selectedState && Ae(n.selectedState.nodes, e.targetData.parent, n);
5405
5411
  const t = e.targetData.parent.data.config;
5406
5412
  n.pointerSelection = !1, "longPressTimeout" in n && n.longPressTimeout && clearTimeout(n.longPressTimeout), n.longPress = !1, De(
@@ -5408,7 +5414,7 @@ function mi(e, n) {
5408
5414
  t.longPressClass
5409
5415
  ), X(n) && t.handleEnd(n);
5410
5416
  }
5411
- function bi(e, n, t, r, o, a) {
5417
+ function yi(e, n, t, r, o, a) {
5412
5418
  var f, x;
5413
5419
  const s = n.data.config;
5414
5420
  let d, l;
@@ -5479,8 +5485,8 @@ function bi(e, n, t, r, o, a) {
5479
5485
  rootScrollWidth: (f = document.scrollingElement) == null ? void 0 : f.scrollWidth,
5480
5486
  rootScrollHeight: (x = document.scrollingElement) == null ? void 0 : x.scrollHeight
5481
5487
  };
5482
- return Ct({
5483
- ...Dt(
5488
+ return Dt({
5489
+ ...St(
5484
5490
  e,
5485
5491
  n,
5486
5492
  t,
@@ -5491,16 +5497,16 @@ function bi(e, n, t, r, o, a) {
5491
5497
  ...g
5492
5498
  });
5493
5499
  }
5494
- function vi(e, n, t) {
5500
+ function xi(e, n, t) {
5495
5501
  const r = e.targetData.parent.data.config;
5496
5502
  n.longPressTimeout = setTimeout(() => {
5497
- n && (n.longPress = !0, r.longPressClass && e.e.cancelable && Le([t.el], r.longPressClass), W(e.e));
5503
+ n && (n.longPress = !0, r.longPressClass && e.e.cancelable && Oe([t.el], r.longPressClass), W(e.e));
5498
5504
  }, r.longPressDuration || 1e3);
5499
5505
  }
5500
- function An(e, n = !0, t = !0) {
5506
+ function $n(e, n = !0, t = !0) {
5501
5507
  n && (e.frameIdX !== void 0 && (cancelAnimationFrame(e.frameIdX), e.frameIdX = void 0), e.lastScrollDirectionX = void 0), t && (e.frameIdY !== void 0 && (cancelAnimationFrame(e.frameIdY), e.frameIdY = void 0), e.lastScrollDirectionY = void 0), !e.frameIdX && !e.frameIdY && (e.preventEnter = !1);
5502
5508
  }
5503
- function kt(e, n = !1) {
5509
+ function At(e, n = !1) {
5504
5510
  var u;
5505
5511
  const { x: t, y: r } = e.coordinates, o = e.startLeft ?? 0, a = e.startTop ?? 0, s = window.scrollX ?? 0, d = window.scrollY ?? 0, l = t - o + s, p = r - a + d;
5506
5512
  e.clonedDraggedNode.style.transform = `translate3d(${l}px, ${p}px, 0px)`, n && (e.clonedDraggedNode.style.opacity = "1", De(
@@ -5508,12 +5514,12 @@ function kt(e, n = !1) {
5508
5514
  (u = e.initialParent.data.config) == null ? void 0 : u.longPressClass
5509
5515
  ));
5510
5516
  }
5511
- function Kn(e, n, t = !1) {
5512
- const r = _e(e);
5513
- n.coordinates.x = r.x, n.coordinates.y = r.y, kt(n, t), n.scrollDebounceTimeout && (clearTimeout(n.scrollDebounceTimeout), n.scrollDebounceTimeout = void 0), n.scrollDebounceTimeout = setTimeout(() => {
5517
+ function Jn(e, n, t = !1) {
5518
+ const r = Ue(e);
5519
+ n.coordinates.x = r.x, n.coordinates.y = r.y, At(n, t), n.scrollDebounceTimeout && (clearTimeout(n.scrollDebounceTimeout), n.scrollDebounceTimeout = void 0), n.scrollDebounceTimeout = setTimeout(() => {
5514
5520
  oe(n) && mn(n.coordinates, e, n);
5515
5521
  }, 16);
5516
- const o = ki(r);
5522
+ const o = $i(r);
5517
5523
  if (!o) {
5518
5524
  document.dispatchEvent(
5519
5525
  new CustomEvent("handleRootPointerover", {
@@ -5540,22 +5546,22 @@ function Kn(e, n, t = !1) {
5540
5546
  })
5541
5547
  );
5542
5548
  }
5543
- function yi(e, n) {
5549
+ function Ti(e, n) {
5544
5550
  var a;
5545
5551
  if (!e.targetData.parent.data.config.nativeDrag) return;
5546
- const { x: r, y: o } = _e(e.e);
5547
- n.coordinates.y = o, n.coordinates.x = r, W(e.e), Ee(e.e), X(n) && mn({ x: r, y: o }, e.e, n), e.targetData.parent.el === ((a = n.currentParent) == null ? void 0 : a.el) ? At(e, n) : fn(e, n);
5552
+ const { x: r, y: o } = Ue(e.e);
5553
+ n.coordinates.y = o, n.coordinates.x = r, W(e.e), Ee(e.e), X(n) && mn({ x: r, y: o }, e.e, n), e.targetData.parent.el === ((a = n.currentParent) == null ? void 0 : a.el) ? $t(e, n) : fn(e, n);
5548
5554
  }
5549
- function xi(e, n) {
5555
+ function wi(e, n) {
5550
5556
  if (!e.targetData.parent.data.config.nativeDrag) return;
5551
5557
  W(e.e), Ee(e.e);
5552
- const { x: r, y: o } = _e(e.e);
5558
+ const { x: r, y: o } = Ue(e.e);
5553
5559
  X(n) && mn({ x: r, y: o }, e.e, n), fn(e, n);
5554
5560
  }
5555
- function Ti(e) {
5561
+ function Ci(e) {
5556
5562
  e.detail.targetData.parent.el !== e.detail.state.currentParent.el && fn(e.detail, e.detail.state);
5557
5563
  }
5558
- function wi({
5564
+ function Di({
5559
5565
  currentParent: e,
5560
5566
  targetParent: n,
5561
5567
  initialParent: t,
@@ -5573,13 +5579,13 @@ function wi({
5573
5579
  o
5574
5580
  ) : !(!a.group || a.group !== s.group);
5575
5581
  }
5576
- function Ci(e, n) {
5582
+ function Si(e, n) {
5577
5583
  W(e.e);
5578
5584
  }
5579
- function Di(e, n) {
5585
+ function Ei(e, n) {
5580
5586
  W(e.e);
5581
5587
  }
5582
- function Si(e, n, t, r) {
5588
+ function Ni(e, n, t, r) {
5583
5589
  var u;
5584
5590
  if (n.affectedNodes.map((c) => c.data.value).includes(e.targetData.node.data.value))
5585
5591
  return !1;
@@ -5613,9 +5619,9 @@ function Si(e, n, t, r) {
5613
5619
  }
5614
5620
  return !1;
5615
5621
  }
5616
- function At(e, n) {
5617
- const { x: t, y: r } = _e(e.e);
5618
- if (!Si(e, n, t, r))
5622
+ function $t(e, n) {
5623
+ const { x: t, y: r } = Ue(e.e);
5624
+ if (!Ni(e, n, t, r))
5619
5625
  return;
5620
5626
  const o = n.draggedNode.data.index > e.targetData.node.data.index ? [e.targetData.node.data.index, n.draggedNode.data.index] : [n.draggedNode.data.index, e.targetData.node.data.index];
5621
5627
  n.targetIndex = e.targetData.node.data.index, n.affectedNodes = e.targetData.parent.data.enabledNodes.filter(
@@ -5656,7 +5662,7 @@ function J(e) {
5656
5662
  };
5657
5663
  }
5658
5664
  function fn(e, n) {
5659
- W(e.e), wi({
5665
+ W(e.e), Di({
5660
5666
  currentParent: n.currentParent,
5661
5667
  targetParent: e.targetData.parent,
5662
5668
  initialParent: n.initialParent,
@@ -5695,18 +5701,18 @@ function tn(e) {
5695
5701
  );
5696
5702
  };
5697
5703
  }
5698
- function Le(e, n, t = !1) {
5704
+ function Oe(e, n, t = !1) {
5699
5705
  function r(o, a) {
5700
5706
  he.set(o, a);
5701
5707
  }
5702
5708
  for (const o of e) {
5703
- const a = he.get(o), s = Ei(o, n, a, t);
5709
+ const a = he.get(o), s = ki(o, n, a, t);
5704
5710
  s && r(o, s);
5705
5711
  }
5706
5712
  }
5707
- function Ei(e, n, t, r = !1) {
5713
+ function ki(e, n, t, r = !1) {
5708
5714
  if (!n) return;
5709
- const o = Tt(n);
5715
+ const o = wt(n);
5710
5716
  if (!o.length) return;
5711
5717
  if (!t) {
5712
5718
  e.classList.add(...o);
@@ -5723,7 +5729,7 @@ function Ei(e, n, t, r = !1) {
5723
5729
  }
5724
5730
  function De(e, n) {
5725
5731
  if (!n) return;
5726
- const t = Tt(n);
5732
+ const t = wt(n);
5727
5733
  if (t.length)
5728
5734
  for (const r of e) {
5729
5735
  if (!bn(r)) {
@@ -5736,7 +5742,7 @@ function De(e, n) {
5736
5742
  o.privateClasses.includes(a) || r.classList.remove(a);
5737
5743
  }
5738
5744
  }
5739
- function Jn(e, n, t, r, o) {
5745
+ function et(e, n, t, r, o) {
5740
5746
  const s = o.axis === "x", d = e === document.scrollingElement, l = s ? "scrollLeft" : "scrollTop", p = s ? "clientWidth" : "clientHeight", u = s ? "offsetWidth" : "offsetHeight", c = s ? "scrollWidth" : "scrollHeight", g = s ? n.clientX : n.clientY, h = s ? r.left : r.top, f = s ? t.overflowX : t.overflowY;
5741
5747
  if (d) {
5742
5748
  const x = e[l], b = e[p], D = x > 0, T = x + b < (s ? o.state.rootScrollWidth || 0 : e[c]);
@@ -5760,7 +5766,7 @@ function Jn(e, n, t, r, o) {
5760
5766
  }
5761
5767
  return s ? { left: !1, right: !1 } : { up: !1, down: !1 };
5762
5768
  }
5763
- function Ni(e, n, t, r) {
5769
+ function Ai(e, n, t, r) {
5764
5770
  if (!X(t) || !t.draggedNode)
5765
5771
  return;
5766
5772
  t.preventEnter = !0;
@@ -5776,30 +5782,30 @@ function Ni(e, n, t, r) {
5776
5782
  t[l] = void 0, t[d] = void 0;
5777
5783
  return;
5778
5784
  }
5779
- e[u] += s * a, oe(t) && kt(t), t[l] = requestAnimationFrame(p);
5785
+ e[u] += s * a, oe(t) && At(t), t[l] = requestAnimationFrame(p);
5780
5786
  };
5781
5787
  t[l] = requestAnimationFrame(p);
5782
5788
  }
5783
- function et(e, n, t) {
5789
+ function nt(e, n, t) {
5784
5790
  const r = e.getBoundingClientRect();
5785
5791
  return n >= r.left && n <= r.right && t >= r.top && t <= r.bottom;
5786
5792
  }
5787
5793
  function mn(e, n, t) {
5788
5794
  if (!X(t) || !t.draggedNode)
5789
5795
  return;
5790
- An(t);
5796
+ $n(t);
5791
5797
  const { x: r, y: o } = e;
5792
5798
  let a = !1;
5793
5799
  const s = (l, p, u) => {
5794
- Ni(u, n, t, { axis: l, direction: p }), a = !0;
5800
+ Ai(u, n, t, { axis: l, direction: p }), a = !0;
5795
5801
  }, d = (l) => {
5796
- const p = window.getComputedStyle(l), u = l.getBoundingClientRect(), c = Jn(l, n, p, u, {
5802
+ const p = window.getComputedStyle(l), u = l.getBoundingClientRect(), c = et(l, n, p, u, {
5797
5803
  axis: "x",
5798
5804
  state: t
5799
- }), g = Jn(l, n, p, u, { axis: "y" });
5805
+ }), g = et(l, n, p, u, { axis: "y" });
5800
5806
  (c.left || c.right) && (t.lastScrollContainerX = l, s("x", c.right ? "positive" : "negative", l)), (g.up || g.down) && (t.lastScrollContainerY = l, s("y", g.down ? "positive" : "negative", l));
5801
5807
  };
5802
- if (t.lastScrollContainerX && et(t.lastScrollContainerX, r, o) && d(t.lastScrollContainerX), !a && t.lastScrollContainerY && et(t.lastScrollContainerY, r, o) && d(t.lastScrollContainerY), !a) {
5808
+ if (t.lastScrollContainerX && nt(t.lastScrollContainerX, r, o) && d(t.lastScrollContainerX), !a && t.lastScrollContainerY && nt(t.lastScrollContainerY, r, o) && d(t.lastScrollContainerY), !a) {
5803
5809
  let l = document.elementFromPoint(r, o);
5804
5810
  for (; l && !(a && t.lastScrollContainerX && t.lastScrollContainerY); )
5805
5811
  l instanceof HTMLElement && d(l), l = l.parentElement;
@@ -5808,9 +5814,9 @@ function mn(e, n, t) {
5808
5814
  const l = document.scrollingElement;
5809
5815
  l instanceof HTMLElement && d(l);
5810
5816
  }
5811
- a || An(t);
5817
+ a || $n(t);
5812
5818
  }
5813
- function ki(e) {
5819
+ function $i(e) {
5814
5820
  let n = document.elementFromPoint(e.x, e.y);
5815
5821
  if (!bn(n)) return;
5816
5822
  let t, r = !0;
@@ -5860,48 +5866,48 @@ function ln(e, n) {
5860
5866
  }
5861
5867
  return t;
5862
5868
  }
5863
- function Ai(e) {
5869
+ function Ii(e) {
5864
5870
  if (e instanceof HTMLElement) return e;
5865
5871
  if ("current" in e && e.current instanceof HTMLElement)
5866
5872
  return e.current;
5867
5873
  console.warn("Invalid parent element", e);
5868
5874
  }
5869
- function $i(e, n) {
5870
- const t = Ai(e);
5875
+ function Fi(e, n) {
5876
+ const t = Ii(e);
5871
5877
  t && n(t);
5872
5878
  }
5873
5879
  var sn = /* @__PURE__ */ new WeakMap();
5874
- function Ii(e) {
5880
+ function Ri(e) {
5875
5881
  const n = sn.get(e);
5876
5882
  return n ? n[0] : (console.warn("No values found for parent element"), []);
5877
5883
  }
5878
- function Fi(e, n) {
5884
+ function Li(e, n) {
5879
5885
  const t = sn.get(n);
5880
5886
  t && t[1](e), sn.set(n, [e, t[1]]);
5881
5887
  }
5882
- function Ri(e, n) {
5888
+ function Oi(e, n) {
5883
5889
  return (t) => {
5884
- sn.set(t, n), Ha({ parent: t, getValues: Ii, setValues: Fi, config: e });
5890
+ sn.set(t, n), qa({ parent: t, getValues: Ri, setValues: Li, config: e });
5885
5891
  };
5886
5892
  }
5887
- function nt(e) {
5888
- Pn && (Array.isArray(e) || (e = [e]), e.forEach((n) => {
5893
+ function tt(e) {
5894
+ zn && (Array.isArray(e) || (e = [e]), e.forEach((n) => {
5889
5895
  const { parent: t, state: r, ...o } = n;
5890
- $i(t, Ri(o, r));
5896
+ Fi(t, Oi(o, r));
5891
5897
  }));
5892
5898
  }
5893
- function Li(e, n = {}) {
5894
- const t = Re(null), [r, o] = H(e);
5899
+ function Mi(e, n = {}) {
5900
+ const t = Le(null), [r, o] = H(e);
5895
5901
  function a(s = {}) {
5896
- nt({ parent: t, state: [r, o], ...s });
5902
+ tt({ parent: t, state: [r, o], ...s });
5897
5903
  }
5898
5904
  return $e(() => {
5899
- nt({ parent: t, state: [r, o], ...n });
5905
+ tt({ parent: t, state: [r, o], ...n });
5900
5906
  }, [r]), $e(() => () => {
5901
- t.current && St(t.current);
5907
+ t.current && Et(t.current);
5902
5908
  }, []), [t, r, o, a];
5903
5909
  }
5904
- const tt = {
5910
+ const rt = {
5905
5911
  border: {
5906
5912
  selected: {
5907
5913
  color: E.palette.blue.B400
@@ -5910,7 +5916,7 @@ const tt = {
5910
5916
  color: E.palette.neutral.N40
5911
5917
  }
5912
5918
  }
5913
- }, Oi = C.ul`
5919
+ }, Pi = C.ul`
5914
5920
  list-style: none;
5915
5921
  padding: 0;
5916
5922
  margin: 0;
@@ -5919,15 +5925,15 @@ const tt = {
5919
5925
  gap: 12px;
5920
5926
  width: 100%;
5921
5927
  justify-content: ${({ $isEmpty: e }) => e ? "center" : "flex-start"};
5922
- `, Mi = C.li`
5928
+ `, zi = C.li`
5923
5929
  & > div {
5924
5930
  border: 1px solid
5925
5931
  ${({ theme: e, $active: n }) => {
5926
5932
  var t, r, o, a;
5927
- return n ? ((r = (t = e == null ? void 0 : e.border) == null ? void 0 : t.selected) == null ? void 0 : r.color) || tt.border.selected.color : ((a = (o = e == null ? void 0 : e.border) == null ? void 0 : o.clear) == null ? void 0 : a.color) || tt.border.clear.color;
5933
+ return n ? ((r = (t = e == null ? void 0 : e.border) == null ? void 0 : t.selected) == null ? void 0 : r.color) || rt.border.selected.color : ((a = (o = e == null ? void 0 : e.border) == null ? void 0 : o.clear) == null ? void 0 : a.color) || rt.border.clear.color;
5928
5934
  }};
5929
5935
  }
5930
- `, wn = "dnd:draggingLabel", rt = (e) => {
5936
+ `, wn = "dnd:draggingLabel", ot = (e) => {
5931
5937
  const {
5932
5938
  emptyMessage: n,
5933
5939
  id: t,
@@ -5937,7 +5943,7 @@ const tt = {
5937
5943
  highlightFirst: s,
5938
5944
  onMove: d,
5939
5945
  locked: l = !1
5940
- } = e, p = P.useRef(null), u = l ? [p, a] : Li(a, { group: r }), [c, g] = u, [h, f] = P.useState(
5946
+ } = e, p = P.useRef(null), u = l ? [p, a] : Mi(a, { group: r }), [c, g] = u, [h, f] = P.useState(
5941
5947
  null
5942
5948
  ), x = P.useRef(a);
5943
5949
  P.useEffect(() => {
@@ -5953,9 +5959,9 @@ const tt = {
5953
5959
  new CustomEvent(wn, { detail: N })
5954
5960
  );
5955
5961
  }, [l]), D = (N) => {
5956
- var $;
5962
+ var I;
5957
5963
  if (l) return;
5958
- const w = N.target, R = ($ = w == null ? void 0 : w.closest) == null ? void 0 : $.call(w, "li.dnd-item"), O = (R == null ? void 0 : R.getAttribute("data-label")) || null;
5964
+ const w = N.target, R = (I = w == null ? void 0 : w.closest) == null ? void 0 : I.call(w, "li.dnd-item"), O = (R == null ? void 0 : R.getAttribute("data-label")) || null;
5959
5965
  O && (f(O), b(O));
5960
5966
  }, T = P.useCallback(() => {
5961
5967
  l || (f(null), b(null));
@@ -5980,14 +5986,14 @@ const tt = {
5980
5986
  }, [g, t, d, l]);
5981
5987
  const S = g.length === 0;
5982
5988
  return /* @__PURE__ */ i(
5983
- Ue,
5989
+ He,
5984
5990
  {
5985
5991
  legend: o,
5986
5992
  width: "100%",
5987
5993
  height: "-webkit-fill-available",
5988
5994
  spacing: "wide",
5989
5995
  children: /* @__PURE__ */ i(
5990
- Oi,
5996
+ Pi,
5991
5997
  {
5992
5998
  ref: c,
5993
5999
  onPointerDownCapture: l ? void 0 : D,
@@ -6005,19 +6011,19 @@ const tt = {
6005
6011
  width: "100%",
6006
6012
  alignItems: "center",
6007
6013
  justifyContent: "center",
6008
- children: /* @__PURE__ */ i(F, { type: "label", size: "medium", appearance: "gray", padding: "12px", children: n || "No hay elementos en esta lista" })
6014
+ children: /* @__PURE__ */ i($, { type: "label", size: "medium", appearance: "gray", padding: "12px", children: n || "No hay elementos en esta lista" })
6009
6015
  }
6010
6016
  ) : g.map((N, w) => {
6011
6017
  const R = !l && h === N;
6012
6018
  return /* @__PURE__ */ i(
6013
- Mi,
6019
+ zi,
6014
6020
  {
6015
6021
  className: `dnd-item${R ? " is-dragging" : ""}`,
6016
6022
  "data-label": N,
6017
6023
  "data-first": !!(s && w === 0) || void 0,
6018
6024
  $active: R,
6019
6025
  children: /* @__PURE__ */ i(ie, { border: !0, borderRadius: "8px", width: "100%", children: /* @__PURE__ */ i(
6020
- F,
6026
+ $,
6021
6027
  {
6022
6028
  type: "title",
6023
6029
  appearance: R ? "primary" : "dark",
@@ -6035,7 +6041,7 @@ const tt = {
6035
6041
  )
6036
6042
  }
6037
6043
  );
6038
- }, $l = (e) => {
6044
+ }, Fl = (e) => {
6039
6045
  const { group: n = "clients", left: t, right: r, onMove: o, locked: a = !1 } = e, s = (d) => {
6040
6046
  a || o == null || o(d);
6041
6047
  };
@@ -6048,7 +6054,7 @@ const tt = {
6048
6054
  gap: "40px",
6049
6055
  children: [
6050
6056
  /* @__PURE__ */ i(
6051
- rt,
6057
+ ot,
6052
6058
  {
6053
6059
  group: n,
6054
6060
  highlightFirst: t.highlightFirst,
@@ -6061,7 +6067,7 @@ const tt = {
6061
6067
  }
6062
6068
  ),
6063
6069
  /* @__PURE__ */ i(
6064
- rt,
6070
+ ot,
6065
6071
  {
6066
6072
  group: n,
6067
6073
  highlightFirst: r.highlightFirst,
@@ -6076,7 +6082,7 @@ const tt = {
6076
6082
  ]
6077
6083
  }
6078
6084
  );
6079
- }, Pi = C.div`
6085
+ }, Vi = C.div`
6080
6086
  & > button {
6081
6087
  height: 66px;
6082
6088
  min-width: 66px;
@@ -6094,7 +6100,7 @@ const tt = {
6094
6100
  }
6095
6101
  }
6096
6102
  }
6097
- `, Il = (e) => /* @__PURE__ */ i(Pi, { children: /* @__PURE__ */ i(q, { ...e }) }), zi = C.div`
6103
+ `, Rl = (e) => /* @__PURE__ */ i(Vi, { children: /* @__PURE__ */ i(q, { ...e }) }), _i = C.div`
6098
6104
  display: flex;
6099
6105
  justify-content: space-between;
6100
6106
  align-items: center;
@@ -6123,14 +6129,14 @@ const tt = {
6123
6129
  }
6124
6130
  }
6125
6131
  }
6126
- `, Fl = (e) => {
6132
+ `, Ll = (e) => {
6127
6133
  const { handleBack: n, handleNext: t, disabledBack: r, disabledNext: o, textValues: a } = e;
6128
- return /* @__PURE__ */ m(zi, { children: [
6134
+ return /* @__PURE__ */ m(_i, { children: [
6129
6135
  /* @__PURE__ */ i(
6130
6136
  q,
6131
6137
  {
6132
6138
  ...e,
6133
- iconBefore: /* @__PURE__ */ i(jt, {}),
6139
+ iconBefore: /* @__PURE__ */ i(Ht, {}),
6134
6140
  variant: "none",
6135
6141
  onClick: n,
6136
6142
  children: a.back,
@@ -6141,7 +6147,7 @@ const tt = {
6141
6147
  q,
6142
6148
  {
6143
6149
  ...e,
6144
- iconBefore: /* @__PURE__ */ i(Ut, {}),
6150
+ iconBefore: /* @__PURE__ */ i(Bt, {}),
6145
6151
  variant: "none",
6146
6152
  onClick: t,
6147
6153
  children: a.next,
@@ -6187,7 +6193,7 @@ const tt = {
6187
6193
  hover: E.palette.neutral.N30
6188
6194
  }
6189
6195
  }
6190
- }, Vi = C.ul`
6196
+ }, Ui = C.ul`
6191
6197
  display: flex;
6192
6198
  flex-direction: column;
6193
6199
  padding: 4px 0px;
@@ -6238,7 +6244,7 @@ const tt = {
6238
6244
  return ((r = (t = (n = e == null ? void 0 : e.input) == null ? void 0 : n.option) == null ? void 0 : t.background) == null ? void 0 : r.hover) || ge.option.background.hover;
6239
6245
  }};
6240
6246
  }
6241
- `, _i = (e) => {
6247
+ `, ji = (e) => {
6242
6248
  const { children: n, onOptionClick: t, options: r, maxItems: o } = e, a = (s) => {
6243
6249
  try {
6244
6250
  if (s.target.closest('input[type="checkbox"]'))
@@ -6255,7 +6261,7 @@ const tt = {
6255
6261
  }
6256
6262
  };
6257
6263
  return /* @__PURE__ */ i(
6258
- Vi,
6264
+ Ui,
6259
6265
  {
6260
6266
  $maxItems: o,
6261
6267
  $totalOptions: r == null ? void 0 : r.length,
@@ -6263,17 +6269,17 @@ const tt = {
6263
6269
  children: n
6264
6270
  }
6265
6271
  );
6266
- }, ji = C.div`
6272
+ }, Hi = C.div`
6267
6273
  cursor: ${({ $disabled: e }) => e && "not-allowed"};
6268
6274
  width: ${({ $fullwidth: e }) => e ? "100%" : "fit-content"};
6269
6275
  position: relative;
6270
- `, Ui = C.div`
6276
+ `, Bi = C.div`
6271
6277
  display: flex;
6272
6278
  align-items: center;
6273
6279
  margin-bottom: 4px;
6274
6280
  gap: 4px;
6275
6281
  pointer-events: ${({ $disabled: e }) => e && "none"};
6276
- `, Hi = C.div`
6282
+ `, qi = C.div`
6277
6283
  display: grid;
6278
6284
  height: ${({ $size: e }) => e === "compact" ? "40px" : "48px"};
6279
6285
  padding: 8px 16px;
@@ -6297,7 +6303,7 @@ const tt = {
6297
6303
  const o = ((s = (a = r == null ? void 0 : r.input) == null ? void 0 : a.border) == null ? void 0 : s.color) || ge.border.color;
6298
6304
  return e ? o.disabled : n ? o.invalid : t ? o.focus : o.regular;
6299
6305
  }};
6300
- `, Bi = C.input`
6306
+ `, Gi = C.input`
6301
6307
  display: ${({ $inputWithData: e }) => e ? "none" : "block"};
6302
6308
  outline: none;
6303
6309
  padding: 0;
@@ -6355,31 +6361,31 @@ const tt = {
6355
6361
  &:-webkit-autofill {
6356
6362
  -webkit-background-clip: text;
6357
6363
  }
6358
- `, qi = C.div`
6364
+ `, Yi = C.div`
6359
6365
  display: flex;
6360
6366
  justify-content: flex-end;
6361
6367
  transition: ease;
6362
6368
  transition-duration: 500ms;
6363
6369
  transform: ${({ $displayList: e }) => e ? "rotate(-90deg)" : "rotate(90deg)"};
6364
- `, Gi = (e) => e === "compact" ? "medium" : "large";
6365
- function ot(e, n) {
6370
+ `, Wi = (e) => e === "compact" ? "medium" : "large";
6371
+ function at(e, n) {
6366
6372
  const t = e.find((r) => r.value === n);
6367
6373
  return t ? t.label : n;
6368
6374
  }
6369
- const Yi = (e) => {
6375
+ const Xi = (e) => {
6370
6376
  var o, a;
6371
- const { message: n } = e, t = Ln(Fn), r = ((a = (o = t == null ? void 0 : t.input) == null ? void 0 : o.message) == null ? void 0 : a.appearance) || ge.message.appearance;
6377
+ const { message: n } = e, t = On(Rn), r = ((a = (o = t == null ? void 0 : t.input) == null ? void 0 : o.message) == null ? void 0 : a.appearance) || ge.message.appearance;
6372
6378
  return /* @__PURE__ */ m(y, { alignItems: "center", gap: "4px", margin: "4px 0 0 16px", children: [
6373
6379
  /* @__PURE__ */ i(
6374
- U,
6380
+ j,
6375
6381
  {
6376
6382
  appearance: r,
6377
- icon: /* @__PURE__ */ i(Bt, {}),
6383
+ icon: /* @__PURE__ */ i(Gt, {}),
6378
6384
  size: "14px"
6379
6385
  }
6380
6386
  ),
6381
6387
  /* @__PURE__ */ i(
6382
- F,
6388
+ $,
6383
6389
  {
6384
6390
  type: "body",
6385
6391
  size: "small",
@@ -6389,7 +6395,7 @@ const Yi = (e) => {
6389
6395
  }
6390
6396
  )
6391
6397
  ] });
6392
- }, Wi = Zt((e, n) => {
6398
+ }, Qi = Jt((e, n) => {
6393
6399
  var me, le;
6394
6400
  const {
6395
6401
  displayList: t,
@@ -6414,13 +6420,13 @@ const Yi = (e) => {
6414
6420
  clearable: w,
6415
6421
  onKeyUp: R,
6416
6422
  onBlur: O,
6417
- onChange: $,
6423
+ onChange: I,
6418
6424
  onClick: V,
6419
6425
  onFocus: Z,
6420
6426
  onOptionClick: be,
6421
6427
  onCheckboxChange: ve,
6422
6428
  handleClear: fe
6423
- } = e, ae = Ln(Fn), ye = ((le = (me = ae == null ? void 0 : ae.input) == null ? void 0 : me.required) == null ? void 0 : le.appearance) || ge.required.appearance, Ne = f && !r, ue = D || b === "" ? "" : ot(g, b), xe = ct(
6429
+ } = e, ae = On(Rn), ye = ((le = (me = ae == null ? void 0 : ae.input) == null ? void 0 : me.required) == null ? void 0 : le.appearance) || ge.required.appearance, Ne = f && !r, ue = D || b === "" ? "" : at(g, b), xe = ut(
6424
6430
  () => g.filter((_) => S.includes(_.id)),
6425
6431
  [g, S]
6426
6432
  ), Te = (_, A) => {
@@ -6428,32 +6434,32 @@ const Yi = (e) => {
6428
6434
  target: { checked: !1, value: A }
6429
6435
  });
6430
6436
  };
6431
- return /* @__PURE__ */ m(ji, { $fullwidth: a, $disabled: r, ref: n, children: [
6437
+ return /* @__PURE__ */ m(Hi, { $fullwidth: a, $disabled: r, ref: n, children: [
6432
6438
  l && /* @__PURE__ */ m(
6433
- Ui,
6439
+ Bi,
6434
6440
  {
6435
6441
  $alignItems: "center",
6436
6442
  $disabled: r,
6437
6443
  $wrap: "wrap",
6438
6444
  children: [
6439
6445
  /* @__PURE__ */ i(
6440
- Xt,
6446
+ Zt,
6441
6447
  {
6442
6448
  htmlFor: s,
6443
6449
  focused: o,
6444
6450
  invalid: d,
6445
6451
  margin: "0px 0px 0px 16px",
6446
- size: Gi(x),
6452
+ size: Wi(x),
6447
6453
  disabled: r,
6448
6454
  children: l
6449
6455
  }
6450
6456
  ),
6451
- Ne && /* @__PURE__ */ i(F, { appearance: ye, size: "small", type: "body", children: "(Requerido)" })
6457
+ Ne && /* @__PURE__ */ i($, { appearance: ye, size: "small", type: "body", children: "(Requerido)" })
6452
6458
  ]
6453
6459
  }
6454
6460
  ),
6455
6461
  /* @__PURE__ */ m(
6456
- Hi,
6462
+ qi,
6457
6463
  {
6458
6464
  $disabled: r,
6459
6465
  $focused: o,
@@ -6463,7 +6469,7 @@ const Yi = (e) => {
6463
6469
  $size: x,
6464
6470
  children: [
6465
6471
  /* @__PURE__ */ i(
6466
- Bi,
6472
+ Gi,
6467
6473
  {
6468
6474
  $inputWithData: !!b,
6469
6475
  autoComplete: "off",
@@ -6479,7 +6485,7 @@ const Yi = (e) => {
6479
6485
  readOnly: !N,
6480
6486
  onFocus: Z,
6481
6487
  onBlur: O,
6482
- onChange: (_) => $(c, _.target.value),
6488
+ onChange: (_) => I(c, _.target.value),
6483
6489
  onClick: N ? V : void 0,
6484
6490
  onKeyUp: R
6485
6491
  }
@@ -6506,7 +6512,7 @@ const Yi = (e) => {
6506
6512
  ke,
6507
6513
  {
6508
6514
  appearance: "gray",
6509
- label: ot(g, b),
6515
+ label: at(g, b),
6510
6516
  removable: !0,
6511
6517
  displayIcon: !1,
6512
6518
  onClose: (_) => {
@@ -6514,11 +6520,11 @@ const Yi = (e) => {
6514
6520
  }
6515
6521
  }
6516
6522
  )) }),
6517
- T && /* @__PURE__ */ i(qi, { $displayList: t, children: /* @__PURE__ */ i(
6518
- U,
6523
+ T && /* @__PURE__ */ i(Yi, { $displayList: t, children: /* @__PURE__ */ i(
6524
+ j,
6519
6525
  {
6520
6526
  appearance: "dark",
6521
- icon: /* @__PURE__ */ i(Ht, {}),
6527
+ icon: /* @__PURE__ */ i(qt, {}),
6522
6528
  spacing: "narrow",
6523
6529
  disabled: r
6524
6530
  }
@@ -6529,15 +6535,15 @@ const Yi = (e) => {
6529
6535
  ]
6530
6536
  }
6531
6537
  ),
6532
- d && /* @__PURE__ */ i(Yi, { message: u }),
6538
+ d && /* @__PURE__ */ i(Xi, { message: u }),
6533
6539
  t && !r && /* @__PURE__ */ i(
6534
- _i,
6540
+ ji,
6535
6541
  {
6536
6542
  maxItems: p,
6537
6543
  onOptionClick: be,
6538
6544
  options: g,
6539
6545
  children: g.map((_) => /* @__PURE__ */ i(
6540
- Qt,
6546
+ Kt,
6541
6547
  {
6542
6548
  id: _.id,
6543
6549
  label: _.label,
@@ -6550,7 +6556,7 @@ const Yi = (e) => {
6550
6556
  }
6551
6557
  )
6552
6558
  ] });
6553
- }), Xi = (e) => {
6559
+ }), Zi = (e) => {
6554
6560
  const {
6555
6561
  disabled: n = !1,
6556
6562
  fullwidth: t = !1,
@@ -6575,7 +6581,7 @@ const Yi = (e) => {
6575
6581
  showChevron: w = !0,
6576
6582
  editable: R = !1,
6577
6583
  clearable: O = !0
6578
- } = e, [$, V] = H(!1), [Z, be] = H(!1), [ve, fe] = H([]), ae = Re(null);
6584
+ } = e, [I, V] = H(!1), [Z, be] = H(!1), [ve, fe] = H([]), ae = Le(null);
6579
6585
  $e(() => {
6580
6586
  if (N) {
6581
6587
  const A = T ? T.split(",").map((M) => M.trim()) : [];
@@ -6587,7 +6593,7 @@ const Yi = (e) => {
6587
6593
  }
6588
6594
  function Ne(A) {
6589
6595
  if (!n) {
6590
- V(!$);
6596
+ V(!I);
6591
6597
  try {
6592
6598
  c && c(A);
6593
6599
  } catch (M) {
@@ -6595,7 +6601,7 @@ const Yi = (e) => {
6595
6601
  }
6596
6602
  }
6597
6603
  }
6598
- const ue = Kt((A) => {
6604
+ const ue = er((A) => {
6599
6605
  ae.current && A.target && !ae.current.contains(A.target) && V(!1);
6600
6606
  }, []);
6601
6607
  function xe(A) {
@@ -6614,7 +6620,7 @@ const Yi = (e) => {
6614
6620
  }
6615
6621
  }
6616
6622
  function me(A) {
6617
- A.key === "Escape" && V(!1), V(!$);
6623
+ A.key === "Escape" && V(!1), V(!I);
6618
6624
  try {
6619
6625
  h && h(A);
6620
6626
  } catch (M) {
@@ -6624,20 +6630,20 @@ const Yi = (e) => {
6624
6630
  function le(A) {
6625
6631
  const { value: M, checked: pe } = A.target;
6626
6632
  fe((L) => {
6627
- const I = pe ? [...L, M] : L.filter((j) => j !== M);
6628
- return u(l, I.join(",")), I;
6633
+ const F = pe ? [...L, M] : L.filter((U) => U !== M);
6634
+ return u(l, F.join(",")), F;
6629
6635
  });
6630
6636
  }
6631
6637
  $e(() => (document.addEventListener("click", ue), () => {
6632
6638
  document.removeEventListener("click", ue);
6633
6639
  }), [ue]);
6634
- const _ = ct(() => O || N ? f : [{ id: "empty-option", label: "", value: "" }, ...f], [f, O, N]);
6640
+ const _ = ut(() => O || N ? f : [{ id: "empty-option", label: "", value: "" }, ...f], [f, O, N]);
6635
6641
  return /* @__PURE__ */ i(
6636
- Wi,
6642
+ Qi,
6637
6643
  {
6638
6644
  ref: ae,
6639
6645
  disabled: n,
6640
- displayList: $ || S,
6646
+ displayList: I || S,
6641
6647
  focused: Z,
6642
6648
  fullwidth: t,
6643
6649
  id: r,
@@ -6666,7 +6672,7 @@ const Yi = (e) => {
6666
6672
  onCheckboxChange: le
6667
6673
  }
6668
6674
  );
6669
- }, Rl = (e) => {
6675
+ }, Ol = (e) => {
6670
6676
  const {
6671
6677
  disabled: n = !1,
6672
6678
  fullwidth: t = !1,
@@ -6684,7 +6690,7 @@ const Yi = (e) => {
6684
6690
  values: f
6685
6691
  } = e;
6686
6692
  return /* @__PURE__ */ i(
6687
- Xi,
6693
+ Zi,
6688
6694
  {
6689
6695
  disabled: n,
6690
6696
  fullwidth: t,
@@ -6703,31 +6709,31 @@ const Yi = (e) => {
6703
6709
  picker: !0
6704
6710
  }
6705
6711
  );
6706
- }, Ll = (e) => Object.values(e).flat(), Ol = (e, n) => {
6707
- const t = Pe(e);
6712
+ }, Ml = (e) => Object.values(e).flat(), Pl = (e, n) => {
6713
+ const t = ze(e);
6708
6714
  return Object.fromEntries(
6709
6715
  Object.entries(t).map(([r, o]) => [r, o.map(n)])
6710
6716
  );
6711
- }, Qi = (e) => Object.entries(e).map(([n, t]) => ({
6717
+ }, Ki = (e) => Object.entries(e).map(([n, t]) => ({
6712
6718
  ConditionGroupId: n,
6713
6719
  conditionsThatEstablishesTheDecision: on(t)
6714
- })), Ml = (e) => {
6715
- const n = Pe(e), t = {
6720
+ })), zl = (e) => {
6721
+ const n = ze(e), t = {
6716
6722
  ...e,
6717
- conditionGroups: Qi(n)
6723
+ conditionGroups: Ki(n)
6718
6724
  };
6719
6725
  return delete t.conditionsThatEstablishesTheDecision, t;
6720
- }, je = /* @__PURE__ */ new Map(), Zi = (e, n) => je.get(`${n}:${e}`), Ki = (e, n, t) => {
6726
+ }, je = /* @__PURE__ */ new Map(), Ji = (e, n) => je.get(`${n}:${e}`), el = (e, n, t) => {
6721
6727
  const r = `${n}:${e}`;
6722
6728
  if (je.set(r, t), je.size > 1e3) {
6723
6729
  const o = je.keys().next().value;
6724
6730
  o !== void 0 && je.delete(o);
6725
6731
  }
6726
- }, at = /* @__PURE__ */ new Map(), Ji = 1e3, el = (e) => {
6727
- const n = Date.now(), t = at.get(e) || 0;
6728
- return n - t < Ji ? !0 : (at.set(e, n), !1);
6729
- }, nl = (e) => {
6730
- const n = nr(e);
6732
+ }, it = /* @__PURE__ */ new Map(), nl = 1e3, tl = (e) => {
6733
+ const n = Date.now(), t = it.get(e) || 0;
6734
+ return n - t < nl ? !0 : (it.set(e, n), !1);
6735
+ }, rl = (e) => {
6736
+ const n = rr(e);
6731
6737
  return {
6732
6738
  spa: "es",
6733
6739
  eng: "en",
@@ -6736,14 +6742,14 @@ const Yi = (e) => {
6736
6742
  ita: "it",
6737
6743
  por: "pt"
6738
6744
  }[n] || "en";
6739
- }, tl = async (e, n, { url: t, apiKey: r }) => {
6740
- const o = `${n}:${e}`, a = Zi(e, n);
6745
+ }, ol = async (e, n, { url: t, apiKey: r }) => {
6746
+ const o = `${n}:${e}`, a = Ji(e, n);
6741
6747
  if (a) return a;
6742
- if (el(o))
6748
+ if (tl(o))
6743
6749
  return console.warn(`[Throttle] Skipped translation for: "${e}"`), e;
6744
- const s = nl(e);
6750
+ const s = rl(e);
6745
6751
  try {
6746
- const { data: d } = await er.post(
6752
+ const { data: d } = await tr.post(
6747
6753
  t,
6748
6754
  {
6749
6755
  q: e,
@@ -6757,25 +6763,25 @@ const Yi = (e) => {
6757
6763
  }
6758
6764
  }
6759
6765
  ), l = (d == null ? void 0 : d.translatedText) || e;
6760
- return Ki(e, n, l), l;
6766
+ return el(e, n, l), l;
6761
6767
  } catch (d) {
6762
6768
  return console.warn(`[Translation] Failed for: "${e}"`, d), e;
6763
6769
  }
6764
- }, rl = (e) => typeof e == "string" && e.trim().length > 0, it = async (e, n, t) => {
6770
+ }, al = (e) => typeof e == "string" && e.trim().length > 0, lt = async (e, n, t) => {
6765
6771
  const r = await Promise.all(
6766
6772
  Object.entries(e).map(async ([o, a]) => {
6767
- if (rl(a)) {
6768
- const s = await tl(a, n, t);
6773
+ if (al(a)) {
6774
+ const s = await ol(a, n, t);
6769
6775
  return [o, s];
6770
6776
  } else if (Array.isArray(a)) {
6771
6777
  const s = await Promise.all(
6772
6778
  a.map(
6773
- async (d) => typeof d == "object" && d !== null ? await it(d, n, t) : d
6779
+ async (d) => typeof d == "object" && d !== null ? await lt(d, n, t) : d
6774
6780
  )
6775
6781
  );
6776
6782
  return [o, s];
6777
6783
  } else if (typeof a == "object" && a !== null) {
6778
- const s = await it(a, n, t);
6784
+ const s = await lt(a, n, t);
6779
6785
  return [o, s];
6780
6786
  } else
6781
6787
  return [o, a];
@@ -6784,40 +6790,40 @@ const Yi = (e) => {
6784
6790
  return Object.fromEntries(r);
6785
6791
  };
6786
6792
  export {
6787
- Fl as BackAndNextButton,
6788
- Qe as BusinessRuleCard,
6789
- ht as BusinessRuleCardNew,
6790
- On as BusinessRuleView,
6791
- mt as BusinessRuleViewNew,
6792
- bl as BusinessRules,
6793
- yl as BusinessRulesNew,
6794
- vl as BusinessRulesWithGroup,
6795
- Rl as Checkpicker,
6796
- $l as DragAndDropBoxes,
6797
- rt as DraggableList,
6798
- Ia as DropdownMenu,
6799
- Al as DropdownMenuContainer,
6793
+ Ll as BackAndNextButton,
6794
+ Ze as BusinessRuleCard,
6795
+ ft as BusinessRuleCardNew,
6796
+ Mn as BusinessRuleView,
6797
+ bt as BusinessRuleViewNew,
6798
+ yl as BusinessRules,
6799
+ Tl as BusinessRulesNew,
6800
+ xl as BusinessRulesWithGroup,
6801
+ Ol as Checkpicker,
6802
+ Fl as DragAndDropBoxes,
6803
+ ot as DraggableList,
6804
+ Ra as DropdownMenu,
6805
+ Il as DropdownMenuContainer,
6800
6806
  se as EValueHowToSetUp,
6801
- xl as Filter,
6802
- Tl as FilterModal,
6803
- wl as FormFilter,
6804
- pt as ModalRules,
6805
- Da as RulesForm,
6806
- Il as SendButton,
6807
- qo as buildEsConditionSentence,
6808
- pa as convertRangeToString,
6809
- ft as filterByGroup,
6810
- Ll as flatFromGroups,
6811
- Cl as formatDecisionForBackend,
6812
- Pe as getConditionsByGroupNew,
6813
- Qi as groupsRecordToArrayNew,
6814
- Ol as mapByGroupNew,
6815
- Ml as normalizeDecisionToNewShape,
6816
- Dl as parseRangeFromString,
6817
- Sl as revertSortedDataSampleSwitchPlaces,
6818
- El as revertSortedDataSwitchPlaces,
6819
- Nl as sortDisplayDataSampleSwitchPlaces,
6820
- kl as sortDisplayDataSwitchPlaces,
6821
- it as translateObject,
6822
- tl as translateText
6807
+ wl as Filter,
6808
+ Cl as FilterModal,
6809
+ Dl as FormFilter,
6810
+ gt as ModalRules,
6811
+ Ea as RulesForm,
6812
+ Rl as SendButton,
6813
+ Yo as buildEsConditionSentence,
6814
+ ha as convertRangeToString,
6815
+ mt as filterByGroup,
6816
+ Ml as flatFromGroups,
6817
+ Sl as formatDecisionForBackend,
6818
+ ze as getConditionsByGroupNew,
6819
+ Ki as groupsRecordToArrayNew,
6820
+ Pl as mapByGroupNew,
6821
+ zl as normalizeDecisionToNewShape,
6822
+ El as parseRangeFromString,
6823
+ Nl as revertSortedDataSampleSwitchPlaces,
6824
+ kl as revertSortedDataSwitchPlaces,
6825
+ Al as sortDisplayDataSampleSwitchPlaces,
6826
+ $l as sortDisplayDataSwitchPlaces,
6827
+ lt as translateObject,
6828
+ ol as translateText
6823
6829
  };