@isettingkit/business-rules 1.0.28 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.es.js +665 -658
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { jsx as i, jsxs as b, Fragment as R } from "react/jsx-runtime";
2
- import { MdOutlineDelete as mn, MdClear as qe, MdAdd as Ce, MdOutlineCreate as zn, MdExpandLess as Hn, MdExpandMore as ze, MdClose as _n, MdOutlineFilterAltOff as bn, MdOutlineFilterAlt as vn, MdChevronRight as en, MdArrowRight as Un, MdOutlineArrowCircleLeft as jn, MdOutlineArrowCircleRight as Bn } from "react-icons/md";
3
- import { inube as C, Stack as x, Divider as q, Icon as O, Text as E, SkeletonLine as W, useMediaQuery as X, Blanket as Ye, Button as H, Grid as Ne, Box as qn, Tag as ce, SkeletonIcon as Yn, Toggle as Ee, Checkbox as xn, Date as xe, Fieldset as ve, Tabs as Xn, OptionList as Wn, Checkpicker as Gn } from "@inubekit/inubekit";
4
- import T, { keyframes as Dn, ThemeContext as Zn } from "styled-components";
5
- import { ValueDataType as U, ValueHowToSetUp as G, DecisionConditionRender as De } from "@isettingkit/input";
6
- import { DecisionViewConditionRenderer as Pe, DecisionViewConditionRendererNew as fe } from "@isettingkit/view";
2
+ import { MdOutlineDelete as mn, MdClear as Be, MdAdd as qe, MdOutlineCreate as zn, MdExpandLess as Hn, MdExpandMore as Ve, MdOutlineInfo as _n, MdClose as Un, MdOutlineFilterAltOff as bn, MdOutlineFilterAlt as vn, MdChevronRight as en, MdArrowRight as jn, MdOutlineArrowCircleLeft as Bn, MdOutlineArrowCircleRight as qn } from "react-icons/md";
3
+ import { inube as C, Stack as x, Divider as B, Icon as L, Text as N, SkeletonLine as W, useMediaQuery as X, Blanket as Ye, Button as j, Grid as Ce, Box as Yn, Tag as ce, SkeletonIcon as Xn, Toggle as Ne, Checkbox as xn, Date as xe, Fieldset as ue, Tabs as Wn, OptionList as Gn, Checkpicker as Zn } from "@inubekit/inubekit";
4
+ import T, { keyframes as Dn, ThemeContext as Qn } from "styled-components";
5
+ import { ValueDataType as _, ValueHowToSetUp as G, DecisionConditionRender as De } from "@isettingkit/input";
6
+ import { DecisionViewConditionRenderer as Fe, DecisionViewConditionRendererNew as me } from "@isettingkit/view";
7
7
  import { createPortal as Xe } from "react-dom";
8
- import z, { useState as P, useEffect as te, useRef as ue, useContext as Qn } from "react";
8
+ import z, { useState as P, useEffect as te, useRef as ge, useContext as Kn } from "react";
9
9
  import { useFormik as yn } from "formik";
10
- import { string as le, mixed as ke, object as Z, number as ae, lazy as ye, date as Te } from "yup";
11
- import { Link as Tn, useLocation as Kn } from "react-router-dom";
12
- import Jn from "axios";
13
- import { franc as et } from "franc-min";
14
- const nt = T.div`
10
+ import { string as le, mixed as Ee, object as Z, number as ae, lazy as ye, date as Te } from "yup";
11
+ import { Link as Tn, useLocation as Jn } from "react-router-dom";
12
+ import et from "axios";
13
+ import { franc as nt } from "franc-min";
14
+ const tt = T.div`
15
15
  border-radius: 8px;
16
16
  border: 1px solid
17
17
  ${({ theme: e }) => {
@@ -48,12 +48,12 @@ T.div`
48
48
  `;
49
49
  const We = (e) => {
50
50
  const { children: n, controls: t = !0, handleDelete: o, id: r } = e;
51
- return /* @__PURE__ */ i(nt, { children: /* @__PURE__ */ b(x, { direction: "column", gap: "16px", padding: "12px 16px", children: [
51
+ return /* @__PURE__ */ i(tt, { children: /* @__PURE__ */ b(x, { direction: "column", gap: "16px", padding: "12px 16px", children: [
52
52
  n,
53
53
  t && /* @__PURE__ */ b(R, { children: [
54
- /* @__PURE__ */ i(q, {}),
54
+ /* @__PURE__ */ i(B, {}),
55
55
  /* @__PURE__ */ i(x, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ i(
56
- O,
56
+ L,
57
57
  {
58
58
  cursorHover: !0,
59
59
  appearance: "danger",
@@ -66,20 +66,20 @@ const We = (e) => {
66
66
  ) })
67
67
  ] })
68
68
  ] }) });
69
- }, tt = (e) => e.value, ot = (e) => e.value, rt = (e) => e.value, at = (e) => ({
69
+ }, ot = (e) => e.value, rt = (e) => e.value, at = (e) => e.value, it = (e) => ({
70
70
  from: e.from ?? "",
71
71
  to: e.to ?? ""
72
- }), it = (e) => e.value, lt = (e) => e.value, dt = (e) => e.value;
72
+ }), lt = (e) => e.value, dt = (e) => e.value, st = (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 st = {
75
- [k.LIST_OF_VALUES]: ot,
76
- [k.LIST_OF_VALUES_MULTI]: rt,
77
- [k.RANGE]: at,
78
- [k.GREATER_THAN]: it,
79
- [k.LESS_THAN]: lt,
80
- [k.EQUAL]: dt
81
- }, ge = (e) => {
82
- const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), o = st[e == null ? void 0 : e.howToSetTheDecision] || tt;
74
+ const ct = {
75
+ [k.LIST_OF_VALUES]: rt,
76
+ [k.LIST_OF_VALUES_MULTI]: at,
77
+ [k.RANGE]: it,
78
+ [k.GREATER_THAN]: lt,
79
+ [k.LESS_THAN]: dt,
80
+ [k.EQUAL]: st
81
+ }, pe = (e) => {
82
+ const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), o = ct[e == null ? void 0 : e.howToSetTheDecision] || ot;
83
83
  return t && o(n) || n || void 0;
84
84
  }, nn = T.div`
85
85
  & > div {
@@ -108,7 +108,7 @@ const st = {
108
108
  background-color: #ebecf0;
109
109
  border-radius: 8px;
110
110
  }
111
- `, ct = (e) => {
111
+ `, ut = (e) => {
112
112
  const {
113
113
  conditionsAlignment: n,
114
114
  decision: t,
@@ -122,16 +122,16 @@ const st = {
122
122
  } = e;
123
123
  return a ? /* @__PURE__ */ b(x, { direction: "column", gap: "12px", children: [
124
124
  /* @__PURE__ */ i(x, { direction: "column", alignItems: "center", children: /* @__PURE__ */ i(
125
- Pe,
125
+ Fe,
126
126
  {
127
127
  element: r,
128
- valueData: ge(
128
+ valueData: pe(
129
129
  r
130
130
  ),
131
131
  type: "decision"
132
132
  }
133
133
  ) }, t.ruleName),
134
- /* @__PURE__ */ i(q, { dashed: !0 }),
134
+ /* @__PURE__ */ i(B, { dashed: !0 }),
135
135
  /* @__PURE__ */ i(tn, { children: /* @__PURE__ */ b(
136
136
  x,
137
137
  {
@@ -141,7 +141,7 @@ const st = {
141
141
  height: "203px",
142
142
  children: [
143
143
  d.length > 0 && /* @__PURE__ */ i(
144
- E,
144
+ N,
145
145
  {
146
146
  type: "label",
147
147
  size: "large",
@@ -152,17 +152,17 @@ const st = {
152
152
  }
153
153
  ),
154
154
  d.length > 0 && d.map((g) => /* @__PURE__ */ i(nn, { children: /* @__PURE__ */ i(x, { direction: "column", padding: "8px", children: /* @__PURE__ */ i(
155
- Pe,
155
+ Fe,
156
156
  {
157
157
  element: { ...g, value: g.value },
158
- valueData: ge(
158
+ valueData: pe(
159
159
  g
160
160
  )
161
161
  }
162
162
  ) }) }, g.conditionName)),
163
- d.length > 0 && /* @__PURE__ */ i(q, { dashed: !0 }),
163
+ d.length > 0 && /* @__PURE__ */ i(B, { dashed: !0 }),
164
164
  c && /* @__PURE__ */ i(R, { children: o && /* @__PURE__ */ i(
165
- Pe,
165
+ Fe,
166
166
  {
167
167
  element: o.element,
168
168
  valueData: o.valueData,
@@ -179,7 +179,7 @@ const st = {
179
179
  /* @__PURE__ */ i(W, { animated: !0, width: "85px" })
180
180
  ] }, "loading"),
181
181
  /* @__PURE__ */ b(x, { direction: "column", gap: "12px", alignItems: "center", children: [
182
- /* @__PURE__ */ i(q, { dashed: !0 }),
182
+ /* @__PURE__ */ i(B, { dashed: !0 }),
183
183
  /* @__PURE__ */ i(W, { animated: !0, width: "150px" })
184
184
  ] }),
185
185
  /* @__PURE__ */ i(tn, { children: /* @__PURE__ */ i(
@@ -212,40 +212,40 @@ const st = {
212
212
  labelName: o == null ? void 0 : o.terms,
213
213
  value: String(n.effectiveFrom),
214
214
  howToSetTheDecision: G.RANGE,
215
- decisionDataType: U.DATE
215
+ decisionDataType: _.DATE
216
216
  },
217
- valueData: ge({
217
+ valueData: pe({
218
218
  labelName: o == null ? void 0 : o.terms,
219
219
  value: {
220
220
  from: String(n.effectiveFrom),
221
221
  to: String(n.validUntil)
222
222
  },
223
223
  howToSetTheDecision: G.RANGE,
224
- decisionDataType: U.DATE
224
+ decisionDataType: _.DATE
225
225
  })
226
226
  } : r && !a ? {
227
227
  element: {
228
228
  labelName: o == null ? void 0 : o.terms,
229
229
  value: String(n.effectiveFrom),
230
230
  howToSetTheDecision: G.EQUAL,
231
- decisionDataType: U.DATE
231
+ decisionDataType: _.DATE
232
232
  },
233
- valueData: ge({
233
+ valueData: pe({
234
234
  labelName: o == null ? void 0 : o.terms,
235
235
  value: String(n.effectiveFrom),
236
236
  howToSetTheDecision: G.EQUAL,
237
- decisionDataType: U.DATE
237
+ decisionDataType: _.DATE
238
238
  })
239
239
  } : null, c = n ? {
240
240
  labelName: n.labelName || "",
241
241
  decisionDataType: n.decisionDataType || "alphabetical",
242
- value: ge(n),
242
+ value: pe(n),
243
243
  howToSetTheDecision: n.howToSetTheDecision || "EqualTo"
244
244
  } : null, l = ((p = n == null ? void 0 : n.conditionsThatEstablishesTheDecision) == null ? void 0 : p.filter(
245
245
  (f) => !f.hidden
246
246
  )) || [], d = Array.from({ length: 5 }), g = !!(!t && n && o && c), u = l.length < 2 ? "start" : "space-between";
247
247
  return /* @__PURE__ */ i(
248
- ct,
248
+ ut,
249
249
  {
250
250
  conditionsAlignment: u,
251
251
  decision: n,
@@ -258,12 +258,12 @@ const st = {
258
258
  visibleConditions: l
259
259
  }
260
260
  );
261
- }, ut = T.div`
261
+ }, gt = T.div`
262
262
  position: relative;
263
263
  & > div {
264
264
  padding: 24px 16px;
265
265
  }
266
- `, gt = T.div`
266
+ `, pt = T.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) || C.palette.neutral.N0;
@@ -294,7 +294,7 @@ const st = {
294
294
  background-color: #ebecf0;
295
295
  border-radius: 8px;
296
296
  }
297
- `, pt = (e) => {
297
+ `, ht = (e) => {
298
298
  const { children: n, portalId: t, onCloseModal: o, title: r } = e, a = document.getElementById(t);
299
299
  if (!a)
300
300
  throw new Error(
@@ -302,16 +302,16 @@ const st = {
302
302
  );
303
303
  const s = X("(max-width: 400px)");
304
304
  return Xe(
305
- /* @__PURE__ */ i(ut, { smallScreen: s, children: /* @__PURE__ */ i(Ye, { children: /* @__PURE__ */ i(gt, { children: /* @__PURE__ */ b(x, { direction: "column", gap: "24px", children: [
305
+ /* @__PURE__ */ i(gt, { smallScreen: s, children: /* @__PURE__ */ i(Ye, { children: /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ b(x, { direction: "column", gap: "24px", children: [
306
306
  /* @__PURE__ */ i(x, { direction: "column", gap: "24px", children: /* @__PURE__ */ b(x, { alignItems: "center", justifyContent: "space-between", children: [
307
- /* @__PURE__ */ i(E, { type: "title", size: "large", appearance: "dark", weight: "bold", children: r }),
308
- /* @__PURE__ */ i(qe, { size: "24px", cursor: "pointer", onClick: o })
307
+ /* @__PURE__ */ i(N, { type: "title", size: "large", appearance: "dark", weight: "bold", children: r }),
308
+ /* @__PURE__ */ i(Be, { size: "24px", cursor: "pointer", onClick: o })
309
309
  ] }) }),
310
310
  n
311
311
  ] }) }) }) }),
312
312
  a
313
313
  );
314
- }, ht = Dn`
314
+ }, ft = Dn`
315
315
  from {
316
316
  opacity: 0;
317
317
  transform: translateY(20px);
@@ -345,7 +345,7 @@ T.div`
345
345
  }};
346
346
  }
347
347
  `;
348
- const ft = T.div`
348
+ const mt = T.div`
349
349
  & > div {
350
350
  background-color: ${({ theme: e }) => {
351
351
  var n, t;
@@ -362,14 +362,14 @@ const ft = T.div`
362
362
  width: 100%;
363
363
  height: 100%;
364
364
  & > div {
365
- animation: ${ht} 600ms ease-out;
365
+ animation: ${ft} 600ms ease-out;
366
366
  }
367
- `, mt = T.div`
367
+ `, bt = T.div`
368
368
  & > div > div {
369
369
  border-radius: 8px;
370
370
  box-sizing: border-box;
371
371
  }
372
- `, bt = T.div`
372
+ `, vt = T.div`
373
373
  & > div {
374
374
  width: 100%;
375
375
  height: 100%;
@@ -389,7 +389,7 @@ const ft = T.div`
389
389
  border-radius: 8px;
390
390
  }
391
391
  }
392
- `, vt = (e) => {
392
+ `, xt = (e) => {
393
393
  const { index: n, handleOpenModal: t } = e;
394
394
  return /* @__PURE__ */ i(
395
395
  We,
@@ -403,10 +403,10 @@ const ft = T.div`
403
403
  },
404
404
  `loading-card-${n}`
405
405
  );
406
- }, xt = (e) => {
406
+ }, Dt = (e) => {
407
407
  const { decision: n, controls: t, handleOpenModal: o, handleDelete: r, textValues: a } = e;
408
408
  return n ? /* @__PURE__ */ i(Ge, { children: /* @__PURE__ */ b(x, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
409
- /* @__PURE__ */ i(E, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
409
+ /* @__PURE__ */ i(N, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
410
410
  /* @__PURE__ */ i(
411
411
  We,
412
412
  {
@@ -418,7 +418,7 @@ const ft = T.div`
418
418
  }
419
419
  )
420
420
  ] }) }, n.decisionId) : null;
421
- }, Dt = (e) => {
421
+ }, yt = (e) => {
422
422
  const {
423
423
  customTitleContentAddCard: n,
424
424
  index: t,
@@ -426,9 +426,9 @@ const ft = T.div`
426
426
  shouldRenderEmptyMessage: r
427
427
  } = e, a = n || "Agregar decisión";
428
428
  return /* @__PURE__ */ i(Ge, { children: r ? null : /* @__PURE__ */ b(x, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
429
- /* @__PURE__ */ i(E, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
429
+ /* @__PURE__ */ i(N, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
430
430
  /* @__PURE__ */ i(
431
- ft,
431
+ mt,
432
432
  {
433
433
  onClick: () => o ? o() : null,
434
434
  children: /* @__PURE__ */ i(
@@ -440,22 +440,22 @@ const ft = T.div`
440
440
  handleView: () => o ? o() : null,
441
441
  controls: !1,
442
442
  children: /* @__PURE__ */ b(x, { direction: "column", gap: "12px", alignItems: "center", children: [
443
- /* @__PURE__ */ i(O, { appearance: "gray", icon: /* @__PURE__ */ i(Ce, {}), size: "35px" }),
444
- /* @__PURE__ */ i(E, { appearance: "gray", type: "body", size: "large", children: a })
443
+ /* @__PURE__ */ i(L, { appearance: "gray", icon: /* @__PURE__ */ i(qe, {}), size: "35px" }),
444
+ /* @__PURE__ */ i(N, { appearance: "gray", type: "body", size: "large", children: a })
445
445
  ] })
446
446
  }
447
447
  )
448
448
  }
449
449
  )
450
450
  ] }) }, `add-decision-${t}`);
451
- }, yt = {
452
- loading: vt,
453
- decision: xt,
454
- add: Dt
455
- }, He = (e) => {
456
- const { type: n } = e, t = yt[n];
451
+ }, Tt = {
452
+ loading: xt,
453
+ decision: Dt,
454
+ add: yt
455
+ }, ze = (e) => {
456
+ const { type: n } = e, t = Tt[n];
457
457
  return t ? t(e) : null;
458
- }, Tt = (e) => {
458
+ }, wt = (e) => {
459
459
  const {
460
460
  controls: n,
461
461
  customTitleContentAddCard: t,
@@ -465,7 +465,7 @@ const ft = T.div`
465
465
  handleDelete: s,
466
466
  textValues: c
467
467
  } = e, l = r ? Array.from({ length: 3 }).map(
468
- (g, u) => He({
468
+ (g, u) => ze({
469
469
  type: "loading",
470
470
  index: u,
471
471
  controls: n,
@@ -476,7 +476,7 @@ const ft = T.div`
476
476
  textValues: c
477
477
  })
478
478
  ) : o == null ? void 0 : o.map(
479
- (g) => He({
479
+ (g) => ze({
480
480
  type: "decision",
481
481
  decision: g,
482
482
  controls: n,
@@ -488,7 +488,7 @@ const ft = T.div`
488
488
  })
489
489
  ), d = ((o == null ? void 0 : o.length) === 0 || o.length < Math.floor(window.innerWidth / 300)) && !r && n;
490
490
  return { renderedCards: l, shouldRenderAddCard: d };
491
- }, da = (e) => {
491
+ }, sa = (e) => {
492
492
  const {
493
493
  controls: n = !0,
494
494
  customTitleContentAddCard: t,
@@ -504,7 +504,7 @@ const ft = T.div`
504
504
  handleSubmitForm: p,
505
505
  handleDelete: f,
506
506
  terms: m = !0
507
- } = e, v = X("(max-width: 681px)"), D = X("(max-width: 400px)"), { renderedCards: y, shouldRenderAddCard: w } = Tt({
507
+ } = e, v = X("(max-width: 681px)"), D = X("(max-width: 400px)"), { renderedCards: y, shouldRenderAddCard: w } = wt({
508
508
  controls: n,
509
509
  customTitleContentAddCard: t,
510
510
  decisions: r,
@@ -512,9 +512,9 @@ const ft = T.div`
512
512
  handleOpenModal: g,
513
513
  handleDelete: f,
514
514
  textValues: a
515
- }), N = (r == null ? void 0 : r.length) === 0 && !d;
515
+ }), E = (r == null ? void 0 : r.length) === 0 && !d;
516
516
  return /* @__PURE__ */ b(R, { children: [
517
- /* @__PURE__ */ i(mt, { children: /* @__PURE__ */ i(bt, { children: /* @__PURE__ */ i(x, { direction: "column", gap: "16px", padding: "6px", children: N ? /* @__PURE__ */ b(
517
+ /* @__PURE__ */ i(bt, { children: /* @__PURE__ */ i(vt, { children: /* @__PURE__ */ i(x, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */ b(
518
518
  x,
519
519
  {
520
520
  direction: "column",
@@ -524,10 +524,10 @@ const ft = T.div`
524
524
  justifyContent: "center",
525
525
  alignItems: "center",
526
526
  children: [
527
- /* @__PURE__ */ i(E, { as: "span", type: "label", size: "large", appearance: "gray", children: o || /* @__PURE__ */ b(R, { children: [
527
+ /* @__PURE__ */ i(N, { as: "span", type: "label", size: "large", appearance: "gray", children: o || /* @__PURE__ */ b(R, { children: [
528
528
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
529
529
  /* @__PURE__ */ b(
530
- E,
530
+ N,
531
531
  {
532
532
  as: "span",
533
533
  type: "label",
@@ -544,9 +544,9 @@ const ft = T.div`
544
544
  "para empezar."
545
545
  ] }) }),
546
546
  /* @__PURE__ */ i(
547
- H,
547
+ j,
548
548
  {
549
- iconBefore: /* @__PURE__ */ i(Ce, {}),
549
+ iconBefore: /* @__PURE__ */ i(qe, {}),
550
550
  onClick: () => g ? g() : null,
551
551
  children: t || "Agregar decisión"
552
552
  }
@@ -554,7 +554,7 @@ const ft = T.div`
554
554
  ]
555
555
  }
556
556
  ) : /* @__PURE__ */ b(
557
- Ne,
557
+ Ce,
558
558
  {
559
559
  templateColumns: D ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
560
560
  autoFlow: "row dense",
@@ -567,7 +567,7 @@ const ft = T.div`
567
567
  height: v ? "auto" : "484px",
568
568
  children: [
569
569
  y,
570
- w && He({
570
+ w && ze({
571
571
  type: "add",
572
572
  index: r == null ? void 0 : r.length,
573
573
  controls: n,
@@ -577,20 +577,20 @@ const ft = T.div`
577
577
  handleOpenModal: g,
578
578
  handleDelete: f,
579
579
  textValues: a,
580
- shouldRenderEmptyMessage: N,
580
+ shouldRenderEmptyMessage: E,
581
581
  terms: m
582
582
  })
583
583
  ]
584
584
  }
585
585
  ) }) }) }),
586
586
  c && /* @__PURE__ */ i(
587
- pt,
587
+ ht,
588
588
  {
589
589
  portalId: "modal-portal",
590
590
  onCloseModal: u,
591
591
  title: l ? "Editar Decisión" : "Nueva decisión",
592
592
  children: /* @__PURE__ */ i(
593
- ko,
593
+ Ao,
594
594
  {
595
595
  decision: l || s,
596
596
  onSubmitEvent: p,
@@ -604,21 +604,21 @@ const ft = T.div`
604
604
  ] });
605
605
  }, Sn = (e) => {
606
606
  const { children: n } = e;
607
- return /* @__PURE__ */ i(qn, { width: "100%", children: n });
608
- }, wt = (e) => e.value, St = (e) => e.value, Ct = (e) => e.value, Nt = (e) => ({
607
+ return /* @__PURE__ */ i(Yn, { width: "100%", children: n });
608
+ }, St = (e) => e.value, Ct = (e) => e.value, Nt = (e) => e.value, Et = (e) => ({
609
609
  from: e.from ?? "",
610
610
  to: e.to ?? ""
611
- }), Et = (e) => e.value, kt = (e) => e.value, At = (e) => e.value, It = {
612
- [k.LIST_OF_VALUES]: St,
613
- [k.LIST_OF_VALUES_MULTI]: Ct,
614
- [k.RANGE]: Nt,
615
- [k.GREATER_THAN]: Et,
616
- [k.LESS_THAN]: kt,
617
- [k.EQUAL]: At
618
- }, pe = (e) => {
619
- const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), o = It[e == null ? void 0 : e.howToSetTheDecision] || wt;
611
+ }), kt = (e) => e.value, At = (e) => e.value, It = (e) => e.value, $t = {
612
+ [k.LIST_OF_VALUES]: Ct,
613
+ [k.LIST_OF_VALUES_MULTI]: Nt,
614
+ [k.RANGE]: Et,
615
+ [k.GREATER_THAN]: kt,
616
+ [k.LESS_THAN]: At,
617
+ [k.EQUAL]: It
618
+ }, he = (e) => {
619
+ const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), o = $t[e == null ? void 0 : e.howToSetTheDecision] || St;
620
620
  return t && o(n) || n || void 0;
621
- }, $t = T.div`
621
+ }, Ft = T.div`
622
622
  display: flex;
623
623
  justify-content: ${({ $justifyContent: e }) => e};
624
624
  align-items: ${({ $alignItems: e }) => e};
@@ -641,7 +641,7 @@ const ft = T.div`
641
641
  border-radius: ${({ $borderRadius: e }) => e};
642
642
  box-sizing: ${({ $boxSizing: e }) => e};
643
643
  overflow-y: ${({ $scroll: e }) => e ? "scroll" : "none"};
644
- `, j = z.forwardRef(
644
+ `, U = z.forwardRef(
645
645
  (e, n) => {
646
646
  const {
647
647
  children: t,
@@ -662,7 +662,7 @@ const ft = T.div`
662
662
  scroll: y = !1
663
663
  } = e;
664
664
  return /* @__PURE__ */ i(
665
- $t,
665
+ Ft,
666
666
  {
667
667
  ref: n,
668
668
  direction: r,
@@ -685,7 +685,7 @@ const ft = T.div`
685
685
  );
686
686
  }
687
687
  );
688
- j.displayName = "BorderStack";
688
+ U.displayName = "BorderStack";
689
689
  T.div`
690
690
  & > div {
691
691
  border-radius: 8px;
@@ -715,9 +715,9 @@ T.div`
715
715
  border-radius: 8px;
716
716
  }
717
717
  `;
718
- const Ft = T.div`
718
+ const Pt = T.div`
719
719
  cursor: pointer;
720
- `, Pt = (e) => {
720
+ `, Rt = (e) => {
721
721
  const {
722
722
  conditionsAlignment: n,
723
723
  decision: t,
@@ -734,7 +734,7 @@ const Ft = T.div`
734
734
  validUntilRenderer: f
735
735
  } = e;
736
736
  return r ? /* @__PURE__ */ b(x, { direction: "column", gap: "16px", children: [
737
- /* @__PURE__ */ i(Ft, { onClick: d, children: /* @__PURE__ */ b(
737
+ /* @__PURE__ */ i(Pt, { onClick: d, children: /* @__PURE__ */ b(
738
738
  x,
739
739
  {
740
740
  alignItems: "start",
@@ -743,10 +743,10 @@ const Ft = T.div`
743
743
  /* @__PURE__ */ b(x, { gap: "12px", children: [
744
744
  /* @__PURE__ */ i(ce, { appearance: "gray", label: c, displayIcon: !1 }),
745
745
  /* @__PURE__ */ i(
746
- fe,
746
+ me,
747
747
  {
748
748
  element: o,
749
- valueData: pe(
749
+ valueData: he(
750
750
  o
751
751
  ),
752
752
  type: "decision"
@@ -755,7 +755,7 @@ const Ft = T.div`
755
755
  ] }),
756
756
  /* @__PURE__ */ b(x, { gap: "12px", children: [
757
757
  /* @__PURE__ */ i(
758
- O,
758
+ L,
759
759
  {
760
760
  appearance: "primary",
761
761
  icon: /* @__PURE__ */ i(zn, {}),
@@ -764,7 +764,7 @@ const Ft = T.div`
764
764
  }
765
765
  ),
766
766
  /* @__PURE__ */ i(
767
- O,
767
+ L,
768
768
  {
769
769
  appearance: "danger",
770
770
  icon: /* @__PURE__ */ i(mn, {}),
@@ -773,10 +773,10 @@ const Ft = T.div`
773
773
  }
774
774
  ),
775
775
  /* @__PURE__ */ i(
776
- O,
776
+ L,
777
777
  {
778
778
  appearance: "dark",
779
- icon: l ? /* @__PURE__ */ i(Hn, {}) : /* @__PURE__ */ i(ze, {}),
779
+ icon: l ? /* @__PURE__ */ i(Hn, {}) : /* @__PURE__ */ i(Ve, {}),
780
780
  size: "24px",
781
781
  cursorHover: !0
782
782
  }
@@ -787,10 +787,10 @@ const Ft = T.div`
787
787
  t.ruleName
788
788
  ) }),
789
789
  l && /* @__PURE__ */ b(R, { children: [
790
- /* @__PURE__ */ i(q, { dashed: !0 }),
790
+ /* @__PURE__ */ i(B, { dashed: !0 }),
791
791
  /* @__PURE__ */ b(x, { direction: "column", gap: "12px", children: [
792
792
  /* @__PURE__ */ i(
793
- E,
793
+ N,
794
794
  {
795
795
  type: "label",
796
796
  size: "large",
@@ -809,17 +809,17 @@ const Ft = T.div`
809
809
  justifyContent: n,
810
810
  children: [
811
811
  s.map((m) => /* @__PURE__ */ i(
812
- j,
812
+ U,
813
813
  {
814
814
  direction: "column",
815
815
  padding: "6px 12px",
816
816
  borderRadius: "8px",
817
817
  background: !0,
818
818
  children: /* @__PURE__ */ i(
819
- fe,
819
+ me,
820
820
  {
821
821
  element: { ...m, value: m.value },
822
- valueData: pe(
822
+ valueData: he(
823
823
  m
824
824
  )
825
825
  }
@@ -828,14 +828,14 @@ const Ft = T.div`
828
828
  m.conditionName
829
829
  )),
830
830
  g && p && /* @__PURE__ */ i(
831
- j,
831
+ U,
832
832
  {
833
833
  direction: "column",
834
834
  padding: "6px 12px",
835
835
  borderRadius: "8px",
836
836
  background: !0,
837
837
  children: /* @__PURE__ */ i(
838
- fe,
838
+ me,
839
839
  {
840
840
  element: p.element,
841
841
  valueData: p.valueData
@@ -845,14 +845,14 @@ const Ft = T.div`
845
845
  }
846
846
  ),
847
847
  u && f && /* @__PURE__ */ i(
848
- j,
848
+ U,
849
849
  {
850
850
  direction: "column",
851
851
  padding: "6px 12px",
852
852
  borderRadius: "8px",
853
853
  background: !0,
854
854
  children: /* @__PURE__ */ i(
855
- fe,
855
+ me,
856
856
  {
857
857
  element: f.element,
858
858
  valueData: f.valueData
@@ -873,7 +873,7 @@ const Ft = T.div`
873
873
  ] }),
874
874
  /* @__PURE__ */ b(x, { alignItems: "center", gap: "8px", children: [
875
875
  /* @__PURE__ */ i(W, { animated: !0, width: "50px" }),
876
- /* @__PURE__ */ i(Yn, { animated: !0 })
876
+ /* @__PURE__ */ i(Xn, { animated: !0 })
877
877
  ] })
878
878
  ] });
879
879
  }, Cn = (e) => {
@@ -890,37 +890,37 @@ const Ft = T.div`
890
890
  labelName: o == null ? void 0 : o.effectiveFrom,
891
891
  value: String(n.effectiveFrom),
892
892
  howToSetTheDecision: G.EQUAL,
893
- decisionDataType: U.DATE
893
+ decisionDataType: _.DATE
894
894
  },
895
- valueData: pe({
895
+ valueData: he({
896
896
  labelName: o == null ? void 0 : o.effectiveFrom,
897
897
  value: String(n.effectiveFrom),
898
898
  howToSetTheDecision: G.EQUAL,
899
- decisionDataType: U.DATE
899
+ decisionDataType: _.DATE
900
900
  })
901
901
  } : null, g = l ? {
902
902
  element: {
903
903
  labelName: o == null ? void 0 : o.validUntil,
904
904
  value: String(n.validUntil),
905
905
  howToSetTheDecision: G.EQUAL,
906
- decisionDataType: U.DATE
906
+ decisionDataType: _.DATE
907
907
  },
908
- valueData: pe({
908
+ valueData: he({
909
909
  labelName: o == null ? void 0 : o.validUntil,
910
910
  value: String(n.validUntil),
911
911
  howToSetTheDecision: G.EQUAL,
912
- decisionDataType: U.DATE
912
+ decisionDataType: _.DATE
913
913
  })
914
914
  } : null, u = n ? {
915
915
  labelName: n.labelName || "",
916
916
  decisionDataType: n.decisionDataType || "alphabetical",
917
- value: pe(n),
917
+ value: he(n),
918
918
  howToSetTheDecision: n.howToSetTheDecision || "EqualTo"
919
919
  } : null, p = ((y = n == null ? void 0 : n.conditionsThatEstablishesTheDecision) == null ? void 0 : y.filter(
920
920
  (w) => !w.hidden
921
921
  )) || [], f = Array.from({ length: 5 }), m = !!(!t && n && o && u), v = p.length < 2 ? "start" : "space-between", D = `N° ${String((r ?? 0) + 1).padStart(2, "0")}`;
922
922
  return /* @__PURE__ */ i(
923
- Pt,
923
+ Rt,
924
924
  {
925
925
  conditionsAlignment: v,
926
926
  decision: n,
@@ -938,7 +938,7 @@ const Ft = T.div`
938
938
  validUntilRenderer: g
939
939
  }
940
940
  );
941
- }, Rt = Dn`
941
+ }, Lt = Dn`
942
942
  from {
943
943
  opacity: 0;
944
944
  transform: translateY(20px);
@@ -972,7 +972,7 @@ T.div`
972
972
  }};
973
973
  }
974
974
  `;
975
- const Lt = T.div`
975
+ const Mt = T.div`
976
976
  & > div {
977
977
  box-shadow: 0px 2px 3px 0px
978
978
  ${({ theme: e }) => {
@@ -981,18 +981,18 @@ const Lt = T.div`
981
981
  }};
982
982
  cursor: pointer;
983
983
  }
984
- `, Mt = T.div`
984
+ `, Ot = T.div`
985
985
  width: 100%;
986
986
  height: 100%;
987
987
  & > div {
988
- animation: ${Rt} 600ms ease-out;
988
+ animation: ${Lt} 600ms ease-out;
989
989
  }
990
- `, Ot = T.div`
990
+ `, Vt = T.div`
991
991
  & > div > div {
992
992
  border-radius: 8px;
993
993
  box-sizing: border-box;
994
994
  }
995
- `, Vt = T.div`
995
+ `, zt = T.div`
996
996
  & > div {
997
997
  width: 100%;
998
998
  height: 100%;
@@ -1012,7 +1012,7 @@ const Lt = T.div`
1012
1012
  border-radius: 8px;
1013
1013
  }
1014
1014
  }
1015
- `, zt = (e) => {
1015
+ `, Ht = (e) => {
1016
1016
  const { index: n, handleOpenModal: t } = e;
1017
1017
  return /* @__PURE__ */ i(
1018
1018
  Sn,
@@ -1026,7 +1026,7 @@ const Lt = T.div`
1026
1026
  },
1027
1027
  `loading-card-${n}`
1028
1028
  );
1029
- }, Ht = (e) => {
1029
+ }, _t = (e) => {
1030
1030
  const {
1031
1031
  decision: n,
1032
1032
  controls: t,
@@ -1056,19 +1056,19 @@ const Lt = T.div`
1056
1056
  )
1057
1057
  }
1058
1058
  ) }) }, n.decisionId) : null;
1059
- }, _t = (e) => {
1059
+ }, Ut = (e) => {
1060
1060
  const {
1061
1061
  customTitleContentAddCard: n,
1062
1062
  index: t,
1063
1063
  handleOpenModal: o,
1064
1064
  shouldRenderEmptyMessage: r
1065
1065
  } = e;
1066
- return /* @__PURE__ */ i(Mt, { children: r ? null : /* @__PURE__ */ i(
1067
- Lt,
1066
+ return /* @__PURE__ */ i(Ot, { children: r ? null : /* @__PURE__ */ i(
1067
+ Mt,
1068
1068
  {
1069
1069
  onClick: () => o ? o() : null,
1070
1070
  children: /* @__PURE__ */ i(
1071
- j,
1071
+ U,
1072
1072
  {
1073
1073
  direction: "column",
1074
1074
  gap: "4px",
@@ -1083,12 +1083,12 @@ const Lt = T.div`
1083
1083
  alignItems: "center",
1084
1084
  padding: "16px",
1085
1085
  children: [
1086
- /* @__PURE__ */ i(E, { appearance: "gray", type: "label", size: "large", weight: "bold", children: n || "Agregar decisión" }),
1086
+ /* @__PURE__ */ i(N, { appearance: "gray", type: "label", size: "large", weight: "bold", children: n || "Agregar decisión" }),
1087
1087
  /* @__PURE__ */ i(
1088
- O,
1088
+ L,
1089
1089
  {
1090
1090
  appearance: "gray",
1091
- icon: /* @__PURE__ */ i(Ce, {}),
1091
+ icon: /* @__PURE__ */ i(qe, {}),
1092
1092
  size: "24px",
1093
1093
  cursorHover: !0
1094
1094
  }
@@ -1100,14 +1100,14 @@ const Lt = T.div`
1100
1100
  )
1101
1101
  }
1102
1102
  ) }, `add-decision-${t}`);
1103
- }, Ut = {
1104
- loading: zt,
1105
- decision: Ht,
1106
- add: _t
1107
- }, _e = (e) => {
1108
- const { type: n } = e, t = Ut[n];
1103
+ }, jt = {
1104
+ loading: Ht,
1105
+ decision: _t,
1106
+ add: Ut
1107
+ }, He = (e) => {
1108
+ const { type: n } = e, t = jt[n];
1109
1109
  return t ? t(e) : null;
1110
- }, jt = (e) => {
1110
+ }, Bt = (e) => {
1111
1111
  const {
1112
1112
  controls: n,
1113
1113
  customTitleContentAddCard: t,
@@ -1119,7 +1119,7 @@ const Lt = T.div`
1119
1119
  isOpenFor: l,
1120
1120
  toggleAt: d
1121
1121
  } = e, g = r ? Array.from({ length: 3 }).map(
1122
- (p, f) => _e({
1122
+ (p, f) => He({
1123
1123
  type: "loading",
1124
1124
  index: f,
1125
1125
  controls: n,
@@ -1130,7 +1130,7 @@ const Lt = T.div`
1130
1130
  textValues: c
1131
1131
  })
1132
1132
  ) : o == null ? void 0 : o.map(
1133
- (p, f) => _e({
1133
+ (p, f) => He({
1134
1134
  type: "decision",
1135
1135
  decision: p,
1136
1136
  controls: l ? l(f) : !1,
@@ -1145,13 +1145,13 @@ const Lt = T.div`
1145
1145
  })
1146
1146
  ), u = ((o == null ? void 0 : o.length) === 0 || o.length < Math.floor(window.innerWidth / 300)) && !r && n;
1147
1147
  return { renderedCards: g, shouldRenderAddCard: u };
1148
- }, Bt = T.div`
1148
+ }, qt = T.div`
1149
1149
  position: relative;
1150
1150
  & > div {
1151
1151
  padding: 24px 16px;
1152
1152
  place-items: unset;
1153
1153
  }
1154
- `, qt = T.div`
1154
+ `, Yt = T.div`
1155
1155
  background-color: ${({ theme: e }) => {
1156
1156
  var n, t;
1157
1157
  return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N0) || C.palette.neutral.N0;
@@ -1183,7 +1183,7 @@ const Lt = T.div`
1183
1183
  background-color: #ebecf0;
1184
1184
  border-radius: 8px;
1185
1185
  }
1186
- `, Yt = (e) => {
1186
+ `, Xt = (e) => {
1187
1187
  const { children: n, description: t, portalId: o, onCloseModal: r, title: a } = e, s = document.getElementById(o);
1188
1188
  if (!s)
1189
1189
  throw new Error(
@@ -1191,12 +1191,12 @@ const Lt = T.div`
1191
1191
  );
1192
1192
  const c = X("(max-width: 400px)");
1193
1193
  return Xe(
1194
- /* @__PURE__ */ i(Bt, { smallScreen: c, children: /* @__PURE__ */ i(Ye, { children: /* @__PURE__ */ i(qt, { children: /* @__PURE__ */ b(x, { direction: "column", gap: "24px", children: [
1194
+ /* @__PURE__ */ i(qt, { smallScreen: c, children: /* @__PURE__ */ i(Ye, { children: /* @__PURE__ */ i(Yt, { children: /* @__PURE__ */ b(x, { direction: "column", gap: "24px", children: [
1195
1195
  /* @__PURE__ */ b(x, { direction: "column", gap: "24px", children: [
1196
1196
  /* @__PURE__ */ b(x, { alignItems: "center", justifyContent: "space-between", children: [
1197
1197
  /* @__PURE__ */ b(x, { direction: "column", gap: "8px", children: [
1198
1198
  /* @__PURE__ */ i(
1199
- E,
1199
+ N,
1200
1200
  {
1201
1201
  type: "title",
1202
1202
  size: "medium",
@@ -1205,25 +1205,25 @@ const Lt = T.div`
1205
1205
  children: a
1206
1206
  }
1207
1207
  ),
1208
- /* @__PURE__ */ i(E, { size: "medium", appearance: "gray", children: t })
1208
+ /* @__PURE__ */ i(N, { size: "medium", appearance: "gray", children: t })
1209
1209
  ] }),
1210
- /* @__PURE__ */ i(qe, { size: "24px", cursor: "pointer", onClick: r })
1210
+ /* @__PURE__ */ i(Be, { size: "24px", cursor: "pointer", onClick: r })
1211
1211
  ] }),
1212
- /* @__PURE__ */ i(q, { dashed: !0 })
1212
+ /* @__PURE__ */ i(B, { dashed: !0 })
1213
1213
  ] }),
1214
1214
  n
1215
1215
  ] }) }) }) }),
1216
1216
  s
1217
1217
  );
1218
- }, Xt = (e) => ({
1218
+ }, Wt = (e) => ({
1219
1219
  schema: le().required("Requerido").test(
1220
1220
  "non-empty",
1221
1221
  "El valor no puede estar vacío",
1222
1222
  (n) => n != null && n.trim() !== ""
1223
1223
  ),
1224
1224
  value: e
1225
- }), Wt = (e) => ({
1226
- schema: ke().test(
1225
+ }), Gt = (e) => ({
1226
+ schema: Ee().test(
1227
1227
  "isArrayOrString",
1228
1228
  "Por favor selecciona una opcion",
1229
1229
  (n) => Array.isArray(n) ? n.every(
@@ -1231,8 +1231,8 @@ const Lt = T.div`
1231
1231
  ) : typeof n == "string"
1232
1232
  ),
1233
1233
  value: e
1234
- }), Gt = (e) => ({
1235
- schema: ke().test(
1234
+ }), Zt = (e) => ({
1235
+ schema: Ee().test(
1236
1236
  "isArrayOrString",
1237
1237
  "Por favor selecciona al menos una opcion",
1238
1238
  (n) => Array.isArray(n) ? n.every(
@@ -1240,7 +1240,7 @@ const Lt = T.div`
1240
1240
  ) : typeof n == "string"
1241
1241
  ),
1242
1242
  value: e
1243
- }), Zt = (e) => {
1243
+ }), Qt = (e) => {
1244
1244
  const n = (e == null ? void 0 : e.from) ?? 0, t = (e == null ? void 0 : e.to) ?? 0;
1245
1245
  return {
1246
1246
  schema: Z({
@@ -1256,29 +1256,29 @@ const Lt = T.div`
1256
1256
  }),
1257
1257
  value: { from: n, to: t }
1258
1258
  };
1259
- }, Re = (e, n) => n === U.PERCENTAGE ? {
1259
+ }, Pe = (e, n) => n === _.PERCENTAGE ? {
1260
1260
  schema: ae().required("El campo porcentaje es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100"),
1261
1261
  value: e
1262
1262
  } : {
1263
1263
  schema: le().required("Requerido"),
1264
1264
  value: e
1265
- }, Qt = {
1266
- [k.LIST_OF_VALUES]: Wt,
1267
- [k.LIST_OF_VALUES_MULTI]: Gt,
1268
- [k.RANGE]: Zt,
1269
- [k.GREATER_THAN]: Re,
1270
- [k.LESS_THAN]: Re,
1271
- [k.EQUAL]: Re
1272
- }, on = (e) => Qt[e] || Xt;
1265
+ }, Kt = {
1266
+ [k.LIST_OF_VALUES]: Gt,
1267
+ [k.LIST_OF_VALUES_MULTI]: Zt,
1268
+ [k.RANGE]: Qt,
1269
+ [k.GREATER_THAN]: Pe,
1270
+ [k.LESS_THAN]: Pe,
1271
+ [k.EQUAL]: Pe
1272
+ }, on = (e) => Kt[e] || Wt;
1273
1273
  var Ze = /* @__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))(Ze || {});
1274
- function Kt({
1274
+ function Jt({
1275
1275
  decision: e,
1276
1276
  onSubmitEvent: n,
1277
1277
  textValues: t
1278
1278
  }) {
1279
1279
  const o = {
1280
1280
  ruleName: e.ruleName || "",
1281
- decisionDataType: e.decisionDataType || U.ALPHABETICAL,
1281
+ decisionDataType: e.decisionDataType || _.ALPHABETICAL,
1282
1282
  howToSetTheDecision: e.howToSetTheDecision || "",
1283
1283
  value: e.value || "",
1284
1284
  effectiveFrom: e.effectiveFrom || "",
@@ -1380,7 +1380,7 @@ function Kt({
1380
1380
  });
1381
1381
  } };
1382
1382
  }
1383
- const Jt = T.div`
1383
+ const eo = T.div`
1384
1384
  & > div {
1385
1385
  border-radius: 8px;
1386
1386
  border: 1px solid
@@ -1389,7 +1389,7 @@ const Jt = T.div`
1389
1389
  return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || C.palette.neutral.N30;
1390
1390
  }};
1391
1391
  }
1392
- `, eo = T.div`
1392
+ `, no = T.div`
1393
1393
  width: 100%;
1394
1394
  height: 100%;
1395
1395
  overflow-y: auto;
@@ -1406,7 +1406,7 @@ const Jt = T.div`
1406
1406
  background-color: #ebecf0;
1407
1407
  border-radius: 8px;
1408
1408
  }
1409
- `, no = (e) => {
1409
+ `, to = (e) => {
1410
1410
  const {
1411
1411
  checked: n,
1412
1412
  children: t,
@@ -1422,7 +1422,7 @@ const Jt = T.div`
1422
1422
  d(n);
1423
1423
  }, [n]), /* @__PURE__ */ b(R, { children: [
1424
1424
  /* @__PURE__ */ i(x, { children: /* @__PURE__ */ i(
1425
- Ee,
1425
+ Ne,
1426
1426
  {
1427
1427
  checked: l,
1428
1428
  id: r,
@@ -1430,12 +1430,12 @@ const Jt = T.div`
1430
1430
  onChange: g,
1431
1431
  size: "small",
1432
1432
  value: c,
1433
- children: /* @__PURE__ */ i(E, { size: "medium", type: "label", weight: "bold", children: a })
1433
+ children: /* @__PURE__ */ i(N, { size: "medium", type: "label", weight: "bold", children: a })
1434
1434
  }
1435
1435
  ) }),
1436
1436
  l && /* @__PURE__ */ i(R, { children: t })
1437
1437
  ] });
1438
- }, to = (e) => {
1438
+ }, oo = (e) => {
1439
1439
  const {
1440
1440
  onHandleStartChange: n,
1441
1441
  onHandleEndChange: t,
@@ -1450,16 +1450,16 @@ const Jt = T.div`
1450
1450
  messageEnd: u = "",
1451
1451
  statusStart: p = "pending",
1452
1452
  statusEnd: f = "pending"
1453
- } = e, [m, v] = P(s), [D, y] = P(l), [w, N] = P(d), A = ({ target: $ }) => {
1454
- v($.checked), o && o($.checked);
1455
- }, S = ($) => {
1456
- y($.target.value), n($);
1457
- }, I = ($) => {
1458
- N($.target.value), t($);
1459
- }, B = X("(max-width: 400px)");
1453
+ } = e, [m, v] = P(s), [D, y] = P(l), [w, E] = P(d), A = ({ target: I }) => {
1454
+ v(I.checked), o && o(I.checked);
1455
+ }, S = (I) => {
1456
+ y(I.target.value), n(I);
1457
+ }, $ = (I) => {
1458
+ E(I.target.value), t(I);
1459
+ }, Y = X("(max-width: 400px)");
1460
1460
  return /* @__PURE__ */ b(x, { direction: "column", width: "100%", gap: "20px", children: [
1461
1461
  /* @__PURE__ */ b(x, { justifyContent: "space-between", children: [
1462
- /* @__PURE__ */ i(E, { appearance: "dark", size: "large", type: "label", children: "¿La vigencia para este decisión es cerrada?" }),
1462
+ /* @__PURE__ */ i(N, { appearance: "dark", size: "large", type: "label", children: "¿La vigencia para este decisión es cerrada?" }),
1463
1463
  /* @__PURE__ */ i(
1464
1464
  xn,
1465
1465
  {
@@ -1473,7 +1473,7 @@ const Jt = T.div`
1473
1473
  /* @__PURE__ */ b(
1474
1474
  x,
1475
1475
  {
1476
- direction: B ? "column" : "row",
1476
+ direction: Y ? "column" : "row",
1477
1477
  justifyContent: "space-between",
1478
1478
  gap: "24px",
1479
1479
  children: [
@@ -1496,7 +1496,7 @@ const Jt = T.div`
1496
1496
  {
1497
1497
  id: "dateEnd",
1498
1498
  label: a,
1499
- onChange: I,
1499
+ onChange: $,
1500
1500
  value: w,
1501
1501
  required: c,
1502
1502
  size: "compact",
@@ -1509,7 +1509,7 @@ const Jt = T.div`
1509
1509
  }
1510
1510
  )
1511
1511
  ] });
1512
- }, Le = [
1512
+ }, Re = [
1513
1513
  {
1514
1514
  id: "mainCondition",
1515
1515
  label: "Condición principal",
@@ -1525,7 +1525,7 @@ const Jt = T.div`
1525
1525
  label: "Condición alterna N° 02",
1526
1526
  isDisabled: !1
1527
1527
  }
1528
- ], oo = (e) => {
1528
+ ], ro = (e) => {
1529
1529
  const {
1530
1530
  formik: n,
1531
1531
  textValues: t,
@@ -1537,25 +1537,25 @@ const Jt = T.div`
1537
1537
  showConditionsError: l,
1538
1538
  termStartStatus: d,
1539
1539
  termEndStatus: g
1540
- } = e, [u, p] = P(Le[0].id), f = (v) => p(v), m = location.pathname.split("/").pop();
1540
+ } = e, [u, p] = P(Re[0].id), f = (v) => p(v), m = location.pathname.split("/").pop();
1541
1541
  return te(() => {
1542
- p(Le[0].id);
1542
+ p(Re[0].id);
1543
1543
  }, [m]), /* @__PURE__ */ i("form", { onSubmit: n.handleSubmit, children: /* @__PURE__ */ b(x, { direction: "column", gap: "24px", width: "100%", children: [
1544
- /* @__PURE__ */ i(ve, { legend: "Decisión N° 01", spacing: "wide", children: De({
1544
+ /* @__PURE__ */ i(ue, { legend: "Decisión N° 01", spacing: "wide", children: De({
1545
1545
  condition: a,
1546
1546
  formik: n,
1547
1547
  isDecision: !0
1548
1548
  }) }),
1549
- /* @__PURE__ */ b(ve, { legend: "Condiciones a evaluar", spacing: "wide", children: [
1549
+ /* @__PURE__ */ b(ue, { legend: "Condiciones a evaluar", spacing: "wide", children: [
1550
1550
  /* @__PURE__ */ i(
1551
- Xn,
1551
+ Wn,
1552
1552
  {
1553
1553
  onChange: f,
1554
- tabs: Le,
1554
+ tabs: Re,
1555
1555
  selectedTab: u
1556
1556
  }
1557
1557
  ),
1558
- /* @__PURE__ */ i(Jt, { children: /* @__PURE__ */ i(eo, { children: /* @__PURE__ */ b(
1558
+ /* @__PURE__ */ i(eo, { children: /* @__PURE__ */ i(no, { children: /* @__PURE__ */ b(
1559
1559
  x,
1560
1560
  {
1561
1561
  direction: "column",
@@ -1571,7 +1571,7 @@ const Jt = T.div`
1571
1571
  gap: "64px",
1572
1572
  children: [
1573
1573
  /* @__PURE__ */ i(
1574
- E,
1574
+ N,
1575
1575
  {
1576
1576
  type: "title",
1577
1577
  size: "small",
@@ -1581,20 +1581,20 @@ const Jt = T.div`
1581
1581
  }
1582
1582
  ),
1583
1583
  /* @__PURE__ */ i(
1584
- Ee,
1584
+ Ne,
1585
1585
  {
1586
1586
  id: "toggleNone",
1587
1587
  onChange: () => s(!n.values.toggleNone),
1588
1588
  checked: n.values.toggleNone,
1589
1589
  size: "small",
1590
- children: /* @__PURE__ */ i(E, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
1590
+ children: /* @__PURE__ */ i(N, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
1591
1591
  }
1592
1592
  )
1593
1593
  ]
1594
1594
  }
1595
1595
  ),
1596
1596
  /* @__PURE__ */ i(x, { direction: "column", gap: "20px", children: r == null ? void 0 : r.map((v) => /* @__PURE__ */ i(
1597
- no,
1597
+ to,
1598
1598
  {
1599
1599
  id: `toggle-${v.conditionName}`,
1600
1600
  name: `toggle.${v.conditionName}`,
@@ -1612,8 +1612,8 @@ const Jt = T.div`
1612
1612
  }
1613
1613
  ) }) })
1614
1614
  ] }),
1615
- /* @__PURE__ */ i(ve, { legend: "Vigencia", spacing: "wide", children: t.terms && /* @__PURE__ */ i(R, { children: /* @__PURE__ */ i(
1616
- to,
1615
+ /* @__PURE__ */ i(ue, { legend: "Vigencia", spacing: "wide", children: t.terms && /* @__PURE__ */ i(R, { children: /* @__PURE__ */ i(
1616
+ oo,
1617
1617
  {
1618
1618
  labelStart: t.termStart,
1619
1619
  labelEnd: t.termEnd,
@@ -1631,15 +1631,15 @@ const Jt = T.div`
1631
1631
  checkedClosed: n.values.checkClosed
1632
1632
  }
1633
1633
  ) }) }),
1634
- l && /* @__PURE__ */ i(E, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
1634
+ l && /* @__PURE__ */ i(N, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
1635
1635
  /* @__PURE__ */ b(x, { direction: "row", justifyContent: "end", gap: "16px", children: [
1636
- /* @__PURE__ */ i(H, { appearance: "gray", onClick: o, variant: "outlined", children: t.cancel }),
1637
- /* @__PURE__ */ i(H, { type: "submit", children: t.confirm })
1636
+ /* @__PURE__ */ i(j, { appearance: "gray", onClick: o, variant: "outlined", children: t.cancel }),
1637
+ /* @__PURE__ */ i(j, { type: "submit", children: t.confirm })
1638
1638
  ] })
1639
1639
  ] }) });
1640
- }, ro = (e) => {
1640
+ }, ao = (e) => {
1641
1641
  var f;
1642
- const { decision: n, onSubmitEvent: t, textValues: o, onCancel: r } = e, { formik: a, handleToggleNoneChange: s } = Kt({
1642
+ const { decision: n, onSubmitEvent: t, textValues: o, onCancel: r } = e, { formik: a, handleToggleNoneChange: s } = Jt({
1643
1643
  decision: n,
1644
1644
  onSubmitEvent: t,
1645
1645
  textValues: o
@@ -1653,7 +1653,7 @@ const Jt = T.div`
1653
1653
  (m) => !m.hidden
1654
1654
  )) || [], d = !!a.errors.conditionsThatEstablishesTheDecision && a.submitCount > 0, g = a.touched.effectiveFrom ? a.errors.effectiveFrom ? "invalid" : "valid" : void 0, u = a.touched.validUntil ? a.errors.validUntil ? "invalid" : "valid" : void 0;
1655
1655
  return /* @__PURE__ */ i(
1656
- oo,
1656
+ ro,
1657
1657
  {
1658
1658
  formik: a,
1659
1659
  onCancel: r,
@@ -1685,7 +1685,7 @@ const Jt = T.div`
1685
1685
  termEndStatus: u
1686
1686
  }
1687
1687
  );
1688
- }, sa = (e) => {
1688
+ }, ca = (e) => {
1689
1689
  const {
1690
1690
  controls: n = !0,
1691
1691
  customTitleContentAddCard: t,
@@ -1701,7 +1701,7 @@ const Jt = T.div`
1701
1701
  handleSubmitForm: p,
1702
1702
  handleDelete: f,
1703
1703
  terms: m = !0
1704
- } = e, [v, D] = P(null), y = X("(max-width: 681px)"), { renderedCards: w, shouldRenderAddCard: N } = jt({
1704
+ } = e, [v, D] = P(null), y = X("(max-width: 681px)"), { renderedCards: w, shouldRenderAddCard: E } = Bt({
1705
1705
  controls: n,
1706
1706
  customTitleContentAddCard: t,
1707
1707
  decisions: r,
@@ -1709,51 +1709,54 @@ const Jt = T.div`
1709
1709
  handleOpenModal: g,
1710
1710
  handleDelete: f,
1711
1711
  textValues: a,
1712
- isOpenFor: (I) => v === I,
1713
- toggleAt: (I) => D((B) => B === I ? null : I)
1712
+ isOpenFor: (S) => v === S,
1713
+ toggleAt: (S) => D(($) => $ === S ? null : S)
1714
1714
  }), A = (r == null ? void 0 : r.length) === 0 && !d;
1715
1715
  return /* @__PURE__ */ b(R, { children: [
1716
- /* @__PURE__ */ i(Ot, { children: /* @__PURE__ */ i(Vt, { children: /* @__PURE__ */ i(x, { direction: "column", gap: "16px", padding: "6px", children: A ? /* @__PURE__ */ b(
1716
+ /* @__PURE__ */ i(Vt, { children: /* @__PURE__ */ i(zt, { children: /* @__PURE__ */ i(x, { direction: "column", gap: "16px", padding: "6px", children: A ? /* @__PURE__ */ i(ue, { legend: "Decisiones", children: /* @__PURE__ */ b(
1717
1717
  x,
1718
1718
  {
1719
1719
  direction: "column",
1720
- gap: "28px",
1720
+ gap: "16px",
1721
1721
  width: "100%",
1722
- height: y ? "auto" : "435px",
1723
1722
  justifyContent: "center",
1724
1723
  alignItems: "center",
1725
1724
  children: [
1726
- /* @__PURE__ */ i(E, { as: "span", type: "label", size: "large", appearance: "gray", children: o || /* @__PURE__ */ b(R, { children: [
1727
- "Aún NO tienes definidas tasas de interés efectivas . Presiona",
1728
- /* @__PURE__ */ b(
1729
- E,
1725
+ /* @__PURE__ */ i(
1726
+ L,
1727
+ {
1728
+ appearance: "help",
1729
+ icon: /* @__PURE__ */ i(_n, {}),
1730
+ size: "40px"
1731
+ }
1732
+ ),
1733
+ /* @__PURE__ */ i(
1734
+ N,
1735
+ {
1736
+ type: "title",
1737
+ size: "medium",
1738
+ weight: "bold",
1739
+ appearance: "dark",
1740
+ children: "Sin decisiones"
1741
+ }
1742
+ ),
1743
+ /* @__PURE__ */ i(N, { as: "span", size: "medium", appearance: "gray", children: o || /* @__PURE__ */ b(R, { children: [
1744
+ "Aun no tienes decisiones definidas, para empezar haz clic en",
1745
+ /* @__PURE__ */ i(
1746
+ N,
1730
1747
  {
1731
1748
  as: "span",
1732
- type: "label",
1733
- size: "large",
1749
+ size: "medium",
1734
1750
  appearance: "gray",
1735
1751
  weight: "bold",
1736
- children: [
1737
- "“",
1738
- t || "+ Agregar decisión",
1739
- "”"
1740
- ]
1752
+ children: t || ' "Agregar decisión"'
1741
1753
  }
1742
- ),
1743
- "para empezar."
1744
- ] }) }),
1745
- /* @__PURE__ */ i(
1746
- H,
1747
- {
1748
- iconBefore: /* @__PURE__ */ i(Ce, {}),
1749
- onClick: () => g ? g() : null,
1750
- children: t || "Agregar decisión"
1751
- }
1752
- )
1754
+ )
1755
+ ] }) })
1753
1756
  ]
1754
1757
  }
1755
- ) : /* @__PURE__ */ b(
1756
- Ne,
1758
+ ) }) : /* @__PURE__ */ b(
1759
+ Ce,
1757
1760
  {
1758
1761
  templateColumns: "1fr",
1759
1762
  autoFlow: "row dense",
@@ -1766,7 +1769,7 @@ const Jt = T.div`
1766
1769
  height: y ? "auto" : "484px",
1767
1770
  children: [
1768
1771
  w,
1769
- N && _e({
1772
+ E && He({
1770
1773
  type: "add",
1771
1774
  index: r == null ? void 0 : r.length,
1772
1775
  controls: n,
@@ -1783,14 +1786,14 @@ const Jt = T.div`
1783
1786
  }
1784
1787
  ) }) }) }),
1785
1788
  c && /* @__PURE__ */ i(
1786
- Yt,
1789
+ Xt,
1787
1790
  {
1788
1791
  portalId: "modal-portal",
1789
1792
  onCloseModal: u,
1790
1793
  title: l ? "Editar Decisión" : "Configurar Decisión",
1791
1794
  description: "Diligencia los campos para configurar tu decisión.",
1792
1795
  children: /* @__PURE__ */ i(
1793
- ro,
1796
+ ao,
1794
1797
  {
1795
1798
  decision: l || s,
1796
1799
  onSubmitEvent: p,
@@ -1802,16 +1805,16 @@ const Jt = T.div`
1802
1805
  }
1803
1806
  )
1804
1807
  ] });
1805
- }, ao = {
1808
+ }, io = {
1806
1809
  border: {
1807
1810
  color: C.palette.neutral.N40
1808
1811
  }
1809
- }, io = T.div`
1812
+ }, lo = T.div`
1810
1813
  border-width: 1px;
1811
1814
  border-style: solid;
1812
1815
  border-color: ${({ theme: e }) => {
1813
1816
  var n, t;
1814
- return ((t = (n = e == null ? void 0 : e.box) == null ? void 0 : n.border) == null ? void 0 : t.color) || ao.border.color;
1817
+ return ((t = (n = e == null ? void 0 : e.box) == null ? void 0 : n.border) == null ? void 0 : t.color) || io.border.color;
1815
1818
  }};
1816
1819
  border-radius: ${({ $borderRadius: e }) => e};
1817
1820
  margin: ${({ $margin: e }) => e};
@@ -1820,7 +1823,7 @@ const Jt = T.div`
1820
1823
  height: ${({ $height: e }) => e};
1821
1824
  box-sizing: border-box;
1822
1825
  `;
1823
- function lo(e) {
1826
+ function so(e) {
1824
1827
  const {
1825
1828
  children: n,
1826
1829
  padding: t = "16px",
@@ -1830,7 +1833,7 @@ function lo(e) {
1830
1833
  height: s
1831
1834
  } = e;
1832
1835
  return /* @__PURE__ */ i(
1833
- io,
1836
+ lo,
1834
1837
  {
1835
1838
  $padding: t,
1836
1839
  $margin: o,
@@ -1841,19 +1844,19 @@ function lo(e) {
1841
1844
  }
1842
1845
  );
1843
1846
  }
1844
- const so = (e, n) => {
1845
- const [t, o] = P([]), [r, a] = P([]), [s, c] = P(!1), l = ue(null);
1847
+ const co = (e, n) => {
1848
+ const [t, o] = P([]), [r, a] = P([]), [s, c] = P(!1), l = ge(null);
1846
1849
  return te(() => {
1847
1850
  if (!e.current || !l.current) return;
1848
1851
  const d = e.current, g = l.current, u = () => {
1849
- var N;
1852
+ var E;
1850
1853
  const f = d.clientWidth, m = Array.from(
1851
1854
  g.querySelectorAll('[data-filter-tag="true"]')
1852
1855
  ), v = 48;
1853
1856
  let D = 0;
1854
1857
  const y = [], w = [];
1855
1858
  for (let A = 0; A < n.length; A++) {
1856
- const S = ((N = m[A]) == null ? void 0 : N.offsetWidth) ?? 0;
1859
+ const S = ((E = m[A]) == null ? void 0 : E.offsetWidth) ?? 0;
1857
1860
  D + S + v <= f ? (y.push(n[A]), D += S) : w.push(n[A]);
1858
1861
  }
1859
1862
  o(y), a(w), c(w.length > 0);
@@ -1868,21 +1871,21 @@ T.div`
1868
1871
  width: 100%;
1869
1872
  }
1870
1873
  `;
1871
- const co = T.div`
1874
+ const uo = T.div`
1872
1875
  position: absolute;
1873
1876
  top: calc(100% + 4px);
1874
1877
  right: 0;
1875
1878
  z-index: 1000;
1876
1879
  width: 170px;
1877
- `, uo = T.div`
1880
+ `, go = T.div`
1878
1881
  position: absolute;
1879
1882
  visibility: hidden;
1880
1883
  pointer-events: none;
1881
1884
  height: 0;
1882
1885
  overflow: hidden;
1883
- `, go = T.div`
1886
+ `, po = T.div`
1884
1887
  cursor: pointer;
1885
- `, Ue = {
1888
+ `, _e = {
1886
1889
  border: {
1887
1890
  color: {
1888
1891
  regular: C.palette.neutral.N40,
@@ -1918,7 +1921,7 @@ const co = T.div`
1918
1921
  hover: C.palette.neutral.N30
1919
1922
  }
1920
1923
  }
1921
- }, po = T.li`
1924
+ }, ho = T.li`
1922
1925
  display: flex;
1923
1926
  align-items: center;
1924
1927
  align-self: stretch;
@@ -1933,14 +1936,14 @@ const co = T.div`
1933
1936
  &:hover {
1934
1937
  background-color: ${({ theme: e }) => {
1935
1938
  var n, t, o;
1936
- return ((o = (t = (n = e == null ? void 0 : e.input) == null ? void 0 : n.background) == null ? void 0 : t.color) == null ? void 0 : o.regular) || Ue.background.color.regular;
1939
+ return ((o = (t = (n = e == null ? void 0 : e.input) == null ? void 0 : n.background) == null ? void 0 : t.color) == null ? void 0 : o.regular) || _e.background.color.regular;
1937
1940
  }};
1938
1941
  }
1939
- `, ho = (e) => {
1942
+ `, fo = (e) => {
1940
1943
  var p, f, m, v, D, y;
1941
- const { id: n, label: t, leadingIcon: o, onClose: r } = e, [a, s] = P(!1), c = () => s(!0), l = () => s(!1), d = Qn(Zn), g = ((m = (f = (p = d == null ? void 0 : d.input) == null ? void 0 : p.option) == null ? void 0 : f.appearance) == null ? void 0 : m.hover) ?? Ue.option.appearance.hover, u = ((y = (D = (v = d == null ? void 0 : d.input) == null ? void 0 : v.option) == null ? void 0 : D.appearance) == null ? void 0 : y.regular) ?? Ue.option.appearance.regular;
1944
+ const { id: n, label: t, leadingIcon: o, onClose: r } = e, [a, s] = P(!1), c = () => s(!0), l = () => s(!1), d = Kn(Qn), g = ((m = (f = (p = d == null ? void 0 : d.input) == null ? void 0 : p.option) == null ? void 0 : f.appearance) == null ? void 0 : m.hover) ?? _e.option.appearance.hover, u = ((y = (D = (v = d == null ? void 0 : d.input) == null ? void 0 : v.option) == null ? void 0 : D.appearance) == null ? void 0 : y.regular) ?? _e.option.appearance.regular;
1942
1945
  return /* @__PURE__ */ i(
1943
- po,
1946
+ ho,
1944
1947
  {
1945
1948
  id: n,
1946
1949
  onMouseEnter: c,
@@ -1949,7 +1952,7 @@ const co = T.div`
1949
1952
  w.stopPropagation();
1950
1953
  },
1951
1954
  children: /* @__PURE__ */ b(
1952
- Ne,
1955
+ Ce,
1953
1956
  {
1954
1957
  alignItems: "center",
1955
1958
  gap: "8px",
@@ -1957,7 +1960,7 @@ const co = T.div`
1957
1960
  width: "100%",
1958
1961
  children: [
1959
1962
  o && /* @__PURE__ */ i(
1960
- O,
1963
+ L,
1961
1964
  {
1962
1965
  icon: o,
1963
1966
  size: "medium",
@@ -1965,7 +1968,7 @@ const co = T.div`
1965
1968
  }
1966
1969
  ),
1967
1970
  /* @__PURE__ */ i(
1968
- E,
1971
+ N,
1969
1972
  {
1970
1973
  textAlign: "start",
1971
1974
  size: "medium",
@@ -1974,9 +1977,9 @@ const co = T.div`
1974
1977
  }
1975
1978
  ),
1976
1979
  /* @__PURE__ */ i(
1977
- O,
1980
+ L,
1978
1981
  {
1979
- icon: /* @__PURE__ */ i(_n, {}),
1982
+ icon: /* @__PURE__ */ i(Un, {}),
1980
1983
  size: "small",
1981
1984
  onClick: (w) => {
1982
1985
  w.stopPropagation(), r == null || r();
@@ -1990,7 +1993,7 @@ const co = T.div`
1990
1993
  )
1991
1994
  }
1992
1995
  );
1993
- }, ca = (e) => {
1996
+ }, ua = (e) => {
1994
1997
  const {
1995
1998
  appliedFilters: n = [],
1996
1999
  onClear: t,
@@ -1998,33 +2001,33 @@ const co = T.div`
1998
2001
  noFiltersLabel: r,
1999
2002
  titleClearFilter: a,
2000
2003
  titleFilter: s
2001
- } = e, c = ue(null), l = ue(null), d = ue(null), {
2004
+ } = e, c = ge(null), l = ge(null), d = ge(null), {
2002
2005
  visible: g,
2003
2006
  hidden: u,
2004
2007
  showOverflowIndicator: p,
2005
2008
  measurementRef: f
2006
- } = so(c, n), [m, v] = P(!1), D = (S) => {
2007
- S.stopPropagation(), v((I) => !I);
2009
+ } = co(c, n), [m, v] = P(!1), D = (S) => {
2010
+ S.stopPropagation(), v(($) => !$);
2008
2011
  };
2009
2012
  te(() => {
2010
- const S = (I) => {
2013
+ const S = ($) => {
2011
2014
  var Ke, Je;
2012
- const B = I.target;
2013
- !((Ke = l.current) != null && Ke.contains(B)) && !((Je = d.current) != null && Je.contains(B)) && v(!1);
2015
+ const Y = $.target;
2016
+ !((Ke = l.current) != null && Ke.contains(Y)) && !((Je = d.current) != null && Je.contains(Y)) && v(!1);
2014
2017
  };
2015
2018
  return m && window.addEventListener("mousedown", S), () => window.removeEventListener("mousedown", S);
2016
2019
  }, [m]);
2017
- const y = n.length === 0, w = m && u.length > 0, N = u.map((S) => ({
2020
+ const y = n.length === 0, w = m && u.length > 0, E = u.map((S) => ({
2018
2021
  id: S.label,
2019
2022
  value: S.label,
2020
2023
  label: S.label,
2021
2024
  icon: S.icon
2022
2025
  })), A = (S) => {
2023
- var I, B;
2024
- (B = (I = u.find(($) => $.label === S)) == null ? void 0 : I.onClose) == null || B.call(I), v(!1);
2026
+ var $, Y;
2027
+ (Y = ($ = u.find((I) => I.label === S)) == null ? void 0 : $.onClose) == null || Y.call($), v(!1);
2025
2028
  };
2026
- return /* @__PURE__ */ b(lo, { borderRadius: "8px", width: "100%", children: [
2027
- /* @__PURE__ */ i(uo, { ref: f, children: n.map((S) => /* @__PURE__ */ i("div", { "data-filter-tag": "true", children: /* @__PURE__ */ i(
2029
+ return /* @__PURE__ */ b(so, { borderRadius: "8px", width: "100%", children: [
2030
+ /* @__PURE__ */ i(go, { ref: f, children: n.map((S) => /* @__PURE__ */ i("div", { "data-filter-tag": "true", children: /* @__PURE__ */ i(
2028
2031
  ce,
2029
2032
  {
2030
2033
  appearance: "primary",
@@ -2035,9 +2038,9 @@ const co = T.div`
2035
2038
  onClose: S.onClose
2036
2039
  }
2037
2040
  ) }, S.label)) }),
2038
- /* @__PURE__ */ b(Ne, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
2041
+ /* @__PURE__ */ b(Ce, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
2039
2042
  /* @__PURE__ */ i(
2040
- j,
2043
+ U,
2041
2044
  {
2042
2045
  ref: c,
2043
2046
  background: !0,
@@ -2048,7 +2051,7 @@ const co = T.div`
2048
2051
  alignItems: "center",
2049
2052
  padding: "0px 8px",
2050
2053
  border: !0,
2051
- children: y ? /* @__PURE__ */ i(E, { size: "small", type: "label", appearance: "gray", children: r }) : /* @__PURE__ */ b(R, { children: [
2054
+ children: y ? /* @__PURE__ */ i(N, { size: "small", type: "label", appearance: "gray", children: r }) : /* @__PURE__ */ b(R, { children: [
2052
2055
  g.map((S) => /* @__PURE__ */ i(
2053
2056
  ce,
2054
2057
  {
@@ -2068,27 +2071,27 @@ const co = T.div`
2068
2071
  ref: d,
2069
2072
  style: { position: "relative", display: "inline-block" },
2070
2073
  children: [
2071
- /* @__PURE__ */ i(go, { onClick: D, children: /* @__PURE__ */ i(
2074
+ /* @__PURE__ */ i(po, { onClick: D, children: /* @__PURE__ */ i(
2072
2075
  ce,
2073
2076
  {
2074
2077
  appearance: "primary",
2075
2078
  label: `+${u.length}`
2076
2079
  }
2077
2080
  ) }),
2078
- w && /* @__PURE__ */ i(co, { ref: l, children: /* @__PURE__ */ i(
2079
- Wn,
2081
+ w && /* @__PURE__ */ i(uo, { ref: l, children: /* @__PURE__ */ i(
2082
+ Gn,
2080
2083
  {
2081
- options: N,
2084
+ options: E,
2082
2085
  onOptionClick: A,
2083
2086
  children: u.map((S) => /* @__PURE__ */ i(
2084
- ho,
2087
+ fo,
2085
2088
  {
2086
2089
  id: S.label,
2087
2090
  label: S.label,
2088
2091
  leadingIcon: S.icon,
2089
2092
  onClose: () => {
2090
- var I;
2091
- (I = S.onClose) == null || I.call(S), v(!1);
2093
+ var $;
2094
+ ($ = S.onClose) == null || $.call(S), v(!1);
2092
2095
  }
2093
2096
  },
2094
2097
  S.label
@@ -2102,7 +2105,7 @@ const co = T.div`
2102
2105
  }
2103
2106
  ),
2104
2107
  /* @__PURE__ */ i(
2105
- H,
2108
+ j,
2106
2109
  {
2107
2110
  cursorHover: !0,
2108
2111
  disabled: y,
@@ -2113,7 +2116,7 @@ const co = T.div`
2113
2116
  }
2114
2117
  ),
2115
2118
  /* @__PURE__ */ i(
2116
- H,
2119
+ j,
2117
2120
  {
2118
2121
  cursorHover: !0,
2119
2122
  iconBefore: /* @__PURE__ */ i(vn, {}),
@@ -2124,7 +2127,7 @@ const co = T.div`
2124
2127
  )
2125
2128
  ] })
2126
2129
  ] });
2127
- }, fo = T.div`
2130
+ }, mo = T.div`
2128
2131
  display: flex;
2129
2132
  flex-direction: column;
2130
2133
  background-color: ${({ theme: e }) => {
@@ -2137,7 +2140,7 @@ const co = T.div`
2137
2140
  padding: 24px;
2138
2141
  gap: 24px;
2139
2142
  box-sizing: border-box;
2140
- `, ua = (e) => {
2143
+ `, ga = (e) => {
2141
2144
  const {
2142
2145
  actionButtonLabel: n,
2143
2146
  cancelButtonLabel: t,
@@ -2153,29 +2156,29 @@ const co = T.div`
2153
2156
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
2154
2157
  );
2155
2158
  return Xe(
2156
- /* @__PURE__ */ i(Ye, { children: /* @__PURE__ */ b(fo, { $smallScreen: d, children: [
2159
+ /* @__PURE__ */ i(Ye, { children: /* @__PURE__ */ b(mo, { $smallScreen: d, children: [
2157
2160
  /* @__PURE__ */ b(x, { direction: "column", gap: "16px", children: [
2158
2161
  /* @__PURE__ */ b(x, { alignContent: "center", justifyContent: "space-between", children: [
2159
- /* @__PURE__ */ i(E, { appearance: "dark", size: "small", type: "headline", children: l }),
2162
+ /* @__PURE__ */ i(N, { appearance: "dark", size: "small", type: "headline", children: l }),
2160
2163
  /* @__PURE__ */ b(x, { alignItems: "center", children: [
2161
- /* @__PURE__ */ i(E, { children: "Cerrar" }),
2164
+ /* @__PURE__ */ i(N, { children: "Cerrar" }),
2162
2165
  /* @__PURE__ */ i(
2163
- O,
2166
+ L,
2164
2167
  {
2165
2168
  appearance: "dark",
2166
- icon: /* @__PURE__ */ i(qe, {}),
2169
+ icon: /* @__PURE__ */ i(Be, {}),
2167
2170
  onClick: s,
2168
2171
  cursorHover: !0
2169
2172
  }
2170
2173
  )
2171
2174
  ] })
2172
2175
  ] }),
2173
- /* @__PURE__ */ i(q, {})
2176
+ /* @__PURE__ */ i(B, {})
2174
2177
  ] }),
2175
2178
  o,
2176
2179
  /* @__PURE__ */ b(x, { gap: "20px", justifyContent: "flex-end", children: [
2177
2180
  /* @__PURE__ */ i(
2178
- H,
2181
+ j,
2179
2182
  {
2180
2183
  appearance: "gray",
2181
2184
  onClick: s,
@@ -2186,7 +2189,7 @@ const co = T.div`
2186
2189
  }
2187
2190
  ),
2188
2191
  /* @__PURE__ */ i(
2189
- H,
2192
+ j,
2190
2193
  {
2191
2194
  appearance: "primary",
2192
2195
  loading: r,
@@ -2200,14 +2203,14 @@ const co = T.div`
2200
2203
  ] }) }),
2201
2204
  g
2202
2205
  );
2203
- }, ga = (e) => {
2206
+ }, pa = (e) => {
2204
2207
  const { appliedFilters: n, fields: t, onChange: o, noFiltersLabel: r } = e, a = X("(max-width: 768px)"), s = !n || n.length === 0;
2205
2208
  return /* @__PURE__ */ b(x, { direction: "column", gap: "16px", children: [
2206
2209
  a && /* @__PURE__ */ b(R, { children: [
2207
2210
  /* @__PURE__ */ b(x, { gap: "6px", width: "100%", alignItems: "center", children: [
2208
- /* @__PURE__ */ i(O, { appearance: "gray", icon: /* @__PURE__ */ i(vn, {}) }),
2211
+ /* @__PURE__ */ i(L, { appearance: "gray", icon: /* @__PURE__ */ i(vn, {}) }),
2209
2212
  /* @__PURE__ */ i(
2210
- j,
2213
+ U,
2211
2214
  {
2212
2215
  background: !0,
2213
2216
  borderRadius: "8px",
@@ -2218,7 +2221,7 @@ const co = T.div`
2218
2221
  border: !0,
2219
2222
  width: "100%",
2220
2223
  height: "36px",
2221
- children: s ? /* @__PURE__ */ i(E, { size: "small", type: "label", appearance: "gray", children: r }) : n == null ? void 0 : n.map((c) => /* @__PURE__ */ i(
2224
+ children: s ? /* @__PURE__ */ i(N, { size: "small", type: "label", appearance: "gray", children: r }) : n == null ? void 0 : n.map((c) => /* @__PURE__ */ i(
2222
2225
  ce,
2223
2226
  {
2224
2227
  appearance: "primary",
@@ -2233,12 +2236,12 @@ const co = T.div`
2233
2236
  }
2234
2237
  )
2235
2238
  ] }),
2236
- /* @__PURE__ */ i(q, { dashed: !0 })
2239
+ /* @__PURE__ */ i(B, { dashed: !0 })
2237
2240
  ] }),
2238
2241
  t.map((c) => /* @__PURE__ */ b(x, { gap: "6px", alignItems: "center", children: [
2239
- /* @__PURE__ */ i(x, { padding: "22px 0 0 0", children: /* @__PURE__ */ i(O, { appearance: "primary", icon: c.icon }) }),
2242
+ /* @__PURE__ */ i(x, { padding: "22px 0 0 0", children: /* @__PURE__ */ i(L, { appearance: "primary", icon: c.icon }) }),
2240
2243
  /* @__PURE__ */ i(
2241
- Gn,
2244
+ Zn,
2242
2245
  {
2243
2246
  disabled: c.disabled,
2244
2247
  invalid: c.invalid,
@@ -2256,12 +2259,12 @@ const co = T.div`
2256
2259
  )
2257
2260
  ] }, c.name))
2258
2261
  ] });
2259
- }, mo = (e) => {
2262
+ }, bo = (e) => {
2260
2263
  const n = [];
2261
2264
  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(";");
2262
- }, pa = (e) => {
2265
+ }, ha = (e) => {
2263
2266
  var s;
2264
- const { decision: n, fallbackId: t, template: o } = e, r = (c) => typeof c == "object" && c !== null && "from" in c && "to" in c ? mo(c) : c, a = ((s = n.conditionsThatEstablishesTheDecision) == null ? void 0 : s.map((c, l) => {
2267
+ const { decision: n, fallbackId: t, template: o } = e, r = (c) => typeof c == "object" && c !== null && "from" in c && "to" in c ? bo(c) : c, a = ((s = n.conditionsThatEstablishesTheDecision) == null ? void 0 : s.map((c, l) => {
2265
2268
  var u;
2266
2269
  const d = c == null ? void 0 : c.value;
2267
2270
  return d == null || typeof d == "string" && d.trim() === "" || Array.isArray(d) && d.length === 0 ? null : {
@@ -2277,7 +2280,7 @@ const co = T.div`
2277
2280
  value: r(n.value),
2278
2281
  conditionsThatEstablishesTheDecision: a
2279
2282
  };
2280
- }, ha = (e) => {
2283
+ }, fa = (e) => {
2281
2284
  if (typeof e != "string") return e;
2282
2285
  const n = e.split(";").map((o) => o.trim()), t = {};
2283
2286
  for (const o of n)
@@ -2289,7 +2292,7 @@ const co = T.div`
2289
2292
  isNaN(r) || (t.to = r);
2290
2293
  }
2291
2294
  return t.from !== void 0 || t.to !== void 0 ? t : e;
2292
- }, fa = (e) => {
2295
+ }, ma = (e) => {
2293
2296
  const { dataDecision: n, originalDecision: t } = e, o = {
2294
2297
  conditionName: n.ruleName || "",
2295
2298
  labelName: n.labelName || "",
@@ -2305,7 +2308,7 @@ const co = T.div`
2305
2308
  (r) => r.hidden ? { ...o } : r
2306
2309
  )
2307
2310
  };
2308
- }, ma = (e) => {
2311
+ }, ba = (e) => {
2309
2312
  const { decisions: n } = e;
2310
2313
  return n == null ? void 0 : n.map((t) => {
2311
2314
  var r;
@@ -2324,15 +2327,15 @@ const co = T.div`
2324
2327
  )
2325
2328
  } : t;
2326
2329
  });
2327
- }, bo = (e) => ({
2330
+ }, vo = (e) => ({
2328
2331
  schema: le().required("Requerido").test(
2329
2332
  "non-empty",
2330
2333
  "El valor no puede estar vacío",
2331
2334
  (n) => n != null && n.trim() !== ""
2332
2335
  ),
2333
2336
  value: e
2334
- }), vo = (e) => ({
2335
- schema: ke().test(
2337
+ }), xo = (e) => ({
2338
+ schema: Ee().test(
2336
2339
  "isArrayOrString",
2337
2340
  "Debe ser un array de strings/numbers o un solo string",
2338
2341
  (n) => Array.isArray(n) ? n.every(
@@ -2340,8 +2343,8 @@ const co = T.div`
2340
2343
  ) : typeof n == "string"
2341
2344
  ),
2342
2345
  value: e
2343
- }), xo = (e) => ({
2344
- schema: ke().test(
2346
+ }), Do = (e) => ({
2347
+ schema: Ee().test(
2345
2348
  "isArrayOrString",
2346
2349
  "Debe ser un array de strings/numbers o un solo string ",
2347
2350
  (n) => Array.isArray(n) ? n.every(
@@ -2349,7 +2352,7 @@ const co = T.div`
2349
2352
  ) : typeof n == "string"
2350
2353
  ),
2351
2354
  value: e
2352
- }), Do = (e) => {
2355
+ }), yo = (e) => {
2353
2356
  const n = (e == null ? void 0 : e.from) ?? 0, t = (e == null ? void 0 : e.to) ?? 0;
2354
2357
  return {
2355
2358
  schema: Z({
@@ -2365,28 +2368,28 @@ const co = T.div`
2365
2368
  }),
2366
2369
  value: { from: n, to: t }
2367
2370
  };
2368
- }, Me = (e, n) => n === U.PERCENTAGE ? {
2371
+ }, Le = (e, n) => n === _.PERCENTAGE ? {
2369
2372
  schema: ae().required("El campo tipo porcentaje es requerido").min(0, "El campo tipo porcentaje no puede ser menor que 0").max(100, "El campo tipo porcentaje no puede ser mayor que 100"),
2370
2373
  value: e
2371
2374
  } : {
2372
2375
  schema: le().required("Requerido"),
2373
2376
  value: e
2374
- }, yo = {
2375
- [k.LIST_OF_VALUES]: vo,
2376
- [k.LIST_OF_VALUES_MULTI]: xo,
2377
- [k.RANGE]: Do,
2378
- [k.GREATER_THAN]: Me,
2379
- [k.LESS_THAN]: Me,
2380
- [k.EQUAL]: Me
2381
- }, rn = (e) => yo[e] || bo;
2382
- function To({
2377
+ }, To = {
2378
+ [k.LIST_OF_VALUES]: xo,
2379
+ [k.LIST_OF_VALUES_MULTI]: Do,
2380
+ [k.RANGE]: yo,
2381
+ [k.GREATER_THAN]: Le,
2382
+ [k.LESS_THAN]: Le,
2383
+ [k.EQUAL]: Le
2384
+ }, rn = (e) => To[e] || vo;
2385
+ function wo({
2383
2386
  decision: e,
2384
2387
  onSubmitEvent: n,
2385
2388
  textValues: t
2386
2389
  }) {
2387
2390
  const o = {
2388
2391
  ruleName: e.ruleName || "",
2389
- decisionDataType: e.decisionDataType || U.ALPHABETICAL,
2392
+ decisionDataType: e.decisionDataType || _.ALPHABETICAL,
2390
2393
  howToSetTheDecision: e.howToSetTheDecision || "",
2391
2394
  value: e.value || "",
2392
2395
  effectiveFrom: e.effectiveFrom || "",
@@ -2519,7 +2522,7 @@ function To({
2519
2522
  });
2520
2523
  } };
2521
2524
  }
2522
- const wo = T.div`
2525
+ const So = T.div`
2523
2526
  & > div {
2524
2527
  border-radius: 8px;
2525
2528
  border: 1px solid
@@ -2528,7 +2531,7 @@ const wo = T.div`
2528
2531
  return ((t = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.neutral) == null ? void 0 : t.N30) || C.palette.neutral.N30;
2529
2532
  }};
2530
2533
  }
2531
- `, So = T.div`
2534
+ `, Co = T.div`
2532
2535
  width: 100%;
2533
2536
  height: 100%;
2534
2537
  overflow-y: auto;
@@ -2545,7 +2548,7 @@ const wo = T.div`
2545
2548
  background-color: #ebecf0;
2546
2549
  border-radius: 8px;
2547
2550
  }
2548
- `, Co = (e) => {
2551
+ `, No = (e) => {
2549
2552
  const {
2550
2553
  checked: n,
2551
2554
  children: t,
@@ -2561,7 +2564,7 @@ const wo = T.div`
2561
2564
  d(n);
2562
2565
  }, [n]), /* @__PURE__ */ b(R, { children: [
2563
2566
  /* @__PURE__ */ i(x, { children: /* @__PURE__ */ i(
2564
- Ee,
2567
+ Ne,
2565
2568
  {
2566
2569
  checked: l,
2567
2570
  id: r,
@@ -2569,12 +2572,12 @@ const wo = T.div`
2569
2572
  onChange: g,
2570
2573
  size: "small",
2571
2574
  value: c,
2572
- children: /* @__PURE__ */ i(E, { size: "medium", type: "label", weight: "bold", children: a })
2575
+ children: /* @__PURE__ */ i(N, { size: "medium", type: "label", weight: "bold", children: a })
2573
2576
  }
2574
2577
  ) }),
2575
2578
  l && /* @__PURE__ */ i(R, { children: t })
2576
2579
  ] });
2577
- }, No = (e) => {
2580
+ }, Eo = (e) => {
2578
2581
  const {
2579
2582
  onHandleStartChange: n,
2580
2583
  onHandleEndChange: t,
@@ -2589,17 +2592,17 @@ const wo = T.div`
2589
2592
  messageEnd: u = "",
2590
2593
  statusStart: p = "pending",
2591
2594
  statusEnd: f = "pending"
2592
- } = e, [m, v] = P(s), [D, y] = P(l), [w, N] = P(d), A = ({ target: $ }) => {
2593
- v($.checked), o && o($.checked);
2594
- }, S = ($) => {
2595
- y($.target.value), n($);
2596
- }, I = ($) => {
2597
- N($.target.value), t($);
2598
- }, B = X("(max-width: 400px)");
2595
+ } = e, [m, v] = P(s), [D, y] = P(l), [w, E] = P(d), A = ({ target: I }) => {
2596
+ v(I.checked), o && o(I.checked);
2597
+ }, S = (I) => {
2598
+ y(I.target.value), n(I);
2599
+ }, $ = (I) => {
2600
+ E(I.target.value), t(I);
2601
+ }, Y = X("(max-width: 400px)");
2599
2602
  return /* @__PURE__ */ b(R, { children: [
2600
2603
  /* @__PURE__ */ b(x, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
2601
2604
  /* @__PURE__ */ i(
2602
- E,
2605
+ N,
2603
2606
  {
2604
2607
  appearance: "gray",
2605
2608
  margin: "10px 0",
@@ -2631,7 +2634,7 @@ const wo = T.div`
2631
2634
  /* @__PURE__ */ b(
2632
2635
  x,
2633
2636
  {
2634
- direction: B ? "column" : "row",
2637
+ direction: Y ? "column" : "row",
2635
2638
  justifyContent: "space-between",
2636
2639
  gap: "24px",
2637
2640
  children: [
@@ -2653,7 +2656,7 @@ const wo = T.div`
2653
2656
  {
2654
2657
  id: "dateEnd",
2655
2658
  label: a,
2656
- onChange: I,
2659
+ onChange: $,
2657
2660
  value: w,
2658
2661
  required: c,
2659
2662
  size: "compact",
@@ -2665,7 +2668,7 @@ const wo = T.div`
2665
2668
  }
2666
2669
  )
2667
2670
  ] });
2668
- }, Eo = (e) => {
2671
+ }, ko = (e) => {
2669
2672
  const {
2670
2673
  formik: n,
2671
2674
  textValues: t,
@@ -2684,8 +2687,8 @@ const wo = T.div`
2684
2687
  formik: n,
2685
2688
  isDecision: !0
2686
2689
  }),
2687
- /* @__PURE__ */ i(q, { dashed: !0 }),
2688
- /* @__PURE__ */ i(wo, { children: /* @__PURE__ */ i(So, { children: /* @__PURE__ */ b(
2690
+ /* @__PURE__ */ i(B, { dashed: !0 }),
2691
+ /* @__PURE__ */ i(So, { children: /* @__PURE__ */ i(Co, { children: /* @__PURE__ */ b(
2689
2692
  x,
2690
2693
  {
2691
2694
  direction: "column",
@@ -2700,22 +2703,22 @@ const wo = T.div`
2700
2703
  alignItems: "center",
2701
2704
  gap: "64px",
2702
2705
  children: [
2703
- /* @__PURE__ */ i(E, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
2706
+ /* @__PURE__ */ i(N, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
2704
2707
  /* @__PURE__ */ i(
2705
- Ee,
2708
+ Ne,
2706
2709
  {
2707
2710
  id: "toggleNone",
2708
2711
  onChange: () => s(!n.values.toggleNone),
2709
2712
  checked: n.values.toggleNone,
2710
2713
  size: "small",
2711
- children: /* @__PURE__ */ i(E, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
2714
+ children: /* @__PURE__ */ i(N, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
2712
2715
  }
2713
2716
  )
2714
2717
  ]
2715
2718
  }
2716
2719
  ),
2717
2720
  /* @__PURE__ */ i(x, { direction: "column", gap: "20px", children: r == null ? void 0 : r.map((u) => /* @__PURE__ */ i(
2718
- Co,
2721
+ No,
2719
2722
  {
2720
2723
  id: `toggle-${u.conditionName}`,
2721
2724
  name: `toggle.${u.conditionName}`,
@@ -2733,9 +2736,9 @@ const wo = T.div`
2733
2736
  }
2734
2737
  ) }) }),
2735
2738
  t.terms && /* @__PURE__ */ b(R, { children: [
2736
- /* @__PURE__ */ i(q, { dashed: !0 }),
2739
+ /* @__PURE__ */ i(B, { dashed: !0 }),
2737
2740
  /* @__PURE__ */ i(
2738
- No,
2741
+ Eo,
2739
2742
  {
2740
2743
  labelStart: t.termStart,
2741
2744
  labelEnd: t.termEnd,
@@ -2754,16 +2757,16 @@ const wo = T.div`
2754
2757
  }
2755
2758
  )
2756
2759
  ] }),
2757
- /* @__PURE__ */ i(q, {}),
2758
- l && /* @__PURE__ */ i(E, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
2760
+ /* @__PURE__ */ i(B, {}),
2761
+ l && /* @__PURE__ */ i(N, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
2759
2762
  /* @__PURE__ */ b(x, { direction: "row", justifyContent: "end", gap: "16px", children: [
2760
- /* @__PURE__ */ i(H, { appearance: "gray", onClick: o, children: t.cancel }),
2761
- /* @__PURE__ */ i(H, { type: "submit", children: t.confirm })
2763
+ /* @__PURE__ */ i(j, { appearance: "gray", onClick: o, children: t.cancel }),
2764
+ /* @__PURE__ */ i(j, { type: "submit", children: t.confirm })
2762
2765
  ] })
2763
2766
  ] }) });
2764
- }, ko = (e) => {
2767
+ }, Ao = (e) => {
2765
2768
  var f;
2766
- const { decision: n, onSubmitEvent: t, textValues: o, onCancel: r } = e, { formik: a, handleToggleNoneChange: s } = To({
2769
+ const { decision: n, onSubmitEvent: t, textValues: o, onCancel: r } = e, { formik: a, handleToggleNoneChange: s } = wo({
2767
2770
  decision: n,
2768
2771
  onSubmitEvent: t,
2769
2772
  textValues: o
@@ -2777,7 +2780,7 @@ const wo = T.div`
2777
2780
  (m) => !m.hidden
2778
2781
  )) || [], d = !!a.errors.conditionsThatEstablishesTheDecision && a.submitCount > 0, g = a.touched.effectiveFrom ? a.errors.effectiveFrom ? "invalid" : "valid" : void 0, u = a.touched.validUntil ? a.errors.validUntil ? "invalid" : "valid" : void 0;
2779
2782
  return /* @__PURE__ */ i(
2780
- Eo,
2783
+ ko,
2781
2784
  {
2782
2785
  formik: a,
2783
2786
  onCancel: r,
@@ -2809,7 +2812,7 @@ const wo = T.div`
2809
2812
  termEndStatus: u
2810
2813
  }
2811
2814
  );
2812
- }, ba = (e) => {
2815
+ }, va = (e) => {
2813
2816
  var r;
2814
2817
  const { decisionTemplate: n } = e, t = { ...n }, o = (r = t.conditionsThatEstablishesTheDecision) == null ? void 0 : r.find(
2815
2818
  (a) => a.switchPlaces
@@ -2825,7 +2828,7 @@ const wo = T.div`
2825
2828
  (a) => a.conditionName === o.conditionName ? { ...a, hidden: !0 } : a
2826
2829
  )
2827
2830
  } : t;
2828
- }, va = (e) => {
2831
+ }, xa = (e) => {
2829
2832
  const { decisions: n } = e;
2830
2833
  return n == null ? void 0 : n.map((t) => {
2831
2834
  var r;
@@ -2861,7 +2864,7 @@ const wo = T.div`
2861
2864
  color: C.palette.neutral.N0
2862
2865
  }
2863
2866
  }
2864
- }, Ao = T.div`
2867
+ }, Io = T.div`
2865
2868
  & > div {
2866
2869
  border: 1px solid
2867
2870
  ${({ theme: e, $active: n }) => {
@@ -2884,20 +2887,20 @@ const wo = T.div`
2884
2887
  width: 100%;
2885
2888
  outline: none;
2886
2889
  cursor: pointer;
2887
- `, Io = T.div`
2890
+ `, $o = T.div`
2888
2891
  display: flex;
2889
2892
  align-items: center;
2890
2893
  outline: none;
2891
2894
  cursor: pointer;
2892
- `, $o = T(Tn)`
2895
+ `, Fo = T(Tn)`
2893
2896
  display: flex;
2894
2897
  align-items: center;
2895
2898
  text-decoration: none;
2896
- `, Fo = T(Tn)`
2899
+ `, Po = T(Tn)`
2897
2900
  display: block;
2898
2901
  text-decoration: none;
2899
2902
  color: inherit;
2900
- `, Po = T.div`
2903
+ `, Ro = T.div`
2901
2904
  & > div {
2902
2905
  border-bottom: 1px solid
2903
2906
  ${({ theme: e, $active: n }) => {
@@ -2924,14 +2927,14 @@ const wo = T.div`
2924
2927
  return ((a = (r = (o = n == null ? void 0 : n.menu) == null ? void 0 : o.item) == null ? void 0 : r.background) == null ? void 0 : a.hover) || Q.item.background.hover;
2925
2928
  }};
2926
2929
  }
2927
- `, Ro = T.div`
2930
+ `, Lo = T.div`
2928
2931
  display: flex;
2929
2932
  flex-direction: column;
2930
2933
 
2931
2934
  & > a:last-child ${Nn} {
2932
2935
  border-radius: 0 0 8px 8px;
2933
2936
  }
2934
- `, Lo = (e) => {
2937
+ `, Mo = (e) => {
2935
2938
  const { isOpen: n, links: t, onClick: o, title: r, activeId: a, headerPath: s, headerActive: c } = e, l = (m) => {
2936
2939
  (m.key === "Enter" || m.key === " ") && (m.preventDefault(), o());
2937
2940
  }, d = (m) => {
@@ -2939,17 +2942,17 @@ const wo = T.div`
2939
2942
  }, g = (m) => {
2940
2943
  (m.key === "Enter" || m.key === " ") && (m.preventDefault(), m.stopPropagation(), o());
2941
2944
  }, u = n || c ? "primary" : "dark", p = n || c ? "bold" : "normal", f = z.useId();
2942
- return /* @__PURE__ */ i(Ao, { $active: n, children: /* @__PURE__ */ b(j, { border: !0, borderRadius: "8px", width: "100%", children: [
2945
+ return /* @__PURE__ */ i(Io, { $active: n, children: /* @__PURE__ */ b(U, { border: !0, borderRadius: "8px", width: "100%", children: [
2943
2946
  /* @__PURE__ */ i(
2944
- Po,
2947
+ Ro,
2945
2948
  {
2946
2949
  $active: n && t.length > 0,
2947
2950
  "aria-controls": f,
2948
2951
  "aria-expanded": n,
2949
2952
  onClick: d,
2950
2953
  onKeyDown: g,
2951
- children: s ? /* @__PURE__ */ i($o, { to: s, children: /* @__PURE__ */ b(
2952
- j,
2954
+ children: s ? /* @__PURE__ */ i(Fo, { to: s, children: /* @__PURE__ */ b(
2955
+ U,
2953
2956
  {
2954
2957
  alignItems: "center",
2955
2958
  borderRadius: "8px",
@@ -2958,15 +2961,15 @@ const wo = T.div`
2958
2961
  padding: "12px 8px",
2959
2962
  children: [
2960
2963
  /* @__PURE__ */ i(
2961
- O,
2964
+ L,
2962
2965
  {
2963
2966
  appearance: u,
2964
2967
  cursorHover: !0,
2965
- icon: n && t.length > 0 ? /* @__PURE__ */ i(ze, {}) : /* @__PURE__ */ i(en, {})
2968
+ icon: n && t.length > 0 ? /* @__PURE__ */ i(Ve, {}) : /* @__PURE__ */ i(en, {})
2966
2969
  }
2967
2970
  ),
2968
2971
  /* @__PURE__ */ i(an, { children: /* @__PURE__ */ i(
2969
- E,
2972
+ N,
2970
2973
  {
2971
2974
  appearance: u,
2972
2975
  cursorHover: !0,
@@ -2979,7 +2982,7 @@ const wo = T.div`
2979
2982
  ]
2980
2983
  }
2981
2984
  ) }) : /* @__PURE__ */ b(
2982
- j,
2985
+ U,
2983
2986
  {
2984
2987
  alignItems: "center",
2985
2988
  borderRadius: "8px",
@@ -2988,22 +2991,22 @@ const wo = T.div`
2988
2991
  padding: "12px 8px",
2989
2992
  children: [
2990
2993
  /* @__PURE__ */ i(
2991
- O,
2994
+ L,
2992
2995
  {
2993
2996
  appearance: u,
2994
2997
  cursorHover: !0,
2995
- icon: n && t.length > 0 ? /* @__PURE__ */ i(ze, {}) : /* @__PURE__ */ i(en, {})
2998
+ icon: n && t.length > 0 ? /* @__PURE__ */ i(Ve, {}) : /* @__PURE__ */ i(en, {})
2996
2999
  }
2997
3000
  ),
2998
3001
  /* @__PURE__ */ i(an, { children: /* @__PURE__ */ i(
2999
- Io,
3002
+ $o,
3000
3003
  {
3001
3004
  "aria-controls": f,
3002
3005
  "aria-expanded": n,
3003
3006
  onClick: o,
3004
3007
  onKeyDown: l,
3005
3008
  children: /* @__PURE__ */ i(
3006
- E,
3009
+ N,
3007
3010
  {
3008
3011
  appearance: u,
3009
3012
  cursorHover: !0,
@@ -3020,9 +3023,9 @@ const wo = T.div`
3020
3023
  )
3021
3024
  }
3022
3025
  ),
3023
- n && t.length > 0 && /* @__PURE__ */ i(Ro, { id: f, children: t.map((m) => {
3026
+ n && t.length > 0 && /* @__PURE__ */ i(Lo, { id: f, children: t.map((m) => {
3024
3027
  const v = m.id === a;
3025
- return /* @__PURE__ */ i(Fo, { to: m.path, children: /* @__PURE__ */ i(Nn, { $active: v, children: /* @__PURE__ */ b(
3028
+ return /* @__PURE__ */ i(Po, { to: m.path, children: /* @__PURE__ */ i(Nn, { $active: v, children: /* @__PURE__ */ b(
3026
3029
  x,
3027
3030
  {
3028
3031
  alignItems: "center",
@@ -3030,9 +3033,9 @@ const wo = T.div`
3030
3033
  gap: "8px",
3031
3034
  padding: v ? "8px 4px" : "8px 32px",
3032
3035
  children: [
3033
- v && /* @__PURE__ */ i(O, { appearance: "primary", icon: /* @__PURE__ */ i(Un, {}) }),
3036
+ v && /* @__PURE__ */ i(L, { appearance: "primary", icon: /* @__PURE__ */ i(jn, {}) }),
3034
3037
  /* @__PURE__ */ i(
3035
- E,
3038
+ N,
3036
3039
  {
3037
3040
  appearance: v ? "primary" : "dark",
3038
3041
  size: "small",
@@ -3046,7 +3049,7 @@ const wo = T.div`
3046
3049
  ) }) }, m.id);
3047
3050
  }) })
3048
3051
  ] }) });
3049
- }, Mo = T.div`
3052
+ }, Oo = T.div`
3050
3053
  & > div {
3051
3054
  background: ${({ $background: e, theme: n }) => {
3052
3055
  var t, o, r, a;
@@ -3054,8 +3057,8 @@ const wo = T.div`
3054
3057
  }};
3055
3058
  }
3056
3059
  height: 90vh;
3057
- `, xa = (e) => {
3058
- const { collapseOnNavigate: n = !1, defaultOpenId: t = null, groups: o } = e, [r, a] = z.useState(t), s = Kn();
3060
+ `, Da = (e) => {
3061
+ const { collapseOnNavigate: n = !1, defaultOpenId: t = null, groups: o } = e, [r, a] = z.useState(t), s = Jn();
3059
3062
  z.useEffect(() => {
3060
3063
  n && a(null);
3061
3064
  }, [n, s.pathname]);
@@ -3069,8 +3072,8 @@ const wo = T.div`
3069
3072
  (d) => d ? s.pathname === d || s.pathname.startsWith(d + "/") : !1,
3070
3073
  [s.pathname]
3071
3074
  );
3072
- return /* @__PURE__ */ i(Mo, { $background: !0, children: /* @__PURE__ */ i(x, { direction: "column", gap: "8px", padding: "12px", height: "100%", children: o.map((d) => /* @__PURE__ */ i(
3073
- Lo,
3075
+ return /* @__PURE__ */ i(Oo, { $background: !0, children: /* @__PURE__ */ i(x, { direction: "column", gap: "8px", padding: "12px", height: "100%", children: o.map((d) => /* @__PURE__ */ i(
3076
+ Mo,
3074
3077
  {
3075
3078
  activeId: c(d.links),
3076
3079
  headerPath: d.path,
@@ -3083,7 +3086,7 @@ const wo = T.div`
3083
3086
  d.id
3084
3087
  )) }) });
3085
3088
  };
3086
- function L(e) {
3089
+ function M(e) {
3087
3090
  e.preventDefault();
3088
3091
  }
3089
3092
  function ee(e) {
@@ -3101,24 +3104,24 @@ function En() {
3101
3104
  }];
3102
3105
  }
3103
3106
  var [kn, An] = En();
3104
- function Oo(e, n) {
3107
+ function Vo(e, n) {
3105
3108
  return e.source === n.source && e.flags.split("").sort().join("") === n.flags.split("").sort().join("");
3106
3109
  }
3107
- function he(e, n, t = !0, o = ["__key"]) {
3110
+ function fe(e, n, t = !0, o = ["__key"]) {
3108
3111
  if (e === n) return !0;
3109
3112
  if (typeof n == "object" && typeof e == "object" && e !== null && n !== null) {
3110
3113
  if (e instanceof Map || e instanceof Set) return !1;
3111
3114
  if (e instanceof Date && n instanceof Date)
3112
3115
  return e.getTime() === n.getTime();
3113
3116
  if (e instanceof RegExp && n instanceof RegExp)
3114
- return Oo(e, n);
3117
+ return Vo(e, n);
3115
3118
  if (e === null || n === null) return !1;
3116
3119
  const r = e, a = n;
3117
3120
  if (Object.keys(r).length !== Object.keys(a).length) return !1;
3118
3121
  for (const s of o)
3119
3122
  if ((s in r || s in a) && r[s] !== a[s]) return !1;
3120
3123
  for (const s in r)
3121
- if (!(s in a) || r[s] !== a[s] && !t || t && !he(r[s], a[s], t, o)) return !1;
3124
+ if (!(s in a) || r[s] !== a[s] && !t || t && !fe(r[s], a[s], t, o)) return !1;
3122
3125
  return !0;
3123
3126
  }
3124
3127
  return !1;
@@ -3130,7 +3133,7 @@ function de(e) {
3130
3133
  return { x: e.clientX, y: e.clientY };
3131
3134
  }
3132
3135
  Array();
3133
- var Qe = typeof window < "u", F = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
3136
+ var Qe = typeof window < "u", F = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap();
3134
3137
  function $n() {
3135
3138
  if (!Qe) return !1;
3136
3139
  if ("userAgentData" in navigator)
@@ -3138,7 +3141,7 @@ function $n() {
3138
3141
  const e = navigator.userAgent, n = /android|iphone|ipod/i.test(e), t = /iPad/.test(e) || e.includes("Macintosh") && navigator.maxTouchPoints > 1;
3139
3142
  return n || t;
3140
3143
  }
3141
- var Vo = {
3144
+ var zo = {
3142
3145
  affectedNodes: [],
3143
3146
  coordinates: {
3144
3147
  x: 0,
@@ -3172,8 +3175,8 @@ var Vo = {
3172
3175
  scrollDebounceTimeout: void 0,
3173
3176
  frameIdX: void 0,
3174
3177
  frameIdY: void 0
3175
- }, h = Vo, J = !1, ln, Oe;
3176
- function zo() {
3178
+ }, h = zo, J = !1, ln, Me;
3179
+ function Ho() {
3177
3180
  h.scrollDebounceTimeout && clearTimeout(h.scrollDebounceTimeout), h.longPressTimeout && clearTimeout(h.longPressTimeout), h.frameIdX !== void 0 && cancelAnimationFrame(h.frameIdX), h.frameIdY !== void 0 && cancelAnimationFrame(h.frameIdY), h = { ...{
3178
3181
  affectedNodes: [],
3179
3182
  coordinates: {
@@ -3217,43 +3220,43 @@ function zo() {
3217
3220
  function Fn(e) {
3218
3221
  return Object.assign(h, e), e.initialParent.data.emit("dragStarted", h), J = !1, h.emit("dragStarted", h), h;
3219
3222
  }
3220
- function Ho() {
3223
+ function _o() {
3221
3224
  h.activeState && oe(h.activeState.parent, void 0, h), h.selectedState && ne(h.selectedState.nodes, h.selectedState.parent, h), h.selectedState = h.activeState = void 0;
3222
3225
  }
3223
- function _o() {
3224
- if (h.pointerDown && (h.pointerDown.node.el.draggable = !0), h.pointerDown = void 0, !_(h)) return;
3226
+ function Uo() {
3227
+ if (h.pointerDown && (h.pointerDown.node.el.draggable = !0), h.pointerDown = void 0, !H(h)) return;
3225
3228
  const e = h.currentParent.data.config;
3226
- _(h) && e.handleEnd(h);
3229
+ H(h) && e.handleEnd(h);
3227
3230
  }
3228
- function Uo(e) {
3231
+ function jo(e) {
3229
3232
  e.key === "Escape" && (h.selectedState && ne(h.selectedState.nodes, h.selectedState.parent, h), h.activeState && oe(h.activeState.parent, void 0, h), h.selectedState = h.activeState = void 0);
3230
3233
  }
3231
- function jo(e) {
3232
- if (!M(h)) return;
3234
+ function Bo(e) {
3235
+ if (!O(h)) return;
3233
3236
  J = !0;
3234
3237
  const n = h.initialParent.data.config.handleEnd;
3235
3238
  n(h);
3236
3239
  }
3237
- function Bo(e) {
3238
- if (!M(h)) return;
3239
- L(e);
3240
+ function qo(e) {
3241
+ if (!O(h)) return;
3242
+ M(e);
3240
3243
  const { x: n, y: t } = de(e);
3241
- M(h) && $e({ x: n, y: t }, e, h);
3244
+ O(h) && Ie({ x: n, y: t }, e, h);
3242
3245
  }
3243
- function qo(e) {
3246
+ function Yo(e) {
3244
3247
  if (!h.pointerDown || !h.pointerDown.validated) return;
3245
3248
  const n = h.pointerDown.parent.data.config;
3246
3249
  if (!(e.pointerType === "mouse" && !$n()))
3247
- if (_(h))
3248
- _(h) && dn(e, h);
3250
+ if (H(h))
3251
+ H(h) && dn(e, h);
3249
3252
  else {
3250
- if (L(e), n.longPress && !h.longPress) {
3253
+ if (M(e), n.longPress && !h.longPress) {
3251
3254
  clearTimeout(h.longPressTimeout), h.longPress = !1;
3252
3255
  return;
3253
3256
  }
3254
3257
  const t = n.draggedNodes(h.pointerDown);
3255
3258
  n.dragstartClasses(h.pointerDown.node, t, n, !0);
3256
- const o = h.pointerDown.node.el.getBoundingClientRect(), r = Dr(
3259
+ const o = h.pointerDown.node.el.getBoundingClientRect(), r = yr(
3257
3260
  h.pointerDown.node,
3258
3261
  h.pointerDown.parent,
3259
3262
  e,
@@ -3264,7 +3267,7 @@ function qo(e) {
3264
3267
  dn(e, r, !0);
3265
3268
  }
3266
3269
  }
3267
- function Yo({
3270
+ function Xo({
3268
3271
  parent: e,
3269
3272
  getValues: n,
3270
3273
  setValues: t,
@@ -3273,18 +3276,18 @@ function Yo({
3273
3276
  var l, d, g;
3274
3277
  if (!Qe) return;
3275
3278
  ln || (ln = we(document, {
3276
- dragover: Bo,
3277
- pointerdown: Ho,
3278
- pointerup: _o,
3279
- keydown: Uo,
3280
- drop: jo,
3281
- pointermove: qo,
3279
+ dragover: qo,
3280
+ pointerdown: _o,
3281
+ pointerup: Uo,
3282
+ keydown: jo,
3283
+ drop: Bo,
3284
+ pointermove: Yo,
3282
3285
  pointercancel: V(o.handlePointercancel),
3283
3286
  touchmove: (u) => {
3284
- M(h) && u.cancelable && L(u);
3287
+ O(h) && u.cancelable && M(u);
3285
3288
  },
3286
3289
  contextmenu: (u) => {
3287
- _(h) && L(u);
3290
+ H(h) && M(u);
3288
3291
  }
3289
3292
  })), Rn(e);
3290
3293
  const [r, a] = En(), s = {
@@ -3293,38 +3296,38 @@ function Yo({
3293
3296
  config: {
3294
3297
  dragDropEffect: o.dragDropEffect ?? "move",
3295
3298
  dragEffectAllowed: o.dragEffectAllowed ?? "move",
3296
- draggedNodes: ar,
3297
- dragstartClasses: sr,
3298
- handleNodeKeydown: ur,
3299
- handleDragstart: lr,
3300
- handleNodeDragover: Tr,
3301
- handleParentDragover: wr,
3302
- handleNodeDrop: pr,
3303
- handleNodeFocus: hr,
3304
- handleNodeBlur: fr,
3305
- handlePointercancel: br,
3306
- handleEnd: vr,
3307
- handleDragend: mr,
3308
- handleParentFocus: Wo,
3309
- handleNodePointerup: xr,
3310
- handleNodePointerover: gr,
3311
- handleParentPointerover: Sr,
3312
- handleParentScroll: ir,
3313
- handleNodePointerdown: dr,
3314
- handleNodeDragenter: Nr,
3315
- handleNodeDragleave: Er,
3316
- handleParentDrop: Zo,
3299
+ draggedNodes: ir,
3300
+ dragstartClasses: cr,
3301
+ handleNodeKeydown: gr,
3302
+ handleDragstart: dr,
3303
+ handleNodeDragover: wr,
3304
+ handleParentDragover: Sr,
3305
+ handleNodeDrop: hr,
3306
+ handleNodeFocus: fr,
3307
+ handleNodeBlur: mr,
3308
+ handlePointercancel: vr,
3309
+ handleEnd: xr,
3310
+ handleDragend: br,
3311
+ handleParentFocus: Go,
3312
+ handleNodePointerup: Dr,
3313
+ handleNodePointerover: pr,
3314
+ handleParentPointerover: Cr,
3315
+ handleParentScroll: lr,
3316
+ handleNodePointerdown: sr,
3317
+ handleNodeDragenter: Er,
3318
+ handleNodeDragleave: kr,
3319
+ handleParentDrop: Qo,
3317
3320
  multiDrag: o.multiDrag ?? !1,
3318
3321
  nativeDrag: o.nativeDrag ?? !0,
3319
- performSort: Xo,
3320
- performTransfer: Go,
3322
+ performSort: Wo,
3323
+ performTransfer: Zo,
3321
3324
  root: o.root ?? document,
3322
- setupNode: Ko,
3325
+ setupNode: Jo,
3323
3326
  setupNodeRemap: Ln,
3324
- reapplyDragClasses: Jo,
3325
- tearDownNode: nr,
3326
- tearDownNodeRemap: er,
3327
- remapFinished: or,
3327
+ reapplyDragClasses: er,
3328
+ tearDownNode: tr,
3329
+ tearDownNodeRemap: nr,
3330
+ remapFinished: rr,
3328
3331
  threshold: {
3329
3332
  horizontal: 0,
3330
3333
  vertical: 0
@@ -3337,7 +3340,7 @@ function Yo({
3337
3340
  on: a,
3338
3341
  emit: r
3339
3342
  };
3340
- new MutationObserver(tr).observe(e, { childList: !0 }), F.set(e, s), (l = o.plugins) == null || l.forEach((u) => {
3343
+ new MutationObserver(or).observe(e, { childList: !0 }), F.set(e, s), (l = o.plugins) == null || l.forEach((u) => {
3341
3344
  var p, f;
3342
3345
  (f = (p = u(e)) == null ? void 0 : p.tearDown) == null || f.call(p);
3343
3346
  }), (d = o.plugins) == null || d.forEach((u) => {
@@ -3346,7 +3349,7 @@ function Yo({
3346
3349
  }), (g = o.plugins) == null || g.forEach((u) => {
3347
3350
  var p, f;
3348
3351
  (f = (p = u(e)) == null ? void 0 : p.setup) == null || f.call(p);
3349
- }), Qo(e, s), Ae(e, !0);
3352
+ }), Ko(e, s), ke(e, !0);
3350
3353
  }
3351
3354
  function Pn(e, n, t, o, r, a) {
3352
3355
  const { x: s, y: c } = de(t), l = e.el.getBoundingClientRect();
@@ -3383,16 +3386,16 @@ function Pn(e, n, t, o, r, a) {
3383
3386
  transferred: !1
3384
3387
  };
3385
3388
  }
3386
- function Xo({
3389
+ function Wo({
3387
3390
  parent: e,
3388
3391
  draggedNodes: n,
3389
3392
  targetNodes: t
3390
3393
  }) {
3391
- Ae(e.el);
3394
+ ke(e.el);
3392
3395
  const o = n.map((l) => l.data.value), r = ie(e.el, e.data), a = n[0].data.index, s = [...e.data.enabledNodes], c = [
3393
- ...r.filter((l) => !o.some((d) => he(l, d)))
3396
+ ...r.filter((l) => !o.some((d) => fe(l, d)))
3394
3397
  ];
3395
- c.splice(t[0].data.index, 0, ...o), "draggedNode" in h && (h.currentTargetValue = t[0].data.value), je(e.el, e.data, [...c]), e.data.config.onSort && e.data.config.onSort({
3398
+ c.splice(t[0].data.index, 0, ...o), "draggedNode" in h && (h.currentTargetValue = t[0].data.value), Ue(e.el, e.data, [...c]), e.data.config.onSort && e.data.config.onSort({
3396
3399
  parent: {
3397
3400
  el: e.el,
3398
3401
  data: e.data
@@ -3432,7 +3435,7 @@ function ne(e, n, t) {
3432
3435
  s !== -1 && t.selectedState.nodes.splice(s, 1);
3433
3436
  }
3434
3437
  }
3435
- function me(e, n, t, o, r = !1) {
3438
+ function be(e, n, t, o, r = !1) {
3436
3439
  o.pointerSelection = r;
3437
3440
  for (const a of n)
3438
3441
  a.el.setAttribute("aria-selected", "true"), re([a.el], e.data.config.selectedClass, !0);
@@ -3441,11 +3444,11 @@ function me(e, n, t, o, r = !1) {
3441
3444
  parent: e
3442
3445
  }, oe(e, t, o);
3443
3446
  }
3444
- function Wo(e, n) {
3447
+ function Go(e, n) {
3445
3448
  const t = e.targetData.parent.data.enabledNodes[0];
3446
3449
  t && (n.selectedState && n.selectedState.parent.el !== e.targetData.parent.el ? oe(e.targetData.parent, t, n) : n.selectedState || oe(e.targetData.parent, t, n));
3447
3450
  }
3448
- function Go({
3451
+ function Zo({
3449
3452
  currentParent: e,
3450
3453
  targetParent: n,
3451
3454
  initialParent: t,
@@ -3454,14 +3457,14 @@ function Go({
3454
3457
  targetNodes: a,
3455
3458
  state: s
3456
3459
  }) {
3457
- Ae(t.el);
3460
+ ke(t.el);
3458
3461
  const c = o.map((p) => p.data.value), l = [
3459
3462
  ...ie(e.el, e.data).filter(
3460
- (p) => !c.some((f) => he(p, f))
3463
+ (p) => !c.some((f) => fe(p, f))
3461
3464
  )
3462
3465
  ], d = ie(n.el, n.data), g = t.el === n.el && n.data.config.sortable === !1;
3463
3466
  let u;
3464
- a.length ? (g ? u = r : n.data.config.sortable === !1 ? u = n.data.enabledNodes.length : u = a[0].data.index, d.splice(u, 0, ...c)) : (u = g ? r : n.data.enabledNodes.length, d.splice(u, 0, ...c)), je(e.el, e.data, l), je(n.el, n.data, d), n.data.config.onTransfer && n.data.config.onTransfer({
3467
+ a.length ? (g ? u = r : n.data.config.sortable === !1 ? u = n.data.enabledNodes.length : u = a[0].data.index, d.splice(u, 0, ...c)) : (u = g ? r : n.data.enabledNodes.length, d.splice(u, 0, ...c)), Ue(e.el, e.data, l), Ue(n.el, n.data, d), n.data.config.onTransfer && n.data.config.onTransfer({
3465
3468
  sourceParent: e,
3466
3469
  targetParent: n,
3467
3470
  initialParent: t,
@@ -3482,10 +3485,10 @@ function Go({
3482
3485
  function ie(e, n) {
3483
3486
  return [...n.getValues(e)];
3484
3487
  }
3485
- function je(e, n, t) {
3488
+ function Ue(e, n, t) {
3486
3489
  n.setValues(t, e);
3487
3490
  }
3488
- function Zo(e, n) {
3491
+ function Qo(e, n) {
3489
3492
  ee(e.e), J = !0;
3490
3493
  const t = n.initialParent.data.config.handleEnd;
3491
3494
  t(n);
@@ -3494,23 +3497,23 @@ function Rn(e) {
3494
3497
  const n = F.get(e);
3495
3498
  n && n.abortControllers.mainParent && n.abortControllers.mainParent.abort();
3496
3499
  }
3497
- function M(e) {
3500
+ function O(e) {
3498
3501
  return "draggedNode" in e && !!e.draggedNode;
3499
3502
  }
3500
- function _(e) {
3503
+ function H(e) {
3501
3504
  return "synthDragging" in e && !!e.synthDragging;
3502
3505
  }
3503
- function Qo(e, n) {
3506
+ function Ko(e, n) {
3504
3507
  n.abortControllers.mainParent = we(e, {
3505
- dragover: be(n.config.handleParentDragover),
3508
+ dragover: ve(n.config.handleParentDragover),
3506
3509
  handleParentPointerover: n.config.handleParentPointerover,
3507
- scroll: be(n.config.handleParentScroll),
3508
- drop: be(n.config.handleParentDrop),
3510
+ scroll: ve(n.config.handleParentScroll),
3511
+ drop: ve(n.config.handleParentDrop),
3509
3512
  hasNestedParent: (t) => {
3510
3513
  const o = F.get(t.target);
3511
3514
  o && (o.nestedParent = t.detail.parent);
3512
3515
  },
3513
- focus: be(n.config.handleParentFocus)
3516
+ focus: ve(n.config.handleParentFocus)
3514
3517
  }), n.config.externalDragHandle && n.config.externalDragHandle.el && n.config.externalDragHandle.callback && (n.abortControllers.externalDragHandle = we(
3515
3518
  n.config.externalDragHandle.el,
3516
3519
  {
@@ -3518,13 +3521,13 @@ function Qo(e, n) {
3518
3521
  if (!n.config.externalDragHandle || !n.config.externalDragHandle.callback)
3519
3522
  return;
3520
3523
  const o = n.config.externalDragHandle.callback();
3521
- if (!Fe(o)) {
3524
+ if (!$e(o)) {
3522
3525
  console.warn(
3523
3526
  "No draggable item found from external drag handle callback"
3524
3527
  );
3525
3528
  return;
3526
3529
  }
3527
- const r = Y.get(o);
3530
+ const r = q.get(o);
3528
3531
  if (!r) return;
3529
3532
  const a = o.parentNode;
3530
3533
  if (!(a instanceof HTMLElement)) return;
@@ -3544,7 +3547,7 @@ function Qo(e, n) {
3544
3547
  }
3545
3548
  ));
3546
3549
  }
3547
- function Ko(e) {
3550
+ function Jo(e) {
3548
3551
  var t;
3549
3552
  const n = e.parent.data.config;
3550
3553
  e.node.data.abortControllers.mainNode = we(e.node.el, {
@@ -3562,10 +3565,10 @@ function Ko(e) {
3562
3565
  pointerdown: V(n.handleNodePointerdown),
3563
3566
  handleNodePointerover: n.handleNodePointerover,
3564
3567
  touchmove: (o) => {
3565
- M(h) && o.cancelable && L(o);
3568
+ O(h) && o.cancelable && M(o);
3566
3569
  },
3567
3570
  contextmenu: (o) => {
3568
- _(h) && L(o);
3571
+ H(h) && M(o);
3569
3572
  }
3570
3573
  }), e.node.el.draggable = !0, n.reapplyDragClasses(e.node.el, e.parent.data), (t = e.parent.data.config.plugins) == null || t.forEach((o) => {
3571
3574
  var r, a;
@@ -3574,37 +3577,37 @@ function Ko(e) {
3574
3577
  }
3575
3578
  function Ln(e) {
3576
3579
  var n;
3577
- Y.set(e.node.el, e.node.data), (n = e.parent.data.config.plugins) == null || n.forEach((t) => {
3580
+ q.set(e.node.el, e.node.data), (n = e.parent.data.config.plugins) == null || n.forEach((t) => {
3578
3581
  var o, r;
3579
3582
  (r = (o = t(e.parent.el)) == null ? void 0 : o.setupNodeRemap) == null || r.call(o, e);
3580
3583
  });
3581
3584
  }
3582
- function Jo(e, n) {
3583
- if (!M(h)) return;
3584
- const t = _(h) ? n.config.synthDropZoneClass : n.config.dropZoneClass;
3585
+ function er(e, n) {
3586
+ if (!O(h)) return;
3587
+ const t = H(h) ? n.config.synthDropZoneClass : n.config.dropZoneClass;
3585
3588
  h.draggedNode.el === e && re([e], t, !0);
3586
3589
  }
3587
- function er(e) {
3590
+ function nr(e) {
3588
3591
  var n;
3589
3592
  (n = e.parent.data.config.plugins) == null || n.forEach((t) => {
3590
3593
  var o, r;
3591
3594
  (r = (o = t(e.parent.el)) == null ? void 0 : o.tearDownNodeRemap) == null || r.call(o, e);
3592
3595
  });
3593
3596
  }
3594
- function nr(e) {
3597
+ function tr(e) {
3595
3598
  var n, t, o, r, a;
3596
3599
  (n = e.parent.data.config.plugins) == null || n.forEach((s) => {
3597
3600
  var c, l;
3598
3601
  (l = (c = s(e.parent.el)) == null ? void 0 : c.tearDownNode) == null || l.call(c, e);
3599
3602
  }), e.node.el.draggable = !1, (o = (t = e.node.data) == null ? void 0 : t.abortControllers) != null && o.mainNode && ((a = (r = e.node.data) == null ? void 0 : r.abortControllers) == null || a.mainNode.abort());
3600
3603
  }
3601
- function tr(e) {
3604
+ function or(e) {
3602
3605
  if (e.length === 1 && e[0].addedNodes.length === 1 && !(e[0].addedNodes[0] instanceof HTMLElement))
3603
3606
  return;
3604
3607
  const n = e[0].target;
3605
- !(n instanceof HTMLElement) || !F.get(n) || Ae(n);
3608
+ !(n instanceof HTMLElement) || !F.get(n) || ke(n);
3606
3609
  }
3607
- function Ae(e, n) {
3610
+ function ke(e, n) {
3608
3611
  var c;
3609
3612
  const t = F.get(e);
3610
3613
  if (!t) return;
@@ -3612,8 +3615,8 @@ function Ae(e, n) {
3612
3615
  const o = [], r = t.config;
3613
3616
  for (let l = 0; l < e.children.length; l++) {
3614
3617
  const d = e.children[l];
3615
- if (!Fe(d) || d.id === "dnd-dragged-node-clone") continue;
3616
- const g = Y.get(d);
3618
+ if (!$e(d) || d.id === "dnd-dragged-node-clone") continue;
3619
+ const g = q.get(d);
3617
3620
  (n || !g) && r.tearDownNode({
3618
3621
  parent: {
3619
3622
  el: e,
@@ -3633,7 +3636,7 @@ function Ae(e, n) {
3633
3636
  }
3634
3637
  const a = t.getValues(e), s = [];
3635
3638
  for (let l = 0; l < o.length; l++) {
3636
- const d = o[l], g = Y.get(d);
3639
+ const d = o[l], g = q.get(d);
3637
3640
  if (r.draggableValue && !r.draggableValue(a[l])) continue;
3638
3641
  const u = Object.assign(
3639
3642
  g ?? {
@@ -3645,7 +3648,7 @@ function Ae(e, n) {
3645
3648
  index: l
3646
3649
  }
3647
3650
  );
3648
- if (!M(h) && h.activeState && he(h.activeState.node.data.value, u.value) && oe(
3651
+ if (!O(h) && h.activeState && fe(h.activeState.node.data.value, u.value) && oe(
3649
3652
  {
3650
3653
  data: t,
3651
3654
  el: e
@@ -3655,7 +3658,7 @@ function Ae(e, n) {
3655
3658
  data: u
3656
3659
  },
3657
3660
  h
3658
- ), M(h) && he(h.draggedNode.data.value, u.value)) {
3661
+ ), O(h) && fe(h.draggedNode.data.value, u.value)) {
3659
3662
  h.draggedNode.data = u, h.draggedNode.el = d;
3660
3663
  const p = h.draggedNodes.find(
3661
3664
  (f) => f.data.value === u.value
@@ -3690,13 +3693,13 @@ function Ae(e, n) {
3690
3693
  (g = (d = l(e)) == null ? void 0 : d.remapFinished) == null || g.call(d);
3691
3694
  });
3692
3695
  }
3693
- function or() {
3696
+ function rr() {
3694
3697
  h.remapJustFinished = !0, "draggedNode" in h && (h.affectedNodes = []);
3695
3698
  }
3696
- function rr(e) {
3699
+ function ar(e) {
3697
3700
  return !!e.targetData.parent.data.config.nativeDrag;
3698
3701
  }
3699
- function ar(e) {
3702
+ function ir(e) {
3700
3703
  var n;
3701
3704
  if (e.parent.data.config.multiDrag) {
3702
3705
  if (h.selectedState)
@@ -3709,20 +3712,20 @@ function ar(e) {
3709
3712
  } else return [e.node];
3710
3713
  return [];
3711
3714
  }
3712
- function ir(e) {
3713
- M(h) && (h.emit("scrollStarted", h), !_(h) && (h.preventEnter = !0, Oe && clearTimeout(Oe), Oe = setTimeout(() => {
3715
+ function lr(e) {
3716
+ O(h) && (h.emit("scrollStarted", h), !H(h) && (h.preventEnter = !0, Me && clearTimeout(Me), Me = setTimeout(() => {
3714
3717
  h.preventEnter = !1, h.emit("scrollEnded", h);
3715
3718
  }, 100)));
3716
3719
  }
3717
- function lr(e, n) {
3720
+ function dr(e, n) {
3718
3721
  const t = e.targetData.parent.data.config;
3719
- if (!t.nativeDrag || !rr(e) || !Mn({
3722
+ if (!t.nativeDrag || !ar(e) || !Mn({
3720
3723
  x: e.e.clientX,
3721
3724
  y: e.e.clientY,
3722
3725
  node: e.targetData.node,
3723
3726
  config: t
3724
3727
  })) {
3725
- L(e.e);
3728
+ M(e.e);
3726
3729
  return;
3727
3730
  }
3728
3731
  let o = t.draggedNodes({
@@ -3730,7 +3733,7 @@ function lr(e, n) {
3730
3733
  node: e.targetData.node
3731
3734
  });
3732
3735
  o.length === 0 && (o = [e.targetData.node]), t.dragstartClasses(e.targetData.node, o, t);
3733
- const r = cr(e, o);
3736
+ const r = ur(e, o);
3734
3737
  if (t.onDragstart) {
3735
3738
  const a = {
3736
3739
  parent: e.targetData.parent,
@@ -3746,7 +3749,7 @@ function lr(e, n) {
3746
3749
  t.onDragstart(a);
3747
3750
  }
3748
3751
  }
3749
- function dr(e, n) {
3752
+ function sr(e, n) {
3750
3753
  var c, l;
3751
3754
  if (ee(e.e), n.pointerDown = {
3752
3755
  parent: e.targetData.parent,
@@ -3759,7 +3762,7 @@ function dr(e, n) {
3759
3762
  config: e.targetData.parent.data.config
3760
3763
  }))
3761
3764
  return;
3762
- n.pointerDown.validated = !0, yr(e, n, e.targetData.node);
3765
+ n.pointerDown.validated = !0, Tr(e, n, e.targetData.node);
3763
3766
  const t = e.targetData.parent.data;
3764
3767
  let o = [e.targetData.node];
3765
3768
  const r = e.e.ctrlKey || e.e.metaKey, a = e.e.shiftKey, s = e.targetData.node;
@@ -3768,7 +3771,7 @@ function dr(e, n) {
3768
3771
  (g) => g.el === s.el
3769
3772
  ) === -1 ? o = [...n.selectedState.nodes, s] : o = n.selectedState.nodes.filter(
3770
3773
  (g) => g.el !== s.el
3771
- ) : o = [s], me(
3774
+ ) : o = [s], be(
3772
3775
  e.targetData.parent,
3773
3776
  o,
3774
3777
  e.targetData.node,
@@ -3797,7 +3800,7 @@ function dr(e, n) {
3797
3800
  else
3798
3801
  for (let g = 0; g <= s.data.index; g++)
3799
3802
  o.push(d[g]);
3800
- me(
3803
+ be(
3801
3804
  e.targetData.parent,
3802
3805
  o,
3803
3806
  e.targetData.node,
@@ -3808,13 +3811,13 @@ function dr(e, n) {
3808
3811
  }
3809
3812
  (l = (c = n.selectedState) == null ? void 0 : c.nodes) != null && l.length ? n.selectedState.nodes.findIndex(
3810
3813
  (g) => g.el === e.targetData.node.el
3811
- ) === -1 && (n.selectedState.parent.el !== e.targetData.parent.el ? ne(n.selectedState.nodes, e.targetData.parent, n) : t.config.multiDrag && $n() ? o.push(...n.selectedState.nodes) : ne(n.selectedState.nodes, e.targetData.parent, n), me(
3814
+ ) === -1 && (n.selectedState.parent.el !== e.targetData.parent.el ? ne(n.selectedState.nodes, e.targetData.parent, n) : t.config.multiDrag && $n() ? o.push(...n.selectedState.nodes) : ne(n.selectedState.nodes, e.targetData.parent, n), be(
3812
3815
  e.targetData.parent,
3813
3816
  o,
3814
3817
  e.targetData.node,
3815
3818
  n,
3816
3819
  !0
3817
- )) : me(
3820
+ )) : be(
3818
3821
  e.targetData.parent,
3819
3822
  [e.targetData.node],
3820
3823
  e.targetData.node,
@@ -3822,7 +3825,7 @@ function dr(e, n) {
3822
3825
  !0
3823
3826
  );
3824
3827
  }
3825
- function sr(e, n, t, o = !1) {
3828
+ function cr(e, n, t, o = !1) {
3826
3829
  re(
3827
3830
  n.map((r) => r.el),
3828
3831
  o ? t.synthDraggingClass : t.draggingClass
@@ -3842,7 +3845,7 @@ function sr(e, n, t, o = !1) {
3842
3845
  );
3843
3846
  });
3844
3847
  }
3845
- function cr(e, n) {
3848
+ function ur(e, n) {
3846
3849
  ee(e.e);
3847
3850
  const t = Fn(
3848
3851
  Pn(
@@ -3913,35 +3916,35 @@ function Mn({
3913
3916
  if (a === s || s.contains(a)) return !0;
3914
3917
  return !1;
3915
3918
  }
3916
- function ur(e) {
3917
- }
3918
3919
  function gr(e) {
3919
- e.detail.targetData.parent.el === e.detail.state.currentParent.el ? Vn(e.detail, e.detail.state) : Ie(e.detail, e.detail.state);
3920
3920
  }
3921
- function pr(e, n) {
3921
+ function pr(e) {
3922
+ e.detail.targetData.parent.el === e.detail.state.currentParent.el ? Vn(e.detail, e.detail.state) : Ae(e.detail, e.detail.state);
3923
+ }
3924
+ function hr(e, n) {
3922
3925
  const t = e.targetData.parent.data.config;
3923
3926
  t.nativeDrag && (ee(e.e), J = !0, t.handleEnd(n));
3924
3927
  }
3925
- function hr(e) {
3928
+ function fr(e) {
3926
3929
  e.e.target !== e.e.currentTarget && h.pointerDown && (h.pointerDown.node.el.draggable = !1);
3927
3930
  }
3928
- function fr(e) {
3931
+ function mr(e) {
3929
3932
  e.e.target !== e.e.currentTarget && h.pointerDown && (h.pointerDown.node.el.draggable = !0);
3930
3933
  }
3931
- function mr(e, n) {
3934
+ function br(e, n) {
3932
3935
  const t = e.targetData.parent.data.config;
3933
3936
  if (t.nativeDrag) {
3934
- if (L(e.e), ee(e.e), J) {
3937
+ if (M(e.e), ee(e.e), J) {
3935
3938
  J = !1;
3936
3939
  return;
3937
3940
  }
3938
3941
  t.handleEnd(n);
3939
3942
  }
3940
3943
  }
3941
- function br(e, n) {
3944
+ function vr(e, n) {
3942
3945
  var o;
3943
- if (!_(n)) return;
3944
- if (L(e.e), J) {
3946
+ if (!H(n)) return;
3947
+ if (M(e.e), J) {
3945
3948
  J = !1;
3946
3949
  return;
3947
3950
  }
@@ -3954,11 +3957,11 @@ function br(e, n) {
3954
3957
  state: n
3955
3958
  }), t == null || t.handleEnd(n);
3956
3959
  }
3957
- function vr(e) {
3960
+ function xr(e) {
3958
3961
  var g, u, p, f, m;
3959
3962
  e.draggedNode && (e.draggedNode.el.draggable = !0);
3960
- const n = e.draggedNodes.map((v) => v.el), t = e.initialParent.data, o = _(e), r = (g = F.get(e.initialParent.el)) == null ? void 0 : g.config, a = o ? r == null ? void 0 : r.synthDropZoneClass : r == null ? void 0 : r.dropZoneClass, s = (u = t == null ? void 0 : t.config) == null ? void 0 : u.longPressClass, c = o ? (p = t == null ? void 0 : t.config) == null ? void 0 : p.synthDragPlaceholderClass : (f = t == null ? void 0 : t.config) == null ? void 0 : f.dragPlaceholderClass, l = e.originalZIndex;
3961
- _(e) && (e.clonedDraggedNode && e.clonedDraggedNode.remove(), e.longPressTimeout && clearTimeout(e.longPressTimeout)), Be(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(() => {
3963
+ const n = e.draggedNodes.map((v) => v.el), t = e.initialParent.data, o = H(e), r = (g = F.get(e.initialParent.el)) == null ? void 0 : g.config, a = o ? r == null ? void 0 : r.synthDropZoneClass : r == null ? void 0 : r.dropZoneClass, s = (u = t == null ? void 0 : t.config) == null ? void 0 : u.longPressClass, c = o ? (p = t == null ? void 0 : t.config) == null ? void 0 : p.synthDragPlaceholderClass : (f = t == null ? void 0 : t.config) == null ? void 0 : f.dragPlaceholderClass, l = e.originalZIndex;
3964
+ H(e) && (e.clonedDraggedNode && e.clonedDraggedNode.remove(), e.longPressTimeout && clearTimeout(e.longPressTimeout)), je(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(() => {
3962
3965
  K(n, a), K(n, s), K(n, c);
3963
3966
  }), ne(e.draggedNodes, e.currentParent, e), oe(e.currentParent, void 0, e);
3964
3967
  const d = { ...e };
@@ -3971,17 +3974,17 @@ function vr(e) {
3971
3974
  draggedNode: d.draggedNode,
3972
3975
  draggedNodes: d.draggedNodes,
3973
3976
  state: d
3974
- }), e.emit("dragEnded", d), zo();
3977
+ }), e.emit("dragEnded", d), Ho();
3975
3978
  }
3976
- function xr(e, n) {
3979
+ function Dr(e, n) {
3977
3980
  ee(e.e), !n.pointerSelection && n.selectedState && ne(n.selectedState.nodes, e.targetData.parent, n);
3978
3981
  const t = e.targetData.parent.data.config;
3979
3982
  n.pointerSelection = !1, "longPressTimeout" in n && n.longPressTimeout && clearTimeout(n.longPressTimeout), n.longPress = !1, K(
3980
3983
  e.targetData.parent.data.enabledNodes.map((o) => o.el),
3981
3984
  t.longPressClass
3982
- ), M(n) && t.handleEnd(n);
3985
+ ), O(n) && t.handleEnd(n);
3983
3986
  }
3984
- function Dr(e, n, t, o, r, a) {
3987
+ function yr(e, n, t, o, r, a) {
3985
3988
  var m, v;
3986
3989
  const s = n.data.config;
3987
3990
  let c, l;
@@ -4015,8 +4018,8 @@ function Dr(e, n, t, o, r, a) {
4015
4018
  "overflow"
4016
4019
  ], g = (D, y) => {
4017
4020
  const w = window.getComputedStyle(D);
4018
- d.forEach((N) => {
4019
- y.style[N] = w[N];
4021
+ d.forEach((E) => {
4022
+ y.style[E] = w[E];
4020
4023
  });
4021
4024
  }, u = (D, y = {}) => {
4022
4025
  Object.assign(D.style, {
@@ -4064,13 +4067,13 @@ function Dr(e, n, t, o, r, a) {
4064
4067
  ...p
4065
4068
  });
4066
4069
  }
4067
- function yr(e, n, t) {
4070
+ function Tr(e, n, t) {
4068
4071
  const o = e.targetData.parent.data.config;
4069
4072
  n.longPressTimeout = setTimeout(() => {
4070
- n && (n.longPress = !0, o.longPressClass && e.e.cancelable && re([t.el], o.longPressClass), L(e.e));
4073
+ n && (n.longPress = !0, o.longPressClass && e.e.cancelable && re([t.el], o.longPressClass), M(e.e));
4071
4074
  }, o.longPressDuration || 1e3);
4072
4075
  }
4073
- function Be(e, n = !0, t = !0) {
4076
+ function je(e, n = !0, t = !0) {
4074
4077
  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);
4075
4078
  }
4076
4079
  function On(e, n = !1) {
@@ -4084,9 +4087,9 @@ function On(e, n = !1) {
4084
4087
  function dn(e, n, t = !1) {
4085
4088
  const o = de(e);
4086
4089
  n.coordinates.x = o.x, n.coordinates.y = o.y, On(n, t), n.scrollDebounceTimeout && (clearTimeout(n.scrollDebounceTimeout), n.scrollDebounceTimeout = void 0), n.scrollDebounceTimeout = setTimeout(() => {
4087
- _(n) && $e(n.coordinates, e, n);
4090
+ H(n) && Ie(n.coordinates, e, n);
4088
4091
  }, 16);
4089
- const r = $r(o);
4092
+ const r = Fr(o);
4090
4093
  if (!r) {
4091
4094
  document.dispatchEvent(
4092
4095
  new CustomEvent("handleRootPointerover", {
@@ -4113,22 +4116,22 @@ function dn(e, n, t = !1) {
4113
4116
  })
4114
4117
  );
4115
4118
  }
4116
- function Tr(e, n) {
4119
+ function wr(e, n) {
4117
4120
  var a;
4118
4121
  if (!e.targetData.parent.data.config.nativeDrag) return;
4119
4122
  const { x: o, y: r } = de(e.e);
4120
- n.coordinates.y = r, n.coordinates.x = o, L(e.e), ee(e.e), M(n) && $e({ x: o, y: r }, e.e, n), e.targetData.parent.el === ((a = n.currentParent) == null ? void 0 : a.el) ? Vn(e, n) : Ie(e, n);
4123
+ n.coordinates.y = r, n.coordinates.x = o, M(e.e), ee(e.e), O(n) && Ie({ x: o, y: r }, e.e, n), e.targetData.parent.el === ((a = n.currentParent) == null ? void 0 : a.el) ? Vn(e, n) : Ae(e, n);
4121
4124
  }
4122
- function wr(e, n) {
4125
+ function Sr(e, n) {
4123
4126
  if (!e.targetData.parent.data.config.nativeDrag) return;
4124
- L(e.e), ee(e.e);
4127
+ M(e.e), ee(e.e);
4125
4128
  const { x: o, y: r } = de(e.e);
4126
- M(n) && $e({ x: o, y: r }, e.e, n), Ie(e, n);
4129
+ O(n) && Ie({ x: o, y: r }, e.e, n), Ae(e, n);
4127
4130
  }
4128
- function Sr(e) {
4129
- e.detail.targetData.parent.el !== e.detail.state.currentParent.el && Ie(e.detail, e.detail.state);
4131
+ function Cr(e) {
4132
+ e.detail.targetData.parent.el !== e.detail.state.currentParent.el && Ae(e.detail, e.detail.state);
4130
4133
  }
4131
- function Cr({
4134
+ function Nr({
4132
4135
  currentParent: e,
4133
4136
  targetParent: n,
4134
4137
  initialParent: t,
@@ -4146,13 +4149,13 @@ function Cr({
4146
4149
  r
4147
4150
  ) : !(!a.group || a.group !== s.group);
4148
4151
  }
4149
- function Nr(e, n) {
4150
- L(e.e);
4151
- }
4152
4152
  function Er(e, n) {
4153
- L(e.e);
4153
+ M(e.e);
4154
4154
  }
4155
- function kr(e, n, t, o) {
4155
+ function kr(e, n) {
4156
+ M(e.e);
4157
+ }
4158
+ function Ar(e, n, t, o) {
4156
4159
  var g;
4157
4160
  if (n.affectedNodes.map((u) => u.data.value).includes(e.targetData.node.data.value))
4158
4161
  return !1;
@@ -4188,7 +4191,7 @@ function kr(e, n, t, o) {
4188
4191
  }
4189
4192
  function Vn(e, n) {
4190
4193
  const { x: t, y: o } = de(e.e);
4191
- if (!kr(e, n, t, o))
4194
+ if (!Ar(e, n, t, o))
4192
4195
  return;
4193
4196
  const r = 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];
4194
4197
  n.targetIndex = e.targetData.node.data.index, n.affectedNodes = e.targetData.parent.data.enabledNodes.filter(
@@ -4201,7 +4204,7 @@ function Vn(e, n) {
4201
4204
  }
4202
4205
  function V(e) {
4203
4206
  function n(t) {
4204
- const o = Y.get(t);
4207
+ const o = q.get(t);
4205
4208
  if (!o) return;
4206
4209
  const r = F.get(t.parentNode);
4207
4210
  if (r)
@@ -4228,8 +4231,8 @@ function V(e) {
4228
4231
  );
4229
4232
  };
4230
4233
  }
4231
- function Ie(e, n) {
4232
- L(e.e), Cr({
4234
+ function Ae(e, n) {
4235
+ M(e.e), Nr({
4233
4236
  currentParent: n.currentParent,
4234
4237
  targetParent: e.targetData.parent,
4235
4238
  initialParent: n.initialParent,
@@ -4245,7 +4248,7 @@ function Ie(e, n) {
4245
4248
  targetNodes: "node" in e.targetData ? [e.targetData.node] : []
4246
4249
  }), n.currentParent = e.targetData.parent, n.transferred = !0);
4247
4250
  }
4248
- function be(e) {
4251
+ function ve(e) {
4249
4252
  function n(t) {
4250
4253
  const o = F.get(t);
4251
4254
  if (o)
@@ -4270,14 +4273,14 @@ function be(e) {
4270
4273
  }
4271
4274
  function re(e, n, t = !1) {
4272
4275
  function o(r, a) {
4273
- Y.set(r, a);
4276
+ q.set(r, a);
4274
4277
  }
4275
4278
  for (const r of e) {
4276
- const a = Y.get(r), s = Ar(r, n, a, t);
4279
+ const a = q.get(r), s = Ir(r, n, a, t);
4277
4280
  s && o(r, s);
4278
4281
  }
4279
4282
  }
4280
- function Ar(e, n, t, o = !1) {
4283
+ function Ir(e, n, t, o = !1) {
4281
4284
  if (!n) return;
4282
4285
  const r = In(n);
4283
4286
  if (!r.length) return;
@@ -4299,11 +4302,11 @@ function K(e, n) {
4299
4302
  const t = In(n);
4300
4303
  if (t.length)
4301
4304
  for (const o of e) {
4302
- if (!Fe(o)) {
4305
+ if (!$e(o)) {
4303
4306
  o.classList.remove(...t);
4304
4307
  continue;
4305
4308
  }
4306
- const r = Y.get(o) || F.get(o);
4309
+ const r = q.get(o) || F.get(o);
4307
4310
  if (r)
4308
4311
  for (const a of t)
4309
4312
  r.privateClasses.includes(a) || o.classList.remove(a);
@@ -4322,25 +4325,25 @@ function sn(e, n, t, o, r) {
4322
4325
  };
4323
4326
  }
4324
4327
  if ((m === "auto" || m === "scroll") && e !== document.body && e !== document.documentElement) {
4325
- const v = e[u], D = e[g], y = e[l], w = y > 0, N = y < v - D;
4328
+ const v = e[u], D = e[g], y = e[l], w = y > 0, E = y < v - D;
4326
4329
  return s ? {
4327
4330
  left: w && p < f + D * 0.075,
4328
- right: N && p > f + D * (1 - 0.075)
4331
+ right: E && p > f + D * (1 - 0.075)
4329
4332
  } : {
4330
4333
  up: w && p < f + D * 0.075,
4331
- down: N && p > f + D * (1 - 0.075)
4334
+ down: E && p > f + D * (1 - 0.075)
4332
4335
  };
4333
4336
  }
4334
4337
  return s ? { left: !1, right: !1 } : { up: !1, down: !1 };
4335
4338
  }
4336
- function Ir(e, n, t, o) {
4337
- if (!M(t) || !t.draggedNode)
4339
+ function $r(e, n, t, o) {
4340
+ if (!O(t) || !t.draggedNode)
4338
4341
  return;
4339
4342
  t.preventEnter = !0;
4340
4343
  const r = o.axis === "x", a = o.direction === "positive" ? 1 : -1, s = 20, c = r ? "lastScrollDirectionX" : "lastScrollDirectionY", l = r ? "frameIdX" : "frameIdY";
4341
4344
  t[l] !== void 0 && (cancelAnimationFrame(t[l]), t[l] = void 0), t[c] = o.direction;
4342
4345
  const d = () => {
4343
- if (!M(t) || !t.draggedNode) {
4346
+ if (!O(t) || !t.draggedNode) {
4344
4347
  t[l] !== void 0 && (cancelAnimationFrame(t[l]), t[l] = void 0);
4345
4348
  return;
4346
4349
  }
@@ -4349,7 +4352,7 @@ function Ir(e, n, t, o) {
4349
4352
  t[l] = void 0, t[c] = void 0;
4350
4353
  return;
4351
4354
  }
4352
- e[g] += s * a, _(t) && On(t), t[l] = requestAnimationFrame(d);
4355
+ e[g] += s * a, H(t) && On(t), t[l] = requestAnimationFrame(d);
4353
4356
  };
4354
4357
  t[l] = requestAnimationFrame(d);
4355
4358
  }
@@ -4357,14 +4360,14 @@ function cn(e, n, t) {
4357
4360
  const o = e.getBoundingClientRect();
4358
4361
  return n >= o.left && n <= o.right && t >= o.top && t <= o.bottom;
4359
4362
  }
4360
- function $e(e, n, t) {
4361
- if (!M(t) || !t.draggedNode)
4363
+ function Ie(e, n, t) {
4364
+ if (!O(t) || !t.draggedNode)
4362
4365
  return;
4363
- Be(t);
4366
+ je(t);
4364
4367
  const { x: o, y: r } = e;
4365
4368
  let a = !1;
4366
4369
  const s = (l, d, g) => {
4367
- Ir(g, n, t, { axis: l, direction: d }), a = !0;
4370
+ $r(g, n, t, { axis: l, direction: d }), a = !0;
4368
4371
  }, c = (l) => {
4369
4372
  const d = window.getComputedStyle(l), g = l.getBoundingClientRect(), u = sn(l, n, d, g, {
4370
4373
  axis: "x",
@@ -4381,14 +4384,14 @@ function $e(e, n, t) {
4381
4384
  const l = document.scrollingElement;
4382
4385
  l instanceof HTMLElement && c(l);
4383
4386
  }
4384
- a || Be(t);
4387
+ a || je(t);
4385
4388
  }
4386
- function $r(e) {
4389
+ function Fr(e) {
4387
4390
  let n = document.elementFromPoint(e.x, e.y);
4388
- if (!Fe(n)) return;
4391
+ if (!$e(n)) return;
4389
4392
  let t, o = !0;
4390
4393
  for (; n && o; ) {
4391
- if (Y.has(n) || F.has(n)) {
4394
+ if (q.has(n) || F.has(n)) {
4392
4395
  o = !1, t = F.has(n);
4393
4396
  break;
4394
4397
  }
@@ -4403,7 +4406,7 @@ function $r(e) {
4403
4406
  }
4404
4407
  } : void 0;
4405
4408
  } else {
4406
- const r = Y.get(n);
4409
+ const r = q.get(n);
4407
4410
  if (!r) return;
4408
4411
  const a = F.get(n.parentNode);
4409
4412
  return a ? {
@@ -4418,7 +4421,7 @@ function $r(e) {
4418
4421
  } : void 0;
4419
4422
  }
4420
4423
  }
4421
- function Fe(e) {
4424
+ function $e(e) {
4422
4425
  return e instanceof HTMLElement && e.parentNode instanceof HTMLElement;
4423
4426
  }
4424
4427
  function we(e, n) {
@@ -4433,38 +4436,38 @@ function we(e, n) {
4433
4436
  }
4434
4437
  return t;
4435
4438
  }
4436
- function Fr(e) {
4439
+ function Pr(e) {
4437
4440
  if (e instanceof HTMLElement) return e;
4438
4441
  if ("current" in e && e.current instanceof HTMLElement)
4439
4442
  return e.current;
4440
4443
  console.warn("Invalid parent element", e);
4441
4444
  }
4442
- function Pr(e, n) {
4443
- const t = Fr(e);
4445
+ function Rr(e, n) {
4446
+ const t = Pr(e);
4444
4447
  t && n(t);
4445
4448
  }
4446
4449
  var Se = /* @__PURE__ */ new WeakMap();
4447
- function Rr(e) {
4450
+ function Lr(e) {
4448
4451
  const n = Se.get(e);
4449
4452
  return n ? n[0] : (console.warn("No values found for parent element"), []);
4450
4453
  }
4451
- function Lr(e, n) {
4454
+ function Mr(e, n) {
4452
4455
  const t = Se.get(n);
4453
4456
  t && t[1](e), Se.set(n, [e, t[1]]);
4454
4457
  }
4455
- function Mr(e, n) {
4458
+ function Or(e, n) {
4456
4459
  return (t) => {
4457
- Se.set(t, n), Yo({ parent: t, getValues: Rr, setValues: Lr, config: e });
4460
+ Se.set(t, n), Xo({ parent: t, getValues: Lr, setValues: Mr, config: e });
4458
4461
  };
4459
4462
  }
4460
4463
  function un(e) {
4461
4464
  Qe && (Array.isArray(e) || (e = [e]), e.forEach((n) => {
4462
4465
  const { parent: t, state: o, ...r } = n;
4463
- Pr(t, Mr(r, o));
4466
+ Rr(t, Or(r, o));
4464
4467
  }));
4465
4468
  }
4466
- function Or(e, n = {}) {
4467
- const t = ue(null), [o, r] = P(e);
4469
+ function Vr(e, n = {}) {
4470
+ const t = ge(null), [o, r] = P(e);
4468
4471
  function a(s = {}) {
4469
4472
  un({ parent: t, state: [o, r], ...s });
4470
4473
  }
@@ -4483,7 +4486,7 @@ const gn = {
4483
4486
  color: C.palette.neutral.N40
4484
4487
  }
4485
4488
  }
4486
- }, Vr = T.ul`
4489
+ }, zr = T.ul`
4487
4490
  list-style: none;
4488
4491
  padding: 0;
4489
4492
  margin: 0;
@@ -4492,7 +4495,7 @@ const gn = {
4492
4495
  gap: 12px;
4493
4496
  width: 100%;
4494
4497
  justify-content: ${({ $isEmpty: e }) => e ? "center" : "flex-start"};
4495
- `, zr = T.li`
4498
+ `, Hr = T.li`
4496
4499
  & > div {
4497
4500
  border: 1px solid
4498
4501
  ${({ theme: e, $active: n }) => {
@@ -4500,7 +4503,7 @@ const gn = {
4500
4503
  return n ? ((o = (t = e == null ? void 0 : e.border) == null ? void 0 : t.selected) == null ? void 0 : o.color) || gn.border.selected.color : ((a = (r = e == null ? void 0 : e.border) == null ? void 0 : r.clear) == null ? void 0 : a.color) || gn.border.clear.color;
4501
4504
  }};
4502
4505
  }
4503
- `, Ve = "dnd:draggingLabel", pn = (e) => {
4506
+ `, Oe = "dnd:draggingLabel", pn = (e) => {
4504
4507
  const {
4505
4508
  emptyMessage: n,
4506
4509
  id: t,
@@ -4509,7 +4512,7 @@ const gn = {
4509
4512
  initialItems: a,
4510
4513
  highlightFirst: s,
4511
4514
  onMove: c
4512
- } = e, [l, d] = Or(
4515
+ } = e, [l, d] = Vr(
4513
4516
  a,
4514
4517
  { group: o }
4515
4518
  ), [g, u] = z.useState(
@@ -4517,18 +4520,18 @@ const gn = {
4517
4520
  ), p = z.useRef(a);
4518
4521
  z.useEffect(() => {
4519
4522
  const y = (w) => {
4520
- const N = w.detail ?? null;
4521
- u(N);
4523
+ const E = w.detail ?? null;
4524
+ u(E);
4522
4525
  };
4523
- return window.addEventListener(Ve, y), () => window.removeEventListener(Ve, y);
4526
+ return window.addEventListener(Oe, y), () => window.removeEventListener(Oe, y);
4524
4527
  }, []);
4525
4528
  const f = z.useCallback((y) => {
4526
4529
  window.dispatchEvent(
4527
- new CustomEvent(Ve, { detail: y })
4530
+ new CustomEvent(Oe, { detail: y })
4528
4531
  );
4529
4532
  }, []), m = (y) => {
4530
4533
  var S;
4531
- const w = y.target, N = (S = w == null ? void 0 : w.closest) == null ? void 0 : S.call(w, "li.dnd-item"), A = (N == null ? void 0 : N.getAttribute("data-label")) || null;
4534
+ const w = y.target, E = (S = w == null ? void 0 : w.closest) == null ? void 0 : S.call(w, "li.dnd-item"), A = (E == null ? void 0 : E.getAttribute("data-label")) || null;
4532
4535
  A && (u(A), f(A));
4533
4536
  }, v = z.useCallback(() => {
4534
4537
  u(null), f(null);
@@ -4541,24 +4544,24 @@ const gn = {
4541
4544
  }, [v]), z.useEffect(() => {
4542
4545
  const y = p.current;
4543
4546
  if (d.length !== y.length && d.length === y.length + 1) {
4544
- const w = new Set(y), N = d.find((A) => !w.has(A)) || null;
4545
- if (N) {
4547
+ const w = new Set(y), E = d.find((A) => !w.has(A)) || null;
4548
+ if (E) {
4546
4549
  const A = t === "left" ? "right" : "left";
4547
- c == null || c({ item: N, from: A, to: t });
4550
+ c == null || c({ item: E, from: A, to: t });
4548
4551
  }
4549
4552
  }
4550
4553
  p.current = d;
4551
4554
  }, [d, t, c]);
4552
4555
  const D = d.length === 0;
4553
4556
  return /* @__PURE__ */ i(
4554
- ve,
4557
+ ue,
4555
4558
  {
4556
4559
  legend: r,
4557
4560
  width: "100%",
4558
4561
  height: "-webkit-fill-available",
4559
4562
  spacing: "wide",
4560
4563
  children: /* @__PURE__ */ i(
4561
- Vr,
4564
+ zr,
4562
4565
  {
4563
4566
  ref: l,
4564
4567
  onPointerDownCapture: m,
@@ -4566,30 +4569,30 @@ const gn = {
4566
4569
  onPointerCancelCapture: v,
4567
4570
  $isEmpty: D,
4568
4571
  children: D ? /* @__PURE__ */ i(
4569
- j,
4572
+ U,
4570
4573
  {
4571
4574
  background: !0,
4572
4575
  borderRadius: "8px",
4573
4576
  width: "100%",
4574
4577
  alignItems: "center",
4575
4578
  justifyContent: "center",
4576
- children: /* @__PURE__ */ i(E, { type: "label", size: "medium", appearance: "gray", padding: "12px", children: n || "No hay elementos en esta lista" })
4579
+ children: /* @__PURE__ */ i(N, { type: "label", size: "medium", appearance: "gray", padding: "12px", children: n || "No hay elementos en esta lista" })
4577
4580
  }
4578
4581
  ) : d.map((y, w) => {
4579
- const N = g === y;
4582
+ const E = g === y;
4580
4583
  return /* @__PURE__ */ i(
4581
- zr,
4584
+ Hr,
4582
4585
  {
4583
- className: `dnd-item${N ? " is-dragging" : ""}`,
4586
+ className: `dnd-item${E ? " is-dragging" : ""}`,
4584
4587
  "data-label": y,
4585
4588
  "data-first": !!(s && w === 0) || void 0,
4586
- $active: N,
4587
- children: /* @__PURE__ */ i(j, { border: !0, borderRadius: "8px", width: "100%", children: /* @__PURE__ */ i(
4588
- E,
4589
+ $active: E,
4590
+ children: /* @__PURE__ */ i(U, { border: !0, borderRadius: "8px", width: "100%", children: /* @__PURE__ */ i(
4591
+ N,
4589
4592
  {
4590
4593
  type: "title",
4591
- appearance: N ? "primary" : "dark",
4592
- weight: N ? "bold" : "normal",
4594
+ appearance: E ? "primary" : "dark",
4595
+ weight: E ? "bold" : "normal",
4593
4596
  size: "medium",
4594
4597
  padding: "6px 12px",
4595
4598
  children: y
@@ -4603,7 +4606,7 @@ const gn = {
4603
4606
  )
4604
4607
  }
4605
4608
  );
4606
- }, Da = (e) => {
4609
+ }, ya = (e) => {
4607
4610
  const { group: n = "clients", left: t, right: o, onMove: r } = e, a = (s) => {
4608
4611
  r == null || r(s);
4609
4612
  };
@@ -4642,7 +4645,7 @@ const gn = {
4642
4645
  ]
4643
4646
  }
4644
4647
  );
4645
- }, Hr = T.div`
4648
+ }, _r = T.div`
4646
4649
  & > button {
4647
4650
  height: 66px;
4648
4651
  min-width: 66px;
@@ -4660,13 +4663,13 @@ const gn = {
4660
4663
  }
4661
4664
  }
4662
4665
  }
4663
- `, ya = (e) => /* @__PURE__ */ i(Hr, { children: /* @__PURE__ */ i(H, { ...e }) }), _r = T.div`
4666
+ `, Ta = (e) => /* @__PURE__ */ i(_r, { children: /* @__PURE__ */ i(j, { ...e }) }), Ur = T.div`
4664
4667
  display: flex;
4665
- justify-content: space-between; /* ensures buttons are evenly spaced */
4668
+ justify-content: space-between;
4666
4669
  align-items: center;
4667
4670
  box-sizing: border-box;
4668
4671
  border-radius: 16px;
4669
- background-color: white; /* ensures it looks like a card */
4672
+ background-color: white;
4670
4673
  box-shadow:
4671
4674
  0px 1px 3px 1px rgba(0, 0, 0, 0.15),
4672
4675
  0px 1px 2px 0px rgba(0, 0, 0, 0.3);
@@ -4680,46 +4683,50 @@ const gn = {
4680
4683
 
4681
4684
  & > div > div {
4682
4685
  flex-direction: column;
4686
+ & > figure > svg {
4687
+ width: 20px;
4688
+ height: 20px;
4689
+ }
4683
4690
  & > p {
4684
4691
  font-weight: 400;
4685
4692
  }
4686
4693
  }
4687
4694
  }
4688
- `, Ta = (e) => {
4695
+ `, wa = (e) => {
4689
4696
  const { handleBack: n, handleNext: t, textValues: o } = e;
4690
- return /* @__PURE__ */ b(_r, { children: [
4697
+ return /* @__PURE__ */ b(Ur, { children: [
4691
4698
  /* @__PURE__ */ i(
4692
- H,
4699
+ j,
4693
4700
  {
4694
4701
  ...e,
4695
- iconBefore: /* @__PURE__ */ i(jn, {}),
4702
+ iconBefore: /* @__PURE__ */ i(Bn, {}),
4696
4703
  variant: "none",
4697
4704
  onClick: n,
4698
4705
  children: o.back
4699
4706
  }
4700
4707
  ),
4701
4708
  /* @__PURE__ */ i(
4702
- H,
4709
+ j,
4703
4710
  {
4704
4711
  ...e,
4705
- iconBefore: /* @__PURE__ */ i(Bn, {}),
4712
+ iconBefore: /* @__PURE__ */ i(qn, {}),
4706
4713
  variant: "none",
4707
4714
  onClick: t,
4708
4715
  children: o.next
4709
4716
  }
4710
4717
  )
4711
4718
  ] });
4712
- }, se = /* @__PURE__ */ new Map(), Ur = (e, n) => se.get(`${n}:${e}`), jr = (e, n, t) => {
4719
+ }, se = /* @__PURE__ */ new Map(), jr = (e, n) => se.get(`${n}:${e}`), Br = (e, n, t) => {
4713
4720
  const o = `${n}:${e}`;
4714
4721
  if (se.set(o, t), se.size > 1e3) {
4715
4722
  const r = se.keys().next().value;
4716
4723
  r !== void 0 && se.delete(r);
4717
4724
  }
4718
- }, hn = /* @__PURE__ */ new Map(), Br = 1e3, qr = (e) => {
4725
+ }, hn = /* @__PURE__ */ new Map(), qr = 1e3, Yr = (e) => {
4719
4726
  const n = Date.now(), t = hn.get(e) || 0;
4720
- return n - t < Br ? !0 : (hn.set(e, n), !1);
4721
- }, Yr = (e) => {
4722
- const n = et(e);
4727
+ return n - t < qr ? !0 : (hn.set(e, n), !1);
4728
+ }, Xr = (e) => {
4729
+ const n = nt(e);
4723
4730
  return {
4724
4731
  spa: "es",
4725
4732
  eng: "en",
@@ -4728,14 +4735,14 @@ const gn = {
4728
4735
  ita: "it",
4729
4736
  por: "pt"
4730
4737
  }[n] || "en";
4731
- }, Xr = async (e, n, { url: t, apiKey: o }) => {
4732
- const r = `${n}:${e}`, a = Ur(e, n);
4738
+ }, Wr = async (e, n, { url: t, apiKey: o }) => {
4739
+ const r = `${n}:${e}`, a = jr(e, n);
4733
4740
  if (a) return a;
4734
- if (qr(r))
4741
+ if (Yr(r))
4735
4742
  return console.warn(`[Throttle] Skipped translation for: "${e}"`), e;
4736
- const s = Yr(e);
4743
+ const s = Xr(e);
4737
4744
  try {
4738
- const { data: c } = await Jn.post(
4745
+ const { data: c } = await et.post(
4739
4746
  t,
4740
4747
  {
4741
4748
  q: e,
@@ -4749,15 +4756,15 @@ const gn = {
4749
4756
  }
4750
4757
  }
4751
4758
  ), l = (c == null ? void 0 : c.translatedText) || e;
4752
- return jr(e, n, l), l;
4759
+ return Br(e, n, l), l;
4753
4760
  } catch (c) {
4754
4761
  return console.warn(`[Translation] Failed for: "${e}"`, c), e;
4755
4762
  }
4756
- }, Wr = (e) => typeof e == "string" && e.trim().length > 0, fn = async (e, n, t) => {
4763
+ }, Gr = (e) => typeof e == "string" && e.trim().length > 0, fn = async (e, n, t) => {
4757
4764
  const o = await Promise.all(
4758
4765
  Object.entries(e).map(async ([r, a]) => {
4759
- if (Wr(a)) {
4760
- const s = await Xr(a, n, t);
4766
+ if (Gr(a)) {
4767
+ const s = await Wr(a, n, t);
4761
4768
  return [r, s];
4762
4769
  } else if (Array.isArray(a)) {
4763
4770
  const s = await Promise.all(
@@ -4776,30 +4783,30 @@ const gn = {
4776
4783
  return Object.fromEntries(o);
4777
4784
  };
4778
4785
  export {
4779
- Ta as BackAndNextButton,
4786
+ wa as BackAndNextButton,
4780
4787
  We as BusinessRuleCard,
4781
4788
  Sn as BusinessRuleCardNew,
4782
4789
  wn as BusinessRuleView,
4783
4790
  Cn as BusinessRuleViewNew,
4784
- da as BusinessRules,
4785
- sa as BusinessRulesNew,
4786
- Da as DragAndDropBoxes,
4791
+ sa as BusinessRules,
4792
+ ca as BusinessRulesNew,
4793
+ ya as DragAndDropBoxes,
4787
4794
  pn as DraggableList,
4788
- Lo as DropdownMenu,
4789
- xa as DropdownMenuContainer,
4790
- ca as Filter,
4791
- ua as FilterModal,
4792
- ga as FormFilter,
4793
- pt as ModalRules,
4794
- ko as RulesForm,
4795
- ya as SendButton,
4796
- mo as convertRangeToString,
4797
- pa as formatDecisionForBackend,
4798
- ha as parseRangeFromString,
4799
- fa as revertSortedDataSampleSwitchPlaces,
4800
- ma as revertSortedDataSwitchPlaces,
4801
- ba as sortDisplayDataSampleSwitchPlaces,
4802
- va as sortDisplayDataSwitchPlaces,
4795
+ Mo as DropdownMenu,
4796
+ Da as DropdownMenuContainer,
4797
+ ua as Filter,
4798
+ ga as FilterModal,
4799
+ pa as FormFilter,
4800
+ ht as ModalRules,
4801
+ Ao as RulesForm,
4802
+ Ta as SendButton,
4803
+ bo as convertRangeToString,
4804
+ ha as formatDecisionForBackend,
4805
+ fa as parseRangeFromString,
4806
+ ma as revertSortedDataSampleSwitchPlaces,
4807
+ ba as revertSortedDataSwitchPlaces,
4808
+ va as sortDisplayDataSampleSwitchPlaces,
4809
+ xa as sortDisplayDataSwitchPlaces,
4803
4810
  fn as translateObject,
4804
- Xr as translateText
4811
+ Wr as translateText
4805
4812
  };