@isettingkit/business-rules 1.0.22 → 1.0.24

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 +393 -376
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,16 +1,16 @@
1
- import { jsx as o, jsxs as h, Fragment as E } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as h, Fragment as E } from "react/jsx-runtime";
2
2
  import { MdOutlineDelete as Te, MdClear as ye, MdAdd as J, MdExpandLess as Me, MdExpandMore as we, MdClose as Le, MdOutlineFilterAltOff as Ce, MdOutlineFilterAlt as De, MdChevronRight as ze, MdArrowRight as Ue } from "react-icons/md";
3
- import { inube as x, Stack as g, Divider as F, Icon as R, Text as w, SkeletonLine as V, useMediaQuery as H, Blanket as Se, Button as U, Grid as X, Box as Ve, Tag as q, SkeletonIcon as Be, OptionList as He, Checkpicker as je, Toggle as ke, Checkbox as _e, Date as ue } from "@inubekit/inubekit";
3
+ import { inube as x, Stack as g, Divider as O, Icon as F, Text as w, SkeletonLine as V, useMediaQuery as H, Blanket as Se, Button as U, Grid as X, Box as Ve, Tag as q, SkeletonIcon as Be, OptionList as je, Checkpicker as He, Toggle as ke, Checkbox as _e, Date as ue } from "@inubekit/inubekit";
4
4
  import T, { keyframes as Ne, ThemeContext as qe } from "styled-components";
5
- import { ValueDataType as O, ValueHowToSetUp as B, DecisionConditionRender as pe } from "@isettingkit/input";
5
+ import { ValueDataType as R, ValueHowToSetUp as B, DecisionConditionRender as pe } from "@isettingkit/input";
6
6
  import { DecisionViewConditionRenderer as Z, DecisionViewConditionRendererNew as Q } from "@isettingkit/view";
7
7
  import { createPortal as Ee } from "react-dom";
8
- import W, { useState as M, useRef as K, useEffect as re, useContext as Pe } from "react";
8
+ import W, { useState as M, useRef as Y, useEffect as oe, useContext as Pe } from "react";
9
9
  import { useFormik as Ge } from "formik";
10
- import { string as ie, mixed as $e, object as Y, number as ne, lazy as he, date as ge } from "yup";
10
+ import { string as ie, mixed as $e, object as K, number as ne, lazy as he, date as ge } from "yup";
11
11
  import { Link as Qe, useLocation as We } from "react-router-dom";
12
- import Ke from "axios";
13
- import { franc as Ye } from "franc-min";
12
+ import Ye from "axios";
13
+ import { franc as Ke } from "franc-min";
14
14
  const Je = T.div`
15
15
  border-radius: 8px;
16
16
  border: 1px solid
@@ -47,20 +47,20 @@ T.div`
47
47
  }
48
48
  `;
49
49
  const le = (e) => {
50
- const { children: n, controls: t = !0, handleDelete: a, id: r } = e;
51
- return /* @__PURE__ */ o(Je, { children: /* @__PURE__ */ h(g, { direction: "column", gap: "16px", padding: "12px 16px", children: [
50
+ const { children: n, controls: t = !0, handleDelete: a, id: o } = e;
51
+ return /* @__PURE__ */ r(Je, { children: /* @__PURE__ */ h(g, { direction: "column", gap: "16px", padding: "12px 16px", children: [
52
52
  n,
53
53
  t && /* @__PURE__ */ h(E, { children: [
54
- /* @__PURE__ */ o(F, {}),
55
- /* @__PURE__ */ o(g, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ o(
56
- R,
54
+ /* @__PURE__ */ r(O, {}),
55
+ /* @__PURE__ */ r(g, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ r(
56
+ F,
57
57
  {
58
58
  cursorHover: !0,
59
59
  appearance: "danger",
60
60
  size: "24px",
61
- icon: /* @__PURE__ */ o(Te, {}),
61
+ icon: /* @__PURE__ */ r(Te, {}),
62
62
  onClick: () => {
63
- a(r);
63
+ a(o);
64
64
  }
65
65
  }
66
66
  ) })
@@ -69,17 +69,17 @@ const le = (e) => {
69
69
  }, Xe = (e) => e.value, Ze = (e) => e.value, en = (e) => e.value, nn = (e) => ({
70
70
  from: e.from ?? "",
71
71
  to: e.to ?? ""
72
- }), tn = (e) => e.value, an = (e) => e.value, on = (e) => e.value;
72
+ }), tn = (e) => e.value, an = (e) => e.value, rn = (e) => e.value;
73
73
  var S = /* @__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))(S || {});
74
- const rn = {
74
+ const on = {
75
75
  [S.LIST_OF_VALUES]: Ze,
76
76
  [S.LIST_OF_VALUES_MULTI]: en,
77
77
  [S.RANGE]: nn,
78
78
  [S.GREATER_THAN]: tn,
79
79
  [S.LESS_THAN]: an,
80
- [S.EQUAL]: on
80
+ [S.EQUAL]: rn
81
81
  }, P = (e) => {
82
- const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), a = rn[e == null ? void 0 : e.howToSetTheDecision] || Xe;
82
+ const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), a = on[e == null ? void 0 : e.howToSetTheDecision] || Xe;
83
83
  return t && a(n) || n || void 0;
84
84
  }, be = T.div`
85
85
  & > div {
@@ -113,7 +113,7 @@ const rn = {
113
113
  conditionsAlignment: n,
114
114
  decision: t,
115
115
  decisionDateElement: a,
116
- decisionMapper: r,
116
+ decisionMapper: o,
117
117
  loading: i,
118
118
  skeleton: u,
119
119
  terms: l,
@@ -121,18 +121,18 @@ const rn = {
121
121
  visibleConditions: s
122
122
  } = e;
123
123
  return i ? /* @__PURE__ */ h(g, { direction: "column", gap: "12px", children: [
124
- /* @__PURE__ */ o(g, { direction: "column", alignItems: "center", children: /* @__PURE__ */ o(
124
+ /* @__PURE__ */ r(g, { direction: "column", alignItems: "center", children: /* @__PURE__ */ r(
125
125
  Z,
126
126
  {
127
- element: r,
127
+ element: o,
128
128
  valueData: P(
129
- r
129
+ o
130
130
  ),
131
131
  type: "decision"
132
132
  }
133
133
  ) }, t.ruleName),
134
- /* @__PURE__ */ o(F, { dashed: !0 }),
135
- /* @__PURE__ */ o(me, { children: /* @__PURE__ */ h(
134
+ /* @__PURE__ */ r(O, { dashed: !0 }),
135
+ /* @__PURE__ */ r(me, { children: /* @__PURE__ */ h(
136
136
  g,
137
137
  {
138
138
  direction: "column",
@@ -140,7 +140,7 @@ const rn = {
140
140
  justifyContent: n,
141
141
  height: "203px",
142
142
  children: [
143
- /* @__PURE__ */ o(
143
+ /* @__PURE__ */ r(
144
144
  w,
145
145
  {
146
146
  type: "label",
@@ -151,7 +151,7 @@ const rn = {
151
151
  children: d.factsThatConditionIt
152
152
  }
153
153
  ),
154
- s.map((p) => /* @__PURE__ */ o(be, { children: /* @__PURE__ */ o(g, { direction: "column", padding: "8px", children: /* @__PURE__ */ o(
154
+ s.map((p) => /* @__PURE__ */ r(be, { children: /* @__PURE__ */ r(g, { direction: "column", padding: "8px", children: /* @__PURE__ */ r(
155
155
  Z,
156
156
  {
157
157
  element: { ...p, value: p.value },
@@ -161,8 +161,8 @@ const rn = {
161
161
  }
162
162
  ) }) }, p.conditionName)),
163
163
  l && /* @__PURE__ */ h(E, { children: [
164
- /* @__PURE__ */ o(F, { dashed: !0 }),
165
- a && /* @__PURE__ */ o(
164
+ /* @__PURE__ */ r(O, { dashed: !0 }),
165
+ a && /* @__PURE__ */ r(
166
166
  Z,
167
167
  {
168
168
  element: a.element,
@@ -177,21 +177,21 @@ const rn = {
177
177
  ) })
178
178
  ] }) : /* @__PURE__ */ h(g, { direction: "column", gap: "12px", children: [
179
179
  /* @__PURE__ */ h(g, { direction: "column", alignItems: "center", gap: "4px", children: [
180
- /* @__PURE__ */ o(V, { animated: !0, width: "180px" }),
181
- /* @__PURE__ */ o(V, { animated: !0, width: "85px" })
180
+ /* @__PURE__ */ r(V, { animated: !0, width: "180px" }),
181
+ /* @__PURE__ */ r(V, { animated: !0, width: "85px" })
182
182
  ] }, "loading"),
183
183
  /* @__PURE__ */ h(g, { direction: "column", gap: "12px", alignItems: "center", children: [
184
- /* @__PURE__ */ o(F, { dashed: !0 }),
185
- /* @__PURE__ */ o(V, { animated: !0, width: "150px" })
184
+ /* @__PURE__ */ r(O, { dashed: !0 }),
185
+ /* @__PURE__ */ r(V, { animated: !0, width: "150px" })
186
186
  ] }),
187
- /* @__PURE__ */ o(me, { children: /* @__PURE__ */ o(
187
+ /* @__PURE__ */ r(me, { children: /* @__PURE__ */ r(
188
188
  g,
189
189
  {
190
190
  direction: "column",
191
191
  gap: "12px",
192
192
  justifyContent: "space-between",
193
193
  height: "203px",
194
- children: u.map((p, c) => /* @__PURE__ */ o(be, { children: /* @__PURE__ */ h(
194
+ children: u.map((p, c) => /* @__PURE__ */ r(be, { children: /* @__PURE__ */ h(
195
195
  g,
196
196
  {
197
197
  direction: "column",
@@ -199,8 +199,8 @@ const rn = {
199
199
  alignItems: "start",
200
200
  padding: "8px",
201
201
  children: [
202
- /* @__PURE__ */ o(V, { animated: !0, width: "180px" }),
203
- /* @__PURE__ */ o(V, { animated: !0, width: "85px" })
202
+ /* @__PURE__ */ r(V, { animated: !0, width: "180px" }),
203
+ /* @__PURE__ */ r(V, { animated: !0, width: "85px" })
204
204
  ]
205
205
  }
206
206
  ) }, `condition-${c}`))
@@ -209,12 +209,12 @@ const rn = {
209
209
  ] });
210
210
  }, Ae = (e) => {
211
211
  var m;
212
- const { decision: n, loading: t = !1, textValues: a } = e, r = !!(n != null && n.effectiveFrom), i = !!(n != null && n.validUntil), u = r && i ? {
212
+ const { decision: n, loading: t = !1, textValues: a } = e, o = !!(n != null && n.effectiveFrom), i = !!(n != null && n.validUntil), u = o && i ? {
213
213
  element: {
214
214
  labelName: a == null ? void 0 : a.terms,
215
215
  value: String(n.effectiveFrom),
216
216
  howToSetTheDecision: B.RANGE,
217
- decisionDataType: O.DATE
217
+ decisionDataType: R.DATE
218
218
  },
219
219
  valueData: P({
220
220
  labelName: a == null ? void 0 : a.terms,
@@ -223,20 +223,20 @@ const rn = {
223
223
  to: String(n.validUntil)
224
224
  },
225
225
  howToSetTheDecision: B.RANGE,
226
- decisionDataType: O.DATE
226
+ decisionDataType: R.DATE
227
227
  })
228
- } : r && !i ? {
228
+ } : o && !i ? {
229
229
  element: {
230
230
  labelName: a == null ? void 0 : a.terms,
231
231
  value: String(n.effectiveFrom),
232
232
  howToSetTheDecision: B.EQUAL,
233
- decisionDataType: O.DATE
233
+ decisionDataType: R.DATE
234
234
  },
235
235
  valueData: P({
236
236
  labelName: a == null ? void 0 : a.terms,
237
237
  value: String(n.effectiveFrom),
238
238
  howToSetTheDecision: B.EQUAL,
239
- decisionDataType: O.DATE
239
+ decisionDataType: R.DATE
240
240
  })
241
241
  } : null, l = n ? {
242
242
  labelName: n.labelName || "",
@@ -246,7 +246,7 @@ const rn = {
246
246
  } : null, d = ((m = n == null ? void 0 : n.conditionsThatEstablishesTheDecision) == null ? void 0 : m.filter(
247
247
  (b) => !b.hidden
248
248
  )) || [], s = Array.from({ length: 5 }), p = !!(!t && n && a && l), c = d.length < 2 ? "start" : "space-between";
249
- return /* @__PURE__ */ o(
249
+ return /* @__PURE__ */ r(
250
250
  ln,
251
251
  {
252
252
  conditionsAlignment: c,
@@ -297,17 +297,17 @@ const rn = {
297
297
  border-radius: 8px;
298
298
  }
299
299
  `, Ie = (e) => {
300
- const { children: n, portalId: t, onCloseModal: a, title: r } = e, i = document.getElementById(t);
300
+ const { children: n, portalId: t, onCloseModal: a, title: o } = e, i = document.getElementById(t);
301
301
  if (!i)
302
302
  throw new Error(
303
303
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
304
304
  );
305
305
  const u = H("(max-width: 400px)");
306
306
  return Ee(
307
- /* @__PURE__ */ o(dn, { smallScreen: u, children: /* @__PURE__ */ o(Se, { children: /* @__PURE__ */ o(sn, { children: /* @__PURE__ */ h(g, { direction: "column", gap: "24px", children: [
308
- /* @__PURE__ */ o(g, { direction: "column", gap: "24px", children: /* @__PURE__ */ h(g, { alignItems: "center", justifyContent: "space-between", children: [
309
- /* @__PURE__ */ o(w, { type: "title", size: "large", appearance: "dark", weight: "bold", children: r }),
310
- /* @__PURE__ */ o(ye, { size: "24px", cursor: "pointer", onClick: a })
307
+ /* @__PURE__ */ r(dn, { smallScreen: u, children: /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r(sn, { children: /* @__PURE__ */ h(g, { direction: "column", gap: "24px", children: [
308
+ /* @__PURE__ */ r(g, { direction: "column", gap: "24px", children: /* @__PURE__ */ h(g, { alignItems: "center", justifyContent: "space-between", children: [
309
+ /* @__PURE__ */ r(w, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
310
+ /* @__PURE__ */ r(ye, { size: "24px", cursor: "pointer", onClick: a })
311
311
  ] }) }),
312
312
  n
313
313
  ] }) }) }) }),
@@ -393,7 +393,7 @@ const un = T.div`
393
393
  }
394
394
  `, gn = (e) => {
395
395
  const { index: n, handleOpenModal: t } = e;
396
- return /* @__PURE__ */ o(
396
+ return /* @__PURE__ */ r(
397
397
  le,
398
398
  {
399
399
  id: `loading-card-${n}`,
@@ -401,22 +401,22 @@ const un = T.div`
401
401
  },
402
402
  handleView: () => t ? t() : null,
403
403
  controls: !1,
404
- children: /* @__PURE__ */ o(Ae, { loading: !0 })
404
+ children: /* @__PURE__ */ r(Ae, { loading: !0 })
405
405
  },
406
406
  `loading-card-${n}`
407
407
  );
408
408
  }, bn = (e) => {
409
- const { decision: n, controls: t, handleOpenModal: a, handleDelete: r, textValues: i } = e;
410
- return n ? /* @__PURE__ */ o(de, { children: /* @__PURE__ */ h(g, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
411
- /* @__PURE__ */ o(w, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
412
- /* @__PURE__ */ o(
409
+ const { decision: n, controls: t, handleOpenModal: a, handleDelete: o, textValues: i } = e;
410
+ return n ? /* @__PURE__ */ r(de, { children: /* @__PURE__ */ h(g, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
411
+ /* @__PURE__ */ r(w, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
412
+ /* @__PURE__ */ r(
413
413
  le,
414
414
  {
415
415
  id: n.decisionId,
416
- handleDelete: () => r ? r(n.decisionId) : null,
416
+ handleDelete: () => o ? o(n.decisionId) : null,
417
417
  handleView: () => a ? a(n) : null,
418
418
  controls: t,
419
- children: /* @__PURE__ */ o(Ae, { decision: n, textValues: i })
419
+ children: /* @__PURE__ */ r(Ae, { decision: n, textValues: i })
420
420
  }
421
421
  )
422
422
  ] }) }, n.decisionId) : null;
@@ -425,15 +425,15 @@ const un = T.div`
425
425
  customTitleContentAddCard: n,
426
426
  index: t,
427
427
  handleOpenModal: a,
428
- shouldRenderEmptyMessage: r
428
+ shouldRenderEmptyMessage: o
429
429
  } = e, i = n || "Agregar decisión";
430
- return /* @__PURE__ */ o(de, { children: r ? null : /* @__PURE__ */ h(g, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
431
- /* @__PURE__ */ o(w, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
432
- /* @__PURE__ */ o(
430
+ return /* @__PURE__ */ r(de, { children: o ? null : /* @__PURE__ */ h(g, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
431
+ /* @__PURE__ */ r(w, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
432
+ /* @__PURE__ */ r(
433
433
  un,
434
434
  {
435
435
  onClick: () => a ? a() : null,
436
- children: /* @__PURE__ */ o(
436
+ children: /* @__PURE__ */ r(
437
437
  le,
438
438
  {
439
439
  id: `add-decision-${t}`,
@@ -442,8 +442,8 @@ const un = T.div`
442
442
  handleView: () => a ? a() : null,
443
443
  controls: !1,
444
444
  children: /* @__PURE__ */ h(g, { direction: "column", gap: "12px", alignItems: "center", children: [
445
- /* @__PURE__ */ o(R, { appearance: "gray", icon: /* @__PURE__ */ o(J, {}), size: "35px" }),
446
- /* @__PURE__ */ o(w, { appearance: "gray", type: "body", size: "large", children: i })
445
+ /* @__PURE__ */ r(F, { appearance: "gray", icon: /* @__PURE__ */ r(J, {}), size: "35px" }),
446
+ /* @__PURE__ */ r(w, { appearance: "gray", type: "body", size: "large", children: i })
447
447
  ] })
448
448
  }
449
449
  )
@@ -462,17 +462,17 @@ const un = T.div`
462
462
  controls: n,
463
463
  customTitleContentAddCard: t,
464
464
  decisions: a,
465
- loading: r,
465
+ loading: o,
466
466
  handleOpenModal: i,
467
467
  handleDelete: u,
468
468
  textValues: l
469
- } = e, d = r ? Array.from({ length: 3 }).map(
469
+ } = e, d = o ? Array.from({ length: 3 }).map(
470
470
  (p, c) => te({
471
471
  type: "loading",
472
472
  index: c,
473
473
  controls: n,
474
474
  customTitleContentAddCard: t,
475
- loading: r,
475
+ loading: o,
476
476
  handleOpenModal: i,
477
477
  handleDelete: u,
478
478
  textValues: l
@@ -483,19 +483,19 @@ const un = T.div`
483
483
  decision: p,
484
484
  controls: n,
485
485
  customTitleContentAddCard: t,
486
- loading: r,
486
+ loading: o,
487
487
  handleOpenModal: i,
488
488
  handleDelete: u,
489
489
  textValues: l
490
490
  })
491
- ), s = ((a == null ? void 0 : a.length) === 0 || a.length < Math.floor(window.innerWidth / 300)) && !r && n;
491
+ ), s = ((a == null ? void 0 : a.length) === 0 || a.length < Math.floor(window.innerWidth / 300)) && !o && n;
492
492
  return { renderedCards: d, shouldRenderAddCard: s };
493
- }, It = (e) => {
493
+ }, Rt = (e) => {
494
494
  const {
495
495
  controls: n = !0,
496
496
  customTitleContentAddCard: t,
497
497
  customMessageEmptyDecisions: a,
498
- decisions: r,
498
+ decisions: o,
499
499
  textValues: i,
500
500
  decisionTemplate: u,
501
501
  isModalOpen: l,
@@ -509,14 +509,14 @@ const un = T.div`
509
509
  } = e, y = H("(max-width: 681px)"), D = H("(max-width: 400px)"), { renderedCards: C, shouldRenderAddCard: N } = vn({
510
510
  controls: n,
511
511
  customTitleContentAddCard: t,
512
- decisions: r,
512
+ decisions: o,
513
513
  loading: s,
514
514
  handleOpenModal: p,
515
515
  handleDelete: b,
516
516
  textValues: i
517
- }), A = (r == null ? void 0 : r.length) === 0 && !s;
517
+ }), A = (o == null ? void 0 : o.length) === 0 && !s;
518
518
  return /* @__PURE__ */ h(E, { children: [
519
- /* @__PURE__ */ o(pn, { children: /* @__PURE__ */ o(hn, { children: /* @__PURE__ */ o(g, { direction: "column", gap: "16px", padding: "6px", children: A ? /* @__PURE__ */ h(
519
+ /* @__PURE__ */ r(pn, { children: /* @__PURE__ */ r(hn, { children: /* @__PURE__ */ r(g, { direction: "column", gap: "16px", padding: "6px", children: A ? /* @__PURE__ */ h(
520
520
  g,
521
521
  {
522
522
  direction: "column",
@@ -526,7 +526,7 @@ const un = T.div`
526
526
  justifyContent: "center",
527
527
  alignItems: "center",
528
528
  children: [
529
- /* @__PURE__ */ o(w, { as: "span", type: "label", size: "large", appearance: "gray", children: a || /* @__PURE__ */ h(E, { children: [
529
+ /* @__PURE__ */ r(w, { as: "span", type: "label", size: "large", appearance: "gray", children: a || /* @__PURE__ */ h(E, { children: [
530
530
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
531
531
  /* @__PURE__ */ h(
532
532
  w,
@@ -545,10 +545,10 @@ const un = T.div`
545
545
  ),
546
546
  "para empezar."
547
547
  ] }) }),
548
- /* @__PURE__ */ o(
548
+ /* @__PURE__ */ r(
549
549
  U,
550
550
  {
551
- iconBefore: /* @__PURE__ */ o(J, {}),
551
+ iconBefore: /* @__PURE__ */ r(J, {}),
552
552
  onClick: () => p ? p() : null,
553
553
  children: t || "Agregar decisión"
554
554
  }
@@ -571,7 +571,7 @@ const un = T.div`
571
571
  C,
572
572
  N && te({
573
573
  type: "add",
574
- index: r == null ? void 0 : r.length,
574
+ index: o == null ? void 0 : o.length,
575
575
  controls: n,
576
576
  customTitleContentAddCard: t,
577
577
  customMessageEmptyDecisions: a,
@@ -585,13 +585,13 @@ const un = T.div`
585
585
  ]
586
586
  }
587
587
  ) }) }) }),
588
- l && /* @__PURE__ */ o(
588
+ l && /* @__PURE__ */ r(
589
589
  Ie,
590
590
  {
591
591
  portalId: "modal-portal",
592
592
  onCloseModal: c,
593
593
  title: d ? "Editar Decisión" : "Nueva decisión",
594
- children: /* @__PURE__ */ o(
594
+ children: /* @__PURE__ */ r(
595
595
  Oe,
596
596
  {
597
597
  decision: d || u,
@@ -605,19 +605,19 @@ const un = T.div`
605
605
  )
606
606
  ] });
607
607
  }, Fe = (e) => {
608
- const { children: n, controls: t = !0, handleDelete: a, id: r } = e;
608
+ const { children: n, controls: t = !0, handleDelete: a, id: o } = e;
609
609
  return /* @__PURE__ */ h(Ve, { width: "100%", children: [
610
610
  n,
611
- t && /* @__PURE__ */ o(E, { children: /* @__PURE__ */ o(g, { gap: "16px", justifyContent: "end", margin: "16px 0 0 0", children: /* @__PURE__ */ o(
611
+ t && /* @__PURE__ */ r(E, { children: /* @__PURE__ */ r(g, { gap: "16px", justifyContent: "end", margin: "16px 0 0 0", children: /* @__PURE__ */ r(
612
612
  U,
613
613
  {
614
614
  cursorHover: !0,
615
615
  appearance: "danger",
616
616
  spacing: "compact",
617
617
  variant: "outlined",
618
- iconBefore: /* @__PURE__ */ o(Te, {}),
618
+ iconBefore: /* @__PURE__ */ r(Te, {}),
619
619
  onClick: () => {
620
- a(r);
620
+ a(o);
621
621
  },
622
622
  children: "Eliminar"
623
623
  }
@@ -649,8 +649,8 @@ const un = T.div`
649
649
  margin: ${({ $margin: e }) => e};
650
650
  padding: ${({ $padding: e }) => e};
651
651
  background: ${({ $background: e, theme: n }) => {
652
- var t, a, r, i;
653
- return e ? `${((a = (t = n == null ? void 0 : n.palette) == null ? void 0 : t.neutral) == null ? void 0 : a.N10) || x.palette.neutral.N10}` : `${((i = (r = n == null ? void 0 : n.palette) == null ? void 0 : r.neutral) == null ? void 0 : i.N0) || x.palette.neutral.N0}`;
652
+ var t, a, o, i;
653
+ return e ? `${((a = (t = n == null ? void 0 : n.palette) == null ? void 0 : t.neutral) == null ? void 0 : a.N10) || x.palette.neutral.N10}` : `${((i = (o = n == null ? void 0 : n.palette) == null ? void 0 : o.neutral) == null ? void 0 : i.N0) || x.palette.neutral.N0}`;
654
654
  }};
655
655
  border: ${({ $border: e, theme: n }) => {
656
656
  var t, a;
@@ -664,7 +664,7 @@ const un = T.div`
664
664
  const {
665
665
  children: t,
666
666
  wrap: a,
667
- direction: r = "column",
667
+ direction: o = "column",
668
668
  justifyContent: i,
669
669
  alignItems: u,
670
670
  alignContent: l,
@@ -679,11 +679,11 @@ const un = T.div`
679
679
  boxSizing: D,
680
680
  scroll: C = !1
681
681
  } = e;
682
- return /* @__PURE__ */ o(
682
+ return /* @__PURE__ */ r(
683
683
  Nn,
684
684
  {
685
685
  ref: n,
686
- direction: r,
686
+ direction: o,
687
687
  $justifyContent: i,
688
688
  $alignItems: u,
689
689
  $alignContent: l,
@@ -709,7 +709,7 @@ const En = (e) => {
709
709
  conditionsAlignment: n,
710
710
  decision: t,
711
711
  decisionMapper: a,
712
- loading: r,
712
+ loading: o,
713
713
  textValues: i,
714
714
  visibleConditions: u,
715
715
  tagLabel: l,
@@ -720,14 +720,14 @@ const En = (e) => {
720
720
  effectiveFromRenderer: m,
721
721
  validUntilRenderer: b
722
722
  } = e;
723
- return r ? /* @__PURE__ */ h(g, { direction: "column", gap: "16px", children: [
723
+ return o ? /* @__PURE__ */ h(g, { direction: "column", gap: "16px", children: [
724
724
  /* @__PURE__ */ h(
725
725
  g,
726
726
  {
727
727
  alignItems: "start",
728
728
  justifyContent: "space-between",
729
729
  children: [
730
- /* @__PURE__ */ o(
730
+ /* @__PURE__ */ r(
731
731
  Q,
732
732
  {
733
733
  element: a,
@@ -738,12 +738,12 @@ const En = (e) => {
738
738
  }
739
739
  ),
740
740
  /* @__PURE__ */ h(g, { gap: "8px", children: [
741
- /* @__PURE__ */ o(q, { appearance: "gray", label: l, displayIcon: !1 }),
742
- /* @__PURE__ */ o(
743
- R,
741
+ /* @__PURE__ */ r(q, { appearance: "gray", label: l, displayIcon: !1 }),
742
+ /* @__PURE__ */ r(
743
+ F,
744
744
  {
745
745
  appearance: "dark",
746
- icon: d ? /* @__PURE__ */ o(Me, {}) : /* @__PURE__ */ o(we, {}),
746
+ icon: d ? /* @__PURE__ */ r(Me, {}) : /* @__PURE__ */ r(we, {}),
747
747
  onClick: s,
748
748
  size: "24px",
749
749
  cursorHover: !0
@@ -755,9 +755,9 @@ const En = (e) => {
755
755
  t.ruleName
756
756
  ),
757
757
  d && /* @__PURE__ */ h(E, { children: [
758
- /* @__PURE__ */ o(F, { dashed: !0 }),
758
+ /* @__PURE__ */ r(O, { dashed: !0 }),
759
759
  /* @__PURE__ */ h(g, { direction: "column", gap: "12px", children: [
760
- /* @__PURE__ */ o(
760
+ /* @__PURE__ */ r(
761
761
  w,
762
762
  {
763
763
  type: "label",
@@ -776,14 +776,14 @@ const En = (e) => {
776
776
  gap: "8px",
777
777
  justifyContent: n,
778
778
  children: [
779
- u.map((f) => /* @__PURE__ */ o(
779
+ u.map((f) => /* @__PURE__ */ r(
780
780
  z,
781
781
  {
782
782
  direction: "column",
783
783
  padding: "6px 12px",
784
784
  borderRadius: "8px",
785
785
  background: !0,
786
- children: /* @__PURE__ */ o(
786
+ children: /* @__PURE__ */ r(
787
787
  Q,
788
788
  {
789
789
  element: { ...f, value: f.value },
@@ -795,14 +795,14 @@ const En = (e) => {
795
795
  },
796
796
  f.conditionName
797
797
  )),
798
- p && m && /* @__PURE__ */ o(
798
+ p && m && /* @__PURE__ */ r(
799
799
  z,
800
800
  {
801
801
  direction: "column",
802
802
  padding: "6px 12px",
803
803
  borderRadius: "8px",
804
804
  background: !0,
805
- children: /* @__PURE__ */ o(
805
+ children: /* @__PURE__ */ r(
806
806
  Q,
807
807
  {
808
808
  element: m.element,
@@ -812,14 +812,14 @@ const En = (e) => {
812
812
  )
813
813
  }
814
814
  ),
815
- c && b && /* @__PURE__ */ o(
815
+ c && b && /* @__PURE__ */ r(
816
816
  z,
817
817
  {
818
818
  direction: "column",
819
819
  padding: "6px 12px",
820
820
  borderRadius: "8px",
821
821
  background: !0,
822
- children: /* @__PURE__ */ o(
822
+ children: /* @__PURE__ */ r(
823
823
  Q,
824
824
  {
825
825
  element: b.element,
@@ -836,12 +836,12 @@ const En = (e) => {
836
836
  ] })
837
837
  ] }) : /* @__PURE__ */ h(g, { justifyContent: "space-between", children: [
838
838
  /* @__PURE__ */ h(g, { alignItems: "center", gap: "8px", children: [
839
- /* @__PURE__ */ o(V, { animated: !0, width: "150px" }),
840
- /* @__PURE__ */ o(V, { animated: !0, width: "70px" })
839
+ /* @__PURE__ */ r(V, { animated: !0, width: "150px" }),
840
+ /* @__PURE__ */ r(V, { animated: !0, width: "70px" })
841
841
  ] }),
842
842
  /* @__PURE__ */ h(g, { alignItems: "center", gap: "8px", children: [
843
- /* @__PURE__ */ o(V, { animated: !0, width: "50px" }),
844
- /* @__PURE__ */ o(Be, { animated: !0 })
843
+ /* @__PURE__ */ r(V, { animated: !0, width: "50px" }),
844
+ /* @__PURE__ */ r(Be, { animated: !0 })
845
845
  ] })
846
846
  ] });
847
847
  }, Re = (e) => {
@@ -850,7 +850,7 @@ const En = (e) => {
850
850
  decision: n,
851
851
  loading: t = !1,
852
852
  textValues: a,
853
- position: r,
853
+ position: o,
854
854
  isOpen: i = !1,
855
855
  onToggle: u
856
856
  } = e, l = !!(n != null && n.effectiveFrom), d = !!(n != null && n.validUntil), s = l ? {
@@ -858,26 +858,26 @@ const En = (e) => {
858
858
  labelName: a == null ? void 0 : a.effectiveFrom,
859
859
  value: String(n.effectiveFrom),
860
860
  howToSetTheDecision: B.EQUAL,
861
- decisionDataType: O.DATE
861
+ decisionDataType: R.DATE
862
862
  },
863
863
  valueData: G({
864
864
  labelName: a == null ? void 0 : a.effectiveFrom,
865
865
  value: String(n.effectiveFrom),
866
866
  howToSetTheDecision: B.EQUAL,
867
- decisionDataType: O.DATE
867
+ decisionDataType: R.DATE
868
868
  })
869
869
  } : null, p = d ? {
870
870
  element: {
871
871
  labelName: a == null ? void 0 : a.validUntil,
872
872
  value: String(n.validUntil),
873
873
  howToSetTheDecision: B.EQUAL,
874
- decisionDataType: O.DATE
874
+ decisionDataType: R.DATE
875
875
  },
876
876
  valueData: G({
877
877
  labelName: a == null ? void 0 : a.validUntil,
878
878
  value: String(n.validUntil),
879
879
  howToSetTheDecision: B.EQUAL,
880
- decisionDataType: O.DATE
880
+ decisionDataType: R.DATE
881
881
  })
882
882
  } : null, c = n ? {
883
883
  labelName: n.labelName || "",
@@ -886,8 +886,8 @@ const En = (e) => {
886
886
  howToSetTheDecision: n.howToSetTheDecision || "EqualTo"
887
887
  } : null, m = ((C = n == null ? void 0 : n.conditionsThatEstablishesTheDecision) == null ? void 0 : C.filter(
888
888
  (N) => !N.hidden
889
- )) || [], b = Array.from({ length: 5 }), f = !!(!t && n && a && c), y = m.length < 2 ? "start" : "space-between", D = `N° ${String((r ?? 0) + 1).padStart(2, "0")}`;
890
- return /* @__PURE__ */ o(
889
+ )) || [], b = Array.from({ length: 5 }), f = !!(!t && n && a && c), y = m.length < 2 ? "start" : "space-between", D = `N° ${String((o ?? 0) + 1).padStart(2, "0")}`;
890
+ return /* @__PURE__ */ r(
891
891
  En,
892
892
  {
893
893
  conditionsAlignment: y,
@@ -982,7 +982,7 @@ const An = T.div`
982
982
  }
983
983
  `, On = (e) => {
984
984
  const { index: n, handleOpenModal: t } = e;
985
- return /* @__PURE__ */ o(
985
+ return /* @__PURE__ */ r(
986
986
  Fe,
987
987
  {
988
988
  id: `loading-card-${n}`,
@@ -990,7 +990,7 @@ const An = T.div`
990
990
  },
991
991
  handleView: () => t ? t() : null,
992
992
  controls: !1,
993
- children: /* @__PURE__ */ o(Re, { loading: !0 })
993
+ children: /* @__PURE__ */ r(Re, { loading: !0 })
994
994
  },
995
995
  `loading-card-${n}`
996
996
  );
@@ -999,20 +999,20 @@ const An = T.div`
999
999
  decision: n,
1000
1000
  controls: t,
1001
1001
  handleOpenModal: a,
1002
- handleDelete: r,
1002
+ handleDelete: o,
1003
1003
  textValues: i,
1004
1004
  index: u,
1005
1005
  isOpen: l,
1006
1006
  onToggle: d
1007
1007
  } = e;
1008
- return n ? /* @__PURE__ */ o(de, { children: /* @__PURE__ */ o(g, { direction: "column", gap: "4px", width: "100%", children: /* @__PURE__ */ o(
1008
+ return n ? /* @__PURE__ */ r(de, { children: /* @__PURE__ */ r(g, { direction: "column", gap: "4px", width: "100%", children: /* @__PURE__ */ r(
1009
1009
  Fe,
1010
1010
  {
1011
1011
  id: n.decisionId,
1012
- handleDelete: () => r ? r(n.decisionId) : null,
1012
+ handleDelete: () => o ? o(n.decisionId) : null,
1013
1013
  handleView: () => a ? a(n) : null,
1014
1014
  controls: t,
1015
- children: /* @__PURE__ */ o(
1015
+ children: /* @__PURE__ */ r(
1016
1016
  Re,
1017
1017
  {
1018
1018
  decision: n,
@@ -1029,13 +1029,13 @@ const An = T.div`
1029
1029
  customTitleContentAddCard: n,
1030
1030
  index: t,
1031
1031
  handleOpenModal: a,
1032
- shouldRenderEmptyMessage: r
1032
+ shouldRenderEmptyMessage: o
1033
1033
  } = e;
1034
- return /* @__PURE__ */ o(In, { children: r ? null : /* @__PURE__ */ o(
1034
+ return /* @__PURE__ */ r(In, { children: o ? null : /* @__PURE__ */ r(
1035
1035
  An,
1036
1036
  {
1037
1037
  onClick: () => a ? a() : null,
1038
- children: /* @__PURE__ */ o(
1038
+ children: /* @__PURE__ */ r(
1039
1039
  z,
1040
1040
  {
1041
1041
  direction: "column",
@@ -1051,12 +1051,12 @@ const An = T.div`
1051
1051
  alignItems: "center",
1052
1052
  padding: "16px",
1053
1053
  children: [
1054
- /* @__PURE__ */ o(w, { appearance: "gray", type: "label", size: "large", weight: "bold", children: n || "Agregar decisión" }),
1055
- /* @__PURE__ */ o(
1056
- R,
1054
+ /* @__PURE__ */ r(w, { appearance: "gray", type: "label", size: "large", weight: "bold", children: n || "Agregar decisión" }),
1055
+ /* @__PURE__ */ r(
1056
+ F,
1057
1057
  {
1058
1058
  appearance: "gray",
1059
- icon: /* @__PURE__ */ o(J, {}),
1059
+ icon: /* @__PURE__ */ r(J, {}),
1060
1060
  size: "24px",
1061
1061
  cursorHover: !0
1062
1062
  }
@@ -1080,19 +1080,19 @@ const An = T.div`
1080
1080
  controls: n,
1081
1081
  customTitleContentAddCard: t,
1082
1082
  decisions: a,
1083
- loading: r,
1083
+ loading: o,
1084
1084
  handleOpenModal: i,
1085
1085
  handleDelete: u,
1086
1086
  textValues: l,
1087
1087
  isOpenFor: d,
1088
1088
  toggleAt: s
1089
- } = e, p = r ? Array.from({ length: 3 }).map(
1089
+ } = e, p = o ? Array.from({ length: 3 }).map(
1090
1090
  (m, b) => ae({
1091
1091
  type: "loading",
1092
1092
  index: b,
1093
1093
  controls: n,
1094
1094
  customTitleContentAddCard: t,
1095
- loading: r,
1095
+ loading: o,
1096
1096
  handleOpenModal: i,
1097
1097
  handleDelete: u,
1098
1098
  textValues: l
@@ -1103,7 +1103,7 @@ const An = T.div`
1103
1103
  decision: m,
1104
1104
  controls: d ? d(b) : !1,
1105
1105
  customTitleContentAddCard: t,
1106
- loading: r,
1106
+ loading: o,
1107
1107
  handleOpenModal: i,
1108
1108
  handleDelete: u,
1109
1109
  textValues: l,
@@ -1111,14 +1111,14 @@ const An = T.div`
1111
1111
  isOpen: d ? d(b) : !1,
1112
1112
  onToggle: s ? () => s(b) : void 0
1113
1113
  })
1114
- ), c = ((a == null ? void 0 : a.length) === 0 || a.length < Math.floor(window.innerWidth / 300)) && !r && n;
1114
+ ), c = ((a == null ? void 0 : a.length) === 0 || a.length < Math.floor(window.innerWidth / 300)) && !o && n;
1115
1115
  return { renderedCards: p, shouldRenderAddCard: c };
1116
- }, Ft = (e) => {
1116
+ }, Ot = (e) => {
1117
1117
  const {
1118
1118
  controls: n = !0,
1119
1119
  customTitleContentAddCard: t,
1120
1120
  customMessageEmptyDecisions: a,
1121
- decisions: r,
1121
+ decisions: o,
1122
1122
  textValues: i,
1123
1123
  decisionTemplate: u,
1124
1124
  isModalOpen: l,
@@ -1132,16 +1132,16 @@ const An = T.div`
1132
1132
  } = e, [y, D] = M(null), C = H("(max-width: 681px)"), { renderedCards: N, shouldRenderAddCard: A } = Un({
1133
1133
  controls: n,
1134
1134
  customTitleContentAddCard: t,
1135
- decisions: r,
1135
+ decisions: o,
1136
1136
  loading: s,
1137
1137
  handleOpenModal: p,
1138
1138
  handleDelete: b,
1139
1139
  textValues: i,
1140
1140
  isOpenFor: (k) => y === k,
1141
1141
  toggleAt: (k) => D((L) => L === k ? null : k)
1142
- }), $ = (r == null ? void 0 : r.length) === 0 && !s;
1142
+ }), $ = (o == null ? void 0 : o.length) === 0 && !s;
1143
1143
  return /* @__PURE__ */ h(E, { children: [
1144
- /* @__PURE__ */ o(Fn, { children: /* @__PURE__ */ o(Rn, { children: /* @__PURE__ */ o(g, { direction: "column", gap: "16px", padding: "6px", children: $ ? /* @__PURE__ */ h(
1144
+ /* @__PURE__ */ r(Fn, { children: /* @__PURE__ */ r(Rn, { children: /* @__PURE__ */ r(g, { direction: "column", gap: "16px", padding: "6px", children: $ ? /* @__PURE__ */ h(
1145
1145
  g,
1146
1146
  {
1147
1147
  direction: "column",
@@ -1151,7 +1151,7 @@ const An = T.div`
1151
1151
  justifyContent: "center",
1152
1152
  alignItems: "center",
1153
1153
  children: [
1154
- /* @__PURE__ */ o(w, { as: "span", type: "label", size: "large", appearance: "gray", children: a || /* @__PURE__ */ h(E, { children: [
1154
+ /* @__PURE__ */ r(w, { as: "span", type: "label", size: "large", appearance: "gray", children: a || /* @__PURE__ */ h(E, { children: [
1155
1155
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
1156
1156
  /* @__PURE__ */ h(
1157
1157
  w,
@@ -1170,10 +1170,10 @@ const An = T.div`
1170
1170
  ),
1171
1171
  "para empezar."
1172
1172
  ] }) }),
1173
- /* @__PURE__ */ o(
1173
+ /* @__PURE__ */ r(
1174
1174
  U,
1175
1175
  {
1176
- iconBefore: /* @__PURE__ */ o(J, {}),
1176
+ iconBefore: /* @__PURE__ */ r(J, {}),
1177
1177
  onClick: () => p ? p() : null,
1178
1178
  children: t || "Agregar decisión"
1179
1179
  }
@@ -1196,7 +1196,7 @@ const An = T.div`
1196
1196
  N,
1197
1197
  A && ae({
1198
1198
  type: "add",
1199
- index: r == null ? void 0 : r.length,
1199
+ index: o == null ? void 0 : o.length,
1200
1200
  controls: n,
1201
1201
  customTitleContentAddCard: t,
1202
1202
  customMessageEmptyDecisions: a,
@@ -1210,13 +1210,13 @@ const An = T.div`
1210
1210
  ]
1211
1211
  }
1212
1212
  ) }) }) }),
1213
- l && /* @__PURE__ */ o(
1213
+ l && /* @__PURE__ */ r(
1214
1214
  Ie,
1215
1215
  {
1216
1216
  portalId: "modal-portal",
1217
1217
  onCloseModal: c,
1218
1218
  title: d ? "Editar Decisión" : "Nueva decisión",
1219
- children: /* @__PURE__ */ o(
1219
+ children: /* @__PURE__ */ r(
1220
1220
  Oe,
1221
1221
  {
1222
1222
  decision: d || u,
@@ -1247,30 +1247,30 @@ const An = T.div`
1247
1247
  height: ${({ $height: e }) => e};
1248
1248
  box-sizing: border-box;
1249
1249
  `;
1250
- function Hn(e) {
1250
+ function jn(e) {
1251
1251
  const {
1252
1252
  children: n,
1253
1253
  padding: t = "16px",
1254
1254
  margin: a,
1255
- borderRadius: r = "8px",
1255
+ borderRadius: o = "8px",
1256
1256
  width: i,
1257
1257
  height: u
1258
1258
  } = e;
1259
- return /* @__PURE__ */ o(
1259
+ return /* @__PURE__ */ r(
1260
1260
  Bn,
1261
1261
  {
1262
1262
  $padding: t,
1263
1263
  $margin: a,
1264
- $borderRadius: r,
1264
+ $borderRadius: o,
1265
1265
  $width: i,
1266
1266
  $height: u,
1267
1267
  children: n
1268
1268
  }
1269
1269
  );
1270
1270
  }
1271
- const jn = (e, n) => {
1272
- const [t, a] = M([]), [r, i] = M([]), [u, l] = M(!1), d = K(null);
1273
- return re(() => {
1271
+ const Hn = (e, n) => {
1272
+ const [t, a] = M([]), [o, i] = M([]), [u, l] = M(!1), d = Y(null);
1273
+ return oe(() => {
1274
1274
  if (!e.current || !d.current) return;
1275
1275
  const s = e.current, p = d.current, c = () => {
1276
1276
  var A;
@@ -1288,7 +1288,7 @@ const jn = (e, n) => {
1288
1288
  requestAnimationFrame(c);
1289
1289
  });
1290
1290
  return m.observe(s), () => m.disconnect();
1291
- }, [n, e]), { visible: t, hidden: r, showOverflowIndicator: u, measurementRef: d };
1291
+ }, [n, e]), { visible: t, hidden: o, showOverflowIndicator: u, measurementRef: d };
1292
1292
  };
1293
1293
  T.div`
1294
1294
  & > div {
@@ -1309,7 +1309,7 @@ const _n = T.div`
1309
1309
  overflow: hidden;
1310
1310
  `, Pn = T.div`
1311
1311
  cursor: pointer;
1312
- `, oe = {
1312
+ `, re = {
1313
1313
  border: {
1314
1314
  color: {
1315
1315
  regular: x.palette.neutral.N40,
@@ -1360,13 +1360,13 @@ const _n = T.div`
1360
1360
  &:hover {
1361
1361
  background-color: ${({ theme: e }) => {
1362
1362
  var n, t, a;
1363
- return ((a = (t = (n = e == null ? void 0 : e.input) == null ? void 0 : n.background) == null ? void 0 : t.color) == null ? void 0 : a.regular) || oe.background.color.regular;
1363
+ return ((a = (t = (n = e == null ? void 0 : e.input) == null ? void 0 : n.background) == null ? void 0 : t.color) == null ? void 0 : a.regular) || re.background.color.regular;
1364
1364
  }};
1365
1365
  }
1366
1366
  `, Qn = (e) => {
1367
1367
  var m, b, f, y, D, C;
1368
- const { id: n, label: t, leadingIcon: a, onClose: r } = e, [i, u] = M(!1), l = () => u(!0), d = () => u(!1), s = Pe(qe), p = ((f = (b = (m = s == null ? void 0 : s.input) == null ? void 0 : m.option) == null ? void 0 : b.appearance) == null ? void 0 : f.hover) ?? oe.option.appearance.hover, c = ((C = (D = (y = s == null ? void 0 : s.input) == null ? void 0 : y.option) == null ? void 0 : D.appearance) == null ? void 0 : C.regular) ?? oe.option.appearance.regular;
1369
- return /* @__PURE__ */ o(
1368
+ const { id: n, label: t, leadingIcon: a, onClose: o } = e, [i, u] = M(!1), l = () => u(!0), d = () => u(!1), s = Pe(qe), p = ((f = (b = (m = s == null ? void 0 : s.input) == null ? void 0 : m.option) == null ? void 0 : b.appearance) == null ? void 0 : f.hover) ?? re.option.appearance.hover, c = ((C = (D = (y = s == null ? void 0 : s.input) == null ? void 0 : y.option) == null ? void 0 : D.appearance) == null ? void 0 : C.regular) ?? re.option.appearance.regular;
1369
+ return /* @__PURE__ */ r(
1370
1370
  Gn,
1371
1371
  {
1372
1372
  id: n,
@@ -1383,15 +1383,15 @@ const _n = T.div`
1383
1383
  templateColumns: "auto 1fr auto",
1384
1384
  width: "100%",
1385
1385
  children: [
1386
- a && /* @__PURE__ */ o(
1387
- R,
1386
+ a && /* @__PURE__ */ r(
1387
+ F,
1388
1388
  {
1389
1389
  icon: a,
1390
1390
  size: "medium",
1391
1391
  appearance: i ? p : c
1392
1392
  }
1393
1393
  ),
1394
- /* @__PURE__ */ o(
1394
+ /* @__PURE__ */ r(
1395
1395
  w,
1396
1396
  {
1397
1397
  textAlign: "start",
@@ -1400,13 +1400,13 @@ const _n = T.div`
1400
1400
  children: t
1401
1401
  }
1402
1402
  ),
1403
- /* @__PURE__ */ o(
1404
- R,
1403
+ /* @__PURE__ */ r(
1404
+ F,
1405
1405
  {
1406
- icon: /* @__PURE__ */ o(Le, {}),
1406
+ icon: /* @__PURE__ */ r(Le, {}),
1407
1407
  size: "small",
1408
1408
  onClick: (N) => {
1409
- N.stopPropagation(), r == null || r();
1409
+ N.stopPropagation(), o == null || o();
1410
1410
  },
1411
1411
  appearance: i ? p : c,
1412
1412
  cursorHover: !0
@@ -1417,23 +1417,23 @@ const _n = T.div`
1417
1417
  )
1418
1418
  }
1419
1419
  );
1420
- }, Rt = (e) => {
1420
+ }, Mt = (e) => {
1421
1421
  const {
1422
1422
  appliedFilters: n = [],
1423
1423
  onClear: t,
1424
1424
  onClick: a,
1425
- noFiltersLabel: r,
1425
+ noFiltersLabel: o,
1426
1426
  titleClearFilter: i,
1427
1427
  titleFilter: u
1428
- } = e, l = K(null), d = K(null), s = K(null), {
1428
+ } = e, l = Y(null), d = Y(null), s = Y(null), {
1429
1429
  visible: p,
1430
1430
  hidden: c,
1431
1431
  showOverflowIndicator: m,
1432
1432
  measurementRef: b
1433
- } = jn(l, n), [f, y] = M(!1), D = (v) => {
1433
+ } = Hn(l, n), [f, y] = M(!1), D = (v) => {
1434
1434
  v.stopPropagation(), y((k) => !k);
1435
1435
  };
1436
- re(() => {
1436
+ oe(() => {
1437
1437
  const v = (k) => {
1438
1438
  var se, ce;
1439
1439
  const L = k.target;
@@ -1450,8 +1450,8 @@ const _n = T.div`
1450
1450
  var k, L;
1451
1451
  (L = (k = c.find((I) => I.label === v)) == null ? void 0 : k.onClose) == null || L.call(k), y(!1);
1452
1452
  };
1453
- return /* @__PURE__ */ h(Hn, { borderRadius: "8px", width: "100%", children: [
1454
- /* @__PURE__ */ o(qn, { ref: b, children: n.map((v) => /* @__PURE__ */ o("div", { "data-filter-tag": "true", children: /* @__PURE__ */ o(
1453
+ return /* @__PURE__ */ h(jn, { borderRadius: "8px", width: "100%", children: [
1454
+ /* @__PURE__ */ r(qn, { ref: b, children: n.map((v) => /* @__PURE__ */ r("div", { "data-filter-tag": "true", children: /* @__PURE__ */ r(
1455
1455
  q,
1456
1456
  {
1457
1457
  appearance: "primary",
@@ -1463,7 +1463,7 @@ const _n = T.div`
1463
1463
  }
1464
1464
  ) }, v.label)) }),
1465
1465
  /* @__PURE__ */ h(X, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
1466
- /* @__PURE__ */ o(
1466
+ /* @__PURE__ */ r(
1467
1467
  z,
1468
1468
  {
1469
1469
  ref: l,
@@ -1475,8 +1475,8 @@ const _n = T.div`
1475
1475
  alignItems: "center",
1476
1476
  padding: "0px 8px",
1477
1477
  border: !0,
1478
- children: C ? /* @__PURE__ */ o(w, { size: "small", type: "label", appearance: "gray", children: r }) : /* @__PURE__ */ h(E, { children: [
1479
- p.map((v) => /* @__PURE__ */ o(
1478
+ children: C ? /* @__PURE__ */ r(w, { size: "small", type: "label", appearance: "gray", children: o }) : /* @__PURE__ */ h(E, { children: [
1479
+ p.map((v) => /* @__PURE__ */ r(
1480
1480
  q,
1481
1481
  {
1482
1482
  "data-filter-tag": "true",
@@ -1495,19 +1495,19 @@ const _n = T.div`
1495
1495
  ref: s,
1496
1496
  style: { position: "relative", display: "inline-block" },
1497
1497
  children: [
1498
- /* @__PURE__ */ o(Pn, { onClick: D, children: /* @__PURE__ */ o(
1498
+ /* @__PURE__ */ r(Pn, { onClick: D, children: /* @__PURE__ */ r(
1499
1499
  q,
1500
1500
  {
1501
1501
  appearance: "primary",
1502
1502
  label: `+${c.length}`
1503
1503
  }
1504
1504
  ) }),
1505
- N && /* @__PURE__ */ o(_n, { ref: d, children: /* @__PURE__ */ o(
1506
- He,
1505
+ N && /* @__PURE__ */ r(_n, { ref: d, children: /* @__PURE__ */ r(
1506
+ je,
1507
1507
  {
1508
1508
  options: A,
1509
1509
  onOptionClick: $,
1510
- children: c.map((v) => /* @__PURE__ */ o(
1510
+ children: c.map((v) => /* @__PURE__ */ r(
1511
1511
  Qn,
1512
1512
  {
1513
1513
  id: v.label,
@@ -1528,22 +1528,22 @@ const _n = T.div`
1528
1528
  ] })
1529
1529
  }
1530
1530
  ),
1531
- /* @__PURE__ */ o(
1531
+ /* @__PURE__ */ r(
1532
1532
  U,
1533
1533
  {
1534
1534
  cursorHover: !0,
1535
1535
  disabled: C,
1536
- iconBefore: /* @__PURE__ */ o(Ce, {}),
1536
+ iconBefore: /* @__PURE__ */ r(Ce, {}),
1537
1537
  onClick: t,
1538
1538
  variant: "outlined",
1539
1539
  children: i
1540
1540
  }
1541
1541
  ),
1542
- /* @__PURE__ */ o(
1542
+ /* @__PURE__ */ r(
1543
1543
  U,
1544
1544
  {
1545
1545
  cursorHover: !0,
1546
- iconBefore: /* @__PURE__ */ o(De, {}),
1546
+ iconBefore: /* @__PURE__ */ r(De, {}),
1547
1547
  onClick: a,
1548
1548
  variant: "outlined",
1549
1549
  children: u
@@ -1564,12 +1564,12 @@ const _n = T.div`
1564
1564
  padding: 24px;
1565
1565
  gap: 24px;
1566
1566
  box-sizing: border-box;
1567
- `, Ot = (e) => {
1567
+ `, Lt = (e) => {
1568
1568
  const {
1569
1569
  actionButtonLabel: n,
1570
1570
  cancelButtonLabel: t,
1571
1571
  children: a,
1572
- loading: r,
1572
+ loading: o,
1573
1573
  onClick: i,
1574
1574
  onCloseModal: u,
1575
1575
  portalId: l,
@@ -1580,43 +1580,43 @@ const _n = T.div`
1580
1580
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
1581
1581
  );
1582
1582
  return Ee(
1583
- /* @__PURE__ */ o(Se, { children: /* @__PURE__ */ h(Wn, { $smallScreen: s, children: [
1583
+ /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ h(Wn, { $smallScreen: s, children: [
1584
1584
  /* @__PURE__ */ h(g, { direction: "column", gap: "16px", children: [
1585
1585
  /* @__PURE__ */ h(g, { alignContent: "center", justifyContent: "space-between", children: [
1586
- /* @__PURE__ */ o(w, { appearance: "dark", size: "small", type: "headline", children: d }),
1586
+ /* @__PURE__ */ r(w, { appearance: "dark", size: "small", type: "headline", children: d }),
1587
1587
  /* @__PURE__ */ h(g, { alignItems: "center", children: [
1588
- /* @__PURE__ */ o(w, { children: "Cerrar" }),
1589
- /* @__PURE__ */ o(
1590
- R,
1588
+ /* @__PURE__ */ r(w, { children: "Cerrar" }),
1589
+ /* @__PURE__ */ r(
1590
+ F,
1591
1591
  {
1592
1592
  appearance: "dark",
1593
- icon: /* @__PURE__ */ o(ye, {}),
1593
+ icon: /* @__PURE__ */ r(ye, {}),
1594
1594
  onClick: u,
1595
1595
  cursorHover: !0
1596
1596
  }
1597
1597
  )
1598
1598
  ] })
1599
1599
  ] }),
1600
- /* @__PURE__ */ o(F, {})
1600
+ /* @__PURE__ */ r(O, {})
1601
1601
  ] }),
1602
1602
  a,
1603
1603
  /* @__PURE__ */ h(g, { gap: "20px", justifyContent: "flex-end", children: [
1604
- /* @__PURE__ */ o(
1604
+ /* @__PURE__ */ r(
1605
1605
  U,
1606
1606
  {
1607
1607
  appearance: "gray",
1608
1608
  onClick: u,
1609
- iconBefore: /* @__PURE__ */ o(Ce, {}),
1609
+ iconBefore: /* @__PURE__ */ r(Ce, {}),
1610
1610
  spacing: "wide",
1611
1611
  variant: "outlined",
1612
1612
  children: t
1613
1613
  }
1614
1614
  ),
1615
- /* @__PURE__ */ o(
1615
+ /* @__PURE__ */ r(
1616
1616
  U,
1617
1617
  {
1618
1618
  appearance: "primary",
1619
- loading: r,
1619
+ loading: o,
1620
1620
  onClick: i,
1621
1621
  spacing: "wide",
1622
1622
  variant: "filled",
@@ -1627,13 +1627,13 @@ const _n = T.div`
1627
1627
  ] }) }),
1628
1628
  p
1629
1629
  );
1630
- }, Mt = (e) => {
1631
- const { appliedFilters: n, fields: t, onChange: a, noFiltersLabel: r } = e, i = H("(max-width: 768px)"), u = !n || n.length === 0;
1630
+ }, zt = (e) => {
1631
+ const { appliedFilters: n, fields: t, onChange: a, noFiltersLabel: o } = e, i = H("(max-width: 768px)"), u = !n || n.length === 0;
1632
1632
  return /* @__PURE__ */ h(g, { direction: "column", gap: "16px", children: [
1633
1633
  i && /* @__PURE__ */ h(E, { children: [
1634
1634
  /* @__PURE__ */ h(g, { gap: "6px", width: "100%", alignItems: "center", children: [
1635
- /* @__PURE__ */ o(R, { appearance: "gray", icon: /* @__PURE__ */ o(De, {}) }),
1636
- /* @__PURE__ */ o(
1635
+ /* @__PURE__ */ r(F, { appearance: "gray", icon: /* @__PURE__ */ r(De, {}) }),
1636
+ /* @__PURE__ */ r(
1637
1637
  z,
1638
1638
  {
1639
1639
  background: !0,
@@ -1645,7 +1645,7 @@ const _n = T.div`
1645
1645
  border: !0,
1646
1646
  width: "100%",
1647
1647
  height: "36px",
1648
- children: u ? /* @__PURE__ */ o(w, { size: "small", type: "label", appearance: "gray", children: r }) : n == null ? void 0 : n.map((l) => /* @__PURE__ */ o(
1648
+ children: u ? /* @__PURE__ */ r(w, { size: "small", type: "label", appearance: "gray", children: o }) : n == null ? void 0 : n.map((l) => /* @__PURE__ */ r(
1649
1649
  q,
1650
1650
  {
1651
1651
  appearance: "primary",
@@ -1660,12 +1660,12 @@ const _n = T.div`
1660
1660
  }
1661
1661
  )
1662
1662
  ] }),
1663
- /* @__PURE__ */ o(F, { dashed: !0 })
1663
+ /* @__PURE__ */ r(O, { dashed: !0 })
1664
1664
  ] }),
1665
1665
  t.map((l) => /* @__PURE__ */ h(g, { gap: "6px", alignItems: "center", children: [
1666
- /* @__PURE__ */ o(g, { padding: "22px 0 0 0", children: /* @__PURE__ */ o(R, { appearance: "primary", icon: l.icon }) }),
1667
- /* @__PURE__ */ o(
1668
- je,
1666
+ /* @__PURE__ */ r(g, { padding: "22px 0 0 0", children: /* @__PURE__ */ r(F, { appearance: "primary", icon: l.icon }) }),
1667
+ /* @__PURE__ */ r(
1668
+ He,
1669
1669
  {
1670
1670
  disabled: l.disabled,
1671
1671
  invalid: l.invalid,
@@ -1683,40 +1683,40 @@ const _n = T.div`
1683
1683
  )
1684
1684
  ] }, l.name))
1685
1685
  ] });
1686
- }, Kn = (e) => {
1686
+ }, Yn = (e) => {
1687
1687
  const n = [];
1688
1688
  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(";");
1689
- }, Lt = (e) => {
1689
+ }, Ut = (e) => {
1690
1690
  var u;
1691
- const { decision: n, fallbackId: t, template: a } = e, r = (l) => typeof l == "object" && l !== null && "from" in l && "to" in l ? Kn(l) : l, i = ((u = n.conditionsThatEstablishesTheDecision) == null ? void 0 : u.map((l, d) => {
1691
+ const { decision: n, fallbackId: t, template: a } = e, o = (l) => typeof l == "object" && l !== null && "from" in l && "to" in l ? Yn(l) : l, i = ((u = n.conditionsThatEstablishesTheDecision) == null ? void 0 : u.map((l, d) => {
1692
1692
  var c;
1693
1693
  const s = l == null ? void 0 : l.value;
1694
1694
  return s == null || typeof s == "string" && s.trim() === "" || Array.isArray(s) && s.length === 0 ? null : {
1695
1695
  ...(c = a.conditionsThatEstablishesTheDecision) == null ? void 0 : c[d],
1696
1696
  ...l,
1697
- value: r(s)
1697
+ value: o(s)
1698
1698
  };
1699
1699
  }).filter(Boolean)) ?? [];
1700
1700
  return {
1701
1701
  ...a,
1702
1702
  ...n,
1703
1703
  decisionId: t,
1704
- value: r(n.value),
1704
+ value: o(n.value),
1705
1705
  conditionsThatEstablishesTheDecision: i
1706
1706
  };
1707
- }, zt = (e) => {
1707
+ }, Vt = (e) => {
1708
1708
  if (typeof e != "string") return e;
1709
1709
  const n = e.split(";").map((a) => a.trim()), t = {};
1710
1710
  for (const a of n)
1711
1711
  if (a.startsWith(">")) {
1712
- const r = parseFloat(a.slice(1));
1713
- isNaN(r) || (t.from = r);
1712
+ const o = parseFloat(a.slice(1));
1713
+ isNaN(o) || (t.from = o);
1714
1714
  } else if (a.startsWith("<")) {
1715
- const r = parseFloat(a.slice(1));
1716
- isNaN(r) || (t.to = r);
1715
+ const o = parseFloat(a.slice(1));
1716
+ isNaN(o) || (t.to = o);
1717
1717
  }
1718
1718
  return t.from !== void 0 || t.to !== void 0 ? t : e;
1719
- }, Ut = (e) => {
1719
+ }, Bt = (e) => {
1720
1720
  const { dataDecision: n, originalDecision: t } = e, a = {
1721
1721
  conditionName: n.ruleName || "",
1722
1722
  labelName: n.labelName || "",
@@ -1729,14 +1729,14 @@ const _n = T.div`
1729
1729
  return {
1730
1730
  ...t,
1731
1731
  conditionsThatEstablishesTheDecision: t.conditionsThatEstablishesTheDecision.map(
1732
- (r) => r.hidden ? { ...a } : r
1732
+ (o) => o.hidden ? { ...a } : o
1733
1733
  )
1734
1734
  };
1735
- }, Vt = (e) => {
1735
+ }, jt = (e) => {
1736
1736
  const { decisions: n } = e;
1737
1737
  return n == null ? void 0 : n.map((t) => {
1738
- var r;
1739
- const a = (r = t.conditionsThatEstablishesTheDecision) == null ? void 0 : r.find(
1738
+ var o;
1739
+ const a = (o = t.conditionsThatEstablishesTheDecision) == null ? void 0 : o.find(
1740
1740
  (i) => i.hidden
1741
1741
  );
1742
1742
  return a ? {
@@ -1751,7 +1751,7 @@ const _n = T.div`
1751
1751
  )
1752
1752
  } : t;
1753
1753
  });
1754
- }, Yn = (e) => ({
1754
+ }, Kn = (e) => ({
1755
1755
  schema: ie().required("Required").test(
1756
1756
  "non-empty",
1757
1757
  "Value cannot be empty",
@@ -1779,20 +1779,20 @@ const _n = T.div`
1779
1779
  }), Zn = (e) => {
1780
1780
  const n = (e == null ? void 0 : e.from) ?? 0, t = (e == null ? void 0 : e.to) ?? 0;
1781
1781
  return {
1782
- schema: Y({
1782
+ schema: K({
1783
1783
  from: ne().required("Range From is required").max(t, "'Range From' cannot be greater than 'Range To'").min(0, "'Range From' cannot be less than 0"),
1784
1784
  to: ne().min(0, "To value must be greater than or equal to 0").required("To value is required").test(
1785
1785
  "is-greater",
1786
1786
  "To value must be greater than From value",
1787
1787
  function(a) {
1788
- const { from: r } = this.parent;
1789
- return a > r;
1788
+ const { from: o } = this.parent;
1789
+ return a > o;
1790
1790
  }
1791
1791
  )
1792
1792
  }),
1793
1793
  value: { from: n, to: t }
1794
1794
  };
1795
- }, ee = (e, n) => n === O.PERCENTAGE ? {
1795
+ }, ee = (e, n) => n === R.PERCENTAGE ? {
1796
1796
  schema: ne().required("Percentage is required").min(0, "Percentage cannot be less than 0").max(100, "Percentage cannot be greater than 100"),
1797
1797
  value: e
1798
1798
  } : {
@@ -1805,7 +1805,7 @@ const _n = T.div`
1805
1805
  [S.GREATER_THAN]: ee,
1806
1806
  [S.LESS_THAN]: ee,
1807
1807
  [S.EQUAL]: ee
1808
- }, fe = (e) => et[e] || Yn;
1808
+ }, fe = (e) => et[e] || Kn;
1809
1809
  function nt({
1810
1810
  decision: e,
1811
1811
  onSubmitEvent: n,
@@ -1813,7 +1813,7 @@ function nt({
1813
1813
  }) {
1814
1814
  const a = {
1815
1815
  ruleName: e.ruleName || "",
1816
- decisionDataType: e.decisionDataType || O.ALPHABETICAL,
1816
+ decisionDataType: e.decisionDataType || R.ALPHABETICAL,
1817
1817
  howToSetTheDecision: e.howToSetTheDecision || "",
1818
1818
  value: e.value || "",
1819
1819
  effectiveFrom: e.effectiveFrom || "",
@@ -1823,21 +1823,21 @@ function nt({
1823
1823
  checkClosed: !1,
1824
1824
  terms: !0
1825
1825
  };
1826
- let r;
1826
+ let o;
1827
1827
  const i = {
1828
1828
  ruleName: ie().required("Name is required"),
1829
1829
  value: he(() => fe(
1830
- r.values.howToSetTheDecision
1830
+ o.values.howToSetTheDecision
1831
1831
  )(
1832
- r.values.value,
1833
- r.values.decisionDataType
1832
+ o.values.value,
1833
+ o.values.decisionDataType
1834
1834
  ).schema),
1835
1835
  conditionsThatEstablishesTheDecision: he((d, { parent: s }) => {
1836
1836
  var m;
1837
- if ((s == null ? void 0 : s.toggleNone) && Object.keys(s.conditionsThatEstablishesTheDecision || {}).length > 0) return Y().shape({});
1837
+ if ((s == null ? void 0 : s.toggleNone) && Object.keys(s.conditionsThatEstablishesTheDecision || {}).length > 0) return K().shape({});
1838
1838
  const c = (m = e.conditionsThatEstablishesTheDecision) == null ? void 0 : m.reduce(
1839
1839
  (b, f) => {
1840
- if (r.values.conditionsThatEstablishesTheDecision[f.conditionName] !== void 0) {
1840
+ if (o.values.conditionsThatEstablishesTheDecision[f.conditionName] !== void 0) {
1841
1841
  const D = fe(
1842
1842
  f.howToSetTheCondition
1843
1843
  );
@@ -1850,7 +1850,7 @@ function nt({
1850
1850
  },
1851
1851
  {}
1852
1852
  );
1853
- return Y(c).test(
1853
+ return K(c).test(
1854
1854
  "at-least-one-condition",
1855
1855
  "It must be at least one condition in order for the decision to be validated correctly.",
1856
1856
  (b) => b ? Object.values(b).some(
@@ -1872,8 +1872,8 @@ function nt({
1872
1872
  }
1873
1873
  ) : s.notRequired()
1874
1874
  ));
1875
- const u = Y(i);
1876
- return r = Ge({
1875
+ const u = K(i);
1876
+ return o = Ge({
1877
1877
  initialValues: a,
1878
1878
  validationSchema: u,
1879
1879
  validateOnBlur: !0,
@@ -1897,17 +1897,17 @@ function nt({
1897
1897
  };
1898
1898
  n(s);
1899
1899
  }
1900
- }), { formik: r, handleToggleNoneChange: (d) => {
1900
+ }), { formik: o, handleToggleNoneChange: (d) => {
1901
1901
  var s;
1902
- r.setFieldValue("toggleNone", d), (s = e.conditionsThatEstablishesTheDecision) == null || s.forEach((p) => {
1902
+ o.setFieldValue("toggleNone", d), (s = e.conditionsThatEstablishesTheDecision) == null || s.forEach((p) => {
1903
1903
  if (d)
1904
- r.setFieldValue(
1904
+ o.setFieldValue(
1905
1905
  `conditionsThatEstablishesTheDecision.${p.conditionName}`,
1906
1906
  void 0
1907
1907
  );
1908
1908
  else {
1909
1909
  const c = p.howToSetTheCondition === S.LIST_OF_VALUES_MULTI ? [] : "";
1910
- r.setFieldValue(
1910
+ o.setFieldValue(
1911
1911
  `conditionsThatEstablishesTheDecision.${p.conditionName}`,
1912
1912
  c
1913
1913
  );
@@ -1941,41 +1941,41 @@ const tt = T.div`
1941
1941
  background-color: #ebecf0;
1942
1942
  border-radius: 8px;
1943
1943
  }
1944
- `, ot = (e) => {
1944
+ `, rt = (e) => {
1945
1945
  const {
1946
1946
  checked: n,
1947
1947
  children: t,
1948
1948
  handleToggleChange: a,
1949
- id: r,
1949
+ id: o,
1950
1950
  labelToggle: i,
1951
1951
  name: u,
1952
1952
  valueToggle: l = ""
1953
1953
  } = e, [d, s] = M(n), p = (c) => {
1954
1954
  s(c.target.checked), a(c);
1955
1955
  };
1956
- return re(() => {
1956
+ return oe(() => {
1957
1957
  s(n);
1958
1958
  }, [n]), /* @__PURE__ */ h(E, { children: [
1959
- /* @__PURE__ */ o(g, { children: /* @__PURE__ */ o(
1959
+ /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(
1960
1960
  ke,
1961
1961
  {
1962
1962
  checked: d,
1963
- id: r,
1963
+ id: o,
1964
1964
  name: u,
1965
1965
  onChange: p,
1966
1966
  size: "small",
1967
1967
  value: l,
1968
- children: /* @__PURE__ */ o(w, { size: "medium", type: "label", weight: "bold", children: i })
1968
+ children: /* @__PURE__ */ r(w, { size: "medium", type: "label", weight: "bold", children: i })
1969
1969
  }
1970
1970
  ) }),
1971
- d && /* @__PURE__ */ o(E, { children: t })
1971
+ d && /* @__PURE__ */ r(E, { children: t })
1972
1972
  ] });
1973
- }, rt = (e) => {
1973
+ }, ot = (e) => {
1974
1974
  const {
1975
1975
  onHandleStartChange: n,
1976
1976
  onHandleEndChange: t,
1977
1977
  onCheckClosedChange: a,
1978
- labelStart: r,
1978
+ labelStart: o,
1979
1979
  labelEnd: i,
1980
1980
  checkedClosed: u = !1,
1981
1981
  required: l = !1,
@@ -1994,7 +1994,7 @@ const tt = T.div`
1994
1994
  }, L = H("(max-width: 400px)");
1995
1995
  return /* @__PURE__ */ h(E, { children: [
1996
1996
  /* @__PURE__ */ h(g, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
1997
- /* @__PURE__ */ o(
1997
+ /* @__PURE__ */ r(
1998
1998
  w,
1999
1999
  {
2000
2000
  appearance: "gray",
@@ -2005,14 +2005,14 @@ const tt = T.div`
2005
2005
  children: "Vigencia"
2006
2006
  }
2007
2007
  ),
2008
- /* @__PURE__ */ o(
2008
+ /* @__PURE__ */ r(
2009
2009
  g,
2010
2010
  {
2011
2011
  alignContent: "center",
2012
2012
  justifyContent: "center",
2013
2013
  wrap: "wrap",
2014
2014
  gap: "4px",
2015
- children: /* @__PURE__ */ o(
2015
+ children: /* @__PURE__ */ r(
2016
2016
  _e,
2017
2017
  {
2018
2018
  label: "Cerrada",
@@ -2031,11 +2031,11 @@ const tt = T.div`
2031
2031
  justifyContent: "space-between",
2032
2032
  gap: "24px",
2033
2033
  children: [
2034
- /* @__PURE__ */ o(
2034
+ /* @__PURE__ */ r(
2035
2035
  ue,
2036
2036
  {
2037
2037
  id: "dateStart",
2038
- label: r,
2038
+ label: o,
2039
2039
  onChange: v,
2040
2040
  value: D,
2041
2041
  required: l,
@@ -2044,7 +2044,7 @@ const tt = T.div`
2044
2044
  message: p
2045
2045
  }
2046
2046
  ),
2047
- f && /* @__PURE__ */ o(
2047
+ f && /* @__PURE__ */ r(
2048
2048
  ue,
2049
2049
  {
2050
2050
  id: "dateEnd",
@@ -2066,7 +2066,7 @@ const tt = T.div`
2066
2066
  formik: n,
2067
2067
  textValues: t,
2068
2068
  onCancel: a,
2069
- visibleConditions: r,
2069
+ visibleConditions: o,
2070
2070
  normalizedDecision: i,
2071
2071
  handleToggleNoneChange: u,
2072
2072
  handleConditionToggleChange: l,
@@ -2074,14 +2074,14 @@ const tt = T.div`
2074
2074
  termStartStatus: s,
2075
2075
  termEndStatus: p
2076
2076
  } = e;
2077
- return /* @__PURE__ */ o("form", { onSubmit: n.handleSubmit, children: /* @__PURE__ */ h(g, { direction: "column", gap: "24px", children: [
2077
+ return /* @__PURE__ */ r("form", { onSubmit: n.handleSubmit, children: /* @__PURE__ */ h(g, { direction: "column", gap: "24px", children: [
2078
2078
  pe({
2079
2079
  condition: i,
2080
2080
  formik: n,
2081
2081
  isDecision: !0
2082
2082
  }),
2083
- /* @__PURE__ */ o(F, { dashed: !0 }),
2084
- /* @__PURE__ */ o(tt, { children: /* @__PURE__ */ o(at, { children: /* @__PURE__ */ h(
2083
+ /* @__PURE__ */ r(O, { dashed: !0 }),
2084
+ /* @__PURE__ */ r(tt, { children: /* @__PURE__ */ r(at, { children: /* @__PURE__ */ h(
2085
2085
  g,
2086
2086
  {
2087
2087
  direction: "column",
@@ -2096,22 +2096,22 @@ const tt = T.div`
2096
2096
  alignItems: "center",
2097
2097
  gap: "64px",
2098
2098
  children: [
2099
- /* @__PURE__ */ o(w, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
2100
- /* @__PURE__ */ o(
2099
+ /* @__PURE__ */ r(w, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
2100
+ /* @__PURE__ */ r(
2101
2101
  ke,
2102
2102
  {
2103
2103
  id: "toggleNone",
2104
2104
  onChange: () => u(!n.values.toggleNone),
2105
2105
  checked: n.values.toggleNone,
2106
2106
  size: "small",
2107
- children: /* @__PURE__ */ o(w, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
2107
+ children: /* @__PURE__ */ r(w, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
2108
2108
  }
2109
2109
  )
2110
2110
  ]
2111
2111
  }
2112
2112
  ),
2113
- /* @__PURE__ */ o(g, { direction: "column", gap: "20px", children: r == null ? void 0 : r.map((c) => /* @__PURE__ */ o(
2114
- ot,
2113
+ /* @__PURE__ */ r(g, { direction: "column", gap: "20px", children: o == null ? void 0 : o.map((c) => /* @__PURE__ */ r(
2114
+ rt,
2115
2115
  {
2116
2116
  id: `toggle-${c.conditionName}`,
2117
2117
  name: `toggle.${c.conditionName}`,
@@ -2129,9 +2129,9 @@ const tt = T.div`
2129
2129
  }
2130
2130
  ) }) }),
2131
2131
  t.terms && /* @__PURE__ */ h(E, { children: [
2132
- /* @__PURE__ */ o(F, { dashed: !0 }),
2133
- /* @__PURE__ */ o(
2134
- rt,
2132
+ /* @__PURE__ */ r(O, { dashed: !0 }),
2133
+ /* @__PURE__ */ r(
2134
+ ot,
2135
2135
  {
2136
2136
  labelStart: t.termStart,
2137
2137
  labelEnd: t.termEnd,
@@ -2150,16 +2150,16 @@ const tt = T.div`
2150
2150
  }
2151
2151
  )
2152
2152
  ] }),
2153
- /* @__PURE__ */ o(F, {}),
2154
- d && /* @__PURE__ */ o(w, { type: "label", size: "medium", appearance: "danger", children: String(n.errors.conditionsThatEstablishesTheDecision) }),
2153
+ /* @__PURE__ */ r(O, {}),
2154
+ d && /* @__PURE__ */ r(w, { type: "label", size: "medium", appearance: "danger", children: String(n.errors.conditionsThatEstablishesTheDecision) }),
2155
2155
  /* @__PURE__ */ h(g, { direction: "row", justifyContent: "end", gap: "16px", children: [
2156
- /* @__PURE__ */ o(U, { appearance: "gray", onClick: a, children: t.cancel }),
2157
- /* @__PURE__ */ o(U, { type: "submit", children: t.confirm })
2156
+ /* @__PURE__ */ r(U, { appearance: "gray", onClick: a, children: t.cancel }),
2157
+ /* @__PURE__ */ r(U, { type: "submit", children: t.confirm })
2158
2158
  ] })
2159
2159
  ] }) });
2160
2160
  }, Oe = (e) => {
2161
2161
  var b;
2162
- const { decision: n, onSubmitEvent: t, textValues: a, onCancel: r } = e, { formik: i, handleToggleNoneChange: u } = nt({
2162
+ const { decision: n, onSubmitEvent: t, textValues: a, onCancel: o } = e, { formik: i, handleToggleNoneChange: u } = nt({
2163
2163
  decision: n,
2164
2164
  onSubmitEvent: t,
2165
2165
  textValues: a
@@ -2172,11 +2172,11 @@ const tt = T.div`
2172
2172
  }, d = ((b = n.conditionsThatEstablishesTheDecision) == null ? void 0 : b.filter(
2173
2173
  (f) => !f.hidden
2174
2174
  )) || [], s = !!i.errors.conditionsThatEstablishesTheDecision && i.submitCount > 0, p = i.touched.effectiveFrom ? i.errors.effectiveFrom ? "invalid" : "valid" : void 0, c = i.touched.validUntil ? i.errors.validUntil ? "invalid" : "valid" : void 0;
2175
- return /* @__PURE__ */ o(
2175
+ return /* @__PURE__ */ r(
2176
2176
  it,
2177
2177
  {
2178
2178
  formik: i,
2179
- onCancel: r,
2179
+ onCancel: o,
2180
2180
  textValues: a,
2181
2181
  decision: n,
2182
2182
  visibleConditions: d,
@@ -2205,9 +2205,9 @@ const tt = T.div`
2205
2205
  termEndStatus: c
2206
2206
  }
2207
2207
  );
2208
- }, Bt = (e) => {
2209
- var r;
2210
- const { decisionTemplate: n } = e, t = { ...n }, a = (r = t.conditionsThatEstablishesTheDecision) == null ? void 0 : r.find(
2208
+ }, Ht = (e) => {
2209
+ var o;
2210
+ const { decisionTemplate: n } = e, t = { ...n }, a = (o = t.conditionsThatEstablishesTheDecision) == null ? void 0 : o.find(
2211
2211
  (i) => i.switchPlaces
2212
2212
  );
2213
2213
  return a ? {
@@ -2221,11 +2221,11 @@ const tt = T.div`
2221
2221
  (i) => i.conditionName === a.conditionName ? { ...i, hidden: !0 } : i
2222
2222
  )
2223
2223
  } : t;
2224
- }, Ht = (e) => {
2224
+ }, _t = (e) => {
2225
2225
  const { decisions: n } = e;
2226
2226
  return n == null ? void 0 : n.map((t) => {
2227
- var r;
2228
- const a = (r = t.conditionsThatEstablishesTheDecision) == null ? void 0 : r.find(
2227
+ var o;
2228
+ const a = (o = t.conditionsThatEstablishesTheDecision) == null ? void 0 : o.find(
2229
2229
  (i) => i.switchPlaces
2230
2230
  );
2231
2231
  return a ? {
@@ -2261,31 +2261,34 @@ const tt = T.div`
2261
2261
  & > div {
2262
2262
  border: 1px solid
2263
2263
  ${({ theme: e, $active: n }) => {
2264
- var t, a, r, i;
2265
- return n ? ((a = (t = e == null ? void 0 : e.border) == null ? void 0 : t.expanded) == null ? void 0 : a.color) || j.border.expanded.color : ((i = (r = e == null ? void 0 : e.border) == null ? void 0 : r.contracted) == null ? void 0 : i.color) || j.border.contracted.color;
2264
+ var t, a, o, i;
2265
+ return n ? ((a = (t = e == null ? void 0 : e.border) == null ? void 0 : t.expanded) == null ? void 0 : a.color) || j.border.expanded.color : ((i = (o = e == null ? void 0 : e.border) == null ? void 0 : o.contracted) == null ? void 0 : i.color) || j.border.contracted.color;
2266
2266
  }};
2267
2267
  }
2268
2268
  &:hover {
2269
2269
  cursor: ${({ $disabled: e }) => e ? "not-allowed" : "pointer"};
2270
2270
  background-color: ${({ theme: e, $disabled: n }) => {
2271
- var t, a, r;
2271
+ var t, a, o;
2272
2272
  if (!n)
2273
- return ((r = (a = (t = e == null ? void 0 : e.menu) == null ? void 0 : t.item) == null ? void 0 : a.background) == null ? void 0 : r.hover) || j.item.background.hover;
2273
+ return ((o = (a = (t = e == null ? void 0 : e.menu) == null ? void 0 : t.item) == null ? void 0 : a.background) == null ? void 0 : o.hover) || j.item.background.hover;
2274
2274
  }};
2275
2275
  }
2276
2276
  `, dt = T.div`
2277
2277
  display: block;
2278
2278
  text-decoration: none;
2279
2279
  background-color: ${({ theme: e, $active: n }) => {
2280
- var t, a, r, i, u, l;
2281
- return n ? ((r = (a = (t = e == null ? void 0 : e.menu) == null ? void 0 : t.item) == null ? void 0 : a.background) == null ? void 0 : r.active) || j.item.background.active : ((l = (u = (i = e == null ? void 0 : e.menu) == null ? void 0 : i.item) == null ? void 0 : u.background) == null ? void 0 : l.inactive) || j.item.background.inactive;
2280
+ var t, a, o, i, u, l;
2281
+ return n ? ((o = (a = (t = e == null ? void 0 : e.menu) == null ? void 0 : t.item) == null ? void 0 : a.background) == null ? void 0 : o.active) || j.item.background.active : ((l = (u = (i = e == null ? void 0 : e.menu) == null ? void 0 : i.item) == null ? void 0 : u.background) == null ? void 0 : l.inactive) || j.item.background.inactive;
2282
2282
  }};
2283
+ &:last-child {
2284
+ border-radius: 0 0 8px 8px;
2285
+ }
2283
2286
  &:hover {
2284
2287
  cursor: ${({ $disabled: e }) => e ? "not-allowed" : "pointer"};
2285
2288
  background-color: ${({ $active: e, theme: n, $disabled: t }) => {
2286
- var a, r, i;
2289
+ var a, o, i;
2287
2290
  if (!t && !e)
2288
- return ((i = (r = (a = n == null ? void 0 : n.menu) == null ? void 0 : a.item) == null ? void 0 : r.background) == null ? void 0 : i.hover) || j.item.background.hover;
2291
+ return ((i = (o = (a = n == null ? void 0 : n.menu) == null ? void 0 : a.item) == null ? void 0 : o.background) == null ? void 0 : i.hover) || j.item.background.hover;
2289
2292
  }};
2290
2293
  }
2291
2294
  `, st = T.div`
@@ -2295,10 +2298,21 @@ const tt = T.div`
2295
2298
  width: 100%;
2296
2299
  outline: none;
2297
2300
  cursor: pointer;
2298
- `, ct = (e) => {
2299
- const { isOpen: n, links: t, onClick: a, title: r, activeId: i } = e;
2300
- return /* @__PURE__ */ o(lt, { $active: n, children: /* @__PURE__ */ h(z, { border: !0, borderRadius: "8px", width: "100%", children: [
2301
- /* @__PURE__ */ o(
2301
+ `, ct = T.div`
2302
+ & > div {
2303
+ border-bottom: 1px solid
2304
+ ${({ theme: e, $active: n }) => {
2305
+ var t, a, o, i;
2306
+ return n ? ((a = (t = e == null ? void 0 : e.border) == null ? void 0 : t.expanded) == null ? void 0 : a.color) || j.border.expanded.color : ((i = (o = e == null ? void 0 : e.border) == null ? void 0 : o.contracted) == null ? void 0 : i.color) || j.border.contracted.color;
2307
+ }};
2308
+ border-radius: 8px 8px 0 0;
2309
+ }
2310
+ `, ut = (e) => {
2311
+ const { isOpen: n, links: t, onClick: a, title: o, activeId: i } = e, u = (l) => {
2312
+ (l.key === "Enter" || l.key === " ") && (l.preventDefault(), a());
2313
+ };
2314
+ return /* @__PURE__ */ r(lt, { $active: n, children: /* @__PURE__ */ h(z, { border: !0, borderRadius: "8px", width: "100%", children: [
2315
+ /* @__PURE__ */ r(ct, { $active: n && t.length > 0, children: /* @__PURE__ */ r(
2302
2316
  z,
2303
2317
  {
2304
2318
  alignItems: "center",
@@ -2310,23 +2324,21 @@ const tt = T.div`
2310
2324
  st,
2311
2325
  {
2312
2326
  onClick: a,
2313
- onKeyDown: (l) => {
2314
- (l.key === "Enter" || l.key === " ") && (l.preventDefault(), a());
2315
- },
2327
+ onKeyDown: u,
2316
2328
  role: "button",
2317
2329
  tabIndex: 0,
2318
2330
  "aria-expanded": n,
2319
2331
  "aria-controls": "dropdown-links",
2320
2332
  children: [
2321
- /* @__PURE__ */ o(
2322
- R,
2333
+ /* @__PURE__ */ r(
2334
+ F,
2323
2335
  {
2324
2336
  appearance: n ? "primary" : "dark",
2325
2337
  cursorHover: !0,
2326
- icon: n ? /* @__PURE__ */ o(we, {}) : /* @__PURE__ */ o(ze, {})
2338
+ icon: n && t.length > 0 ? /* @__PURE__ */ r(we, {}) : /* @__PURE__ */ r(ze, {})
2327
2339
  }
2328
2340
  ),
2329
- /* @__PURE__ */ o(
2341
+ /* @__PURE__ */ r(
2330
2342
  w,
2331
2343
  {
2332
2344
  appearance: n ? "primary" : "dark",
@@ -2334,53 +2346,58 @@ const tt = T.div`
2334
2346
  size: "small",
2335
2347
  type: "title",
2336
2348
  weight: n ? "bold" : "normal",
2337
- children: r
2349
+ children: o
2338
2350
  }
2339
2351
  )
2340
2352
  ]
2341
2353
  }
2342
2354
  )
2343
2355
  }
2344
- ),
2345
- n && /* @__PURE__ */ h(E, { children: [
2346
- /* @__PURE__ */ o(F, {}),
2347
- /* @__PURE__ */ o(g, { direction: "column", children: t.map((l) => {
2348
- const d = l.id === i;
2349
- return /* @__PURE__ */ o(
2350
- Qe,
2351
- {
2352
- to: l.path,
2353
- style: { textDecoration: "none" },
2354
- children: /* @__PURE__ */ o(dt, { $active: d, children: /* @__PURE__ */ h(
2355
- g,
2356
- {
2357
- alignItems: "center",
2358
- direction: "row",
2359
- gap: "8px",
2360
- padding: d ? "8px 4px" : "8px 32px",
2361
- children: [
2362
- d && /* @__PURE__ */ o(R, { appearance: "primary", icon: /* @__PURE__ */ o(Ue, {}) }),
2363
- /* @__PURE__ */ o(
2364
- w,
2365
- {
2366
- appearance: d ? "primary" : "dark",
2367
- size: "small",
2368
- type: "title",
2369
- weight: d ? "bold" : "normal",
2370
- children: l.label
2371
- }
2372
- )
2373
- ]
2374
- }
2375
- ) })
2376
- },
2377
- l.id
2378
- );
2379
- }) })
2380
- ] })
2356
+ ) }),
2357
+ n && t.length > 0 && /* @__PURE__ */ r(E, { children: /* @__PURE__ */ r(g, { direction: "column", children: t.map((l) => {
2358
+ const d = l.id === i;
2359
+ return /* @__PURE__ */ r(
2360
+ Qe,
2361
+ {
2362
+ to: l.path,
2363
+ style: { textDecoration: "none" },
2364
+ children: /* @__PURE__ */ r(dt, { $active: d, children: /* @__PURE__ */ h(
2365
+ g,
2366
+ {
2367
+ alignItems: "center",
2368
+ direction: "row",
2369
+ gap: "8px",
2370
+ padding: d ? "8px 4px" : "8px 32px",
2371
+ children: [
2372
+ d && /* @__PURE__ */ r(F, { appearance: "primary", icon: /* @__PURE__ */ r(Ue, {}) }),
2373
+ /* @__PURE__ */ r(
2374
+ w,
2375
+ {
2376
+ appearance: d ? "primary" : "dark",
2377
+ size: "small",
2378
+ type: "title",
2379
+ weight: d ? "bold" : "normal",
2380
+ children: l.label
2381
+ }
2382
+ )
2383
+ ]
2384
+ }
2385
+ ) })
2386
+ },
2387
+ l.id
2388
+ );
2389
+ }) }) })
2381
2390
  ] }) });
2382
- }, jt = (e) => {
2383
- const { collapseOnNavigate: n = !1, defaultOpenId: t = null, groups: a } = e, [r, i] = W.useState(t), u = We();
2391
+ }, pt = T.div`
2392
+ & > div {
2393
+ background: ${({ $background: e, theme: n }) => {
2394
+ var t, a, o, i;
2395
+ return e ? `${((a = (t = n == null ? void 0 : n.palette) == null ? void 0 : t.neutral) == null ? void 0 : a.N20) || x.palette.neutral.N20}` : `${((i = (o = n == null ? void 0 : n.palette) == null ? void 0 : o.neutral) == null ? void 0 : i.N0) || x.palette.neutral.N0}`;
2396
+ }};
2397
+ }
2398
+ height: 90vh;
2399
+ `, qt = (e) => {
2400
+ const { collapseOnNavigate: n = !1, defaultOpenId: t = null, groups: a } = e, [o, i] = W.useState(t), u = We();
2384
2401
  W.useEffect(() => {
2385
2402
  n && i(null);
2386
2403
  }, [n, u.pathname]);
@@ -2391,28 +2408,28 @@ const tt = T.div`
2391
2408
  },
2392
2409
  [u.pathname]
2393
2410
  );
2394
- return console.log(l(a[0].links), u.pathname), /* @__PURE__ */ o(g, { direction: "column", gap: "8px", children: a.map((d) => /* @__PURE__ */ o(
2395
- ct,
2411
+ return /* @__PURE__ */ r(pt, { $background: !0, children: /* @__PURE__ */ r(g, { direction: "column", gap: "8px", padding: "12px", height: "100%", children: a.map((d) => /* @__PURE__ */ r(
2412
+ ut,
2396
2413
  {
2397
2414
  activeId: l(d.links),
2398
- isOpen: r === d.id,
2415
+ isOpen: o === d.id,
2399
2416
  links: d.links,
2400
2417
  onClick: () => i((s) => s === d.id ? null : d.id),
2401
2418
  title: d.title
2402
2419
  },
2403
2420
  d.id
2404
- )) });
2405
- }, _ = /* @__PURE__ */ new Map(), ut = (e, n) => _.get(`${n}:${e}`), pt = (e, n, t) => {
2421
+ )) }) });
2422
+ }, _ = /* @__PURE__ */ new Map(), ht = (e, n) => _.get(`${n}:${e}`), gt = (e, n, t) => {
2406
2423
  const a = `${n}:${e}`;
2407
2424
  if (_.set(a, t), _.size > 1e3) {
2408
- const r = _.keys().next().value;
2409
- r !== void 0 && _.delete(r);
2425
+ const o = _.keys().next().value;
2426
+ o !== void 0 && _.delete(o);
2410
2427
  }
2411
- }, ve = /* @__PURE__ */ new Map(), ht = 1e3, gt = (e) => {
2428
+ }, ve = /* @__PURE__ */ new Map(), bt = 1e3, mt = (e) => {
2412
2429
  const n = Date.now(), t = ve.get(e) || 0;
2413
- return n - t < ht ? !0 : (ve.set(e, n), !1);
2414
- }, bt = (e) => {
2415
- const n = Ye(e);
2430
+ return n - t < bt ? !0 : (ve.set(e, n), !1);
2431
+ }, ft = (e) => {
2432
+ const n = Ke(e);
2416
2433
  return {
2417
2434
  spa: "es",
2418
2435
  eng: "en",
@@ -2421,14 +2438,14 @@ const tt = T.div`
2421
2438
  ita: "it",
2422
2439
  por: "pt"
2423
2440
  }[n] || "en";
2424
- }, mt = async (e, n, { url: t, apiKey: a }) => {
2425
- const r = `${n}:${e}`, i = ut(e, n);
2441
+ }, vt = async (e, n, { url: t, apiKey: a }) => {
2442
+ const o = `${n}:${e}`, i = ht(e, n);
2426
2443
  if (i) return i;
2427
- if (gt(r))
2444
+ if (mt(o))
2428
2445
  return console.warn(`[Throttle] Skipped translation for: "${e}"`), e;
2429
- const u = bt(e);
2446
+ const u = ft(e);
2430
2447
  try {
2431
- const { data: l } = await Ke.post(
2448
+ const { data: l } = await Ye.post(
2432
2449
  t,
2433
2450
  {
2434
2451
  q: e,
@@ -2442,28 +2459,28 @@ const tt = T.div`
2442
2459
  }
2443
2460
  }
2444
2461
  ), d = (l == null ? void 0 : l.translatedText) || e;
2445
- return pt(e, n, d), d;
2462
+ return gt(e, n, d), d;
2446
2463
  } catch (l) {
2447
2464
  return console.warn(`[Translation] Failed for: "${e}"`, l), e;
2448
2465
  }
2449
- }, ft = (e) => typeof e == "string" && e.trim().length > 0, xe = async (e, n, t) => {
2466
+ }, xt = (e) => typeof e == "string" && e.trim().length > 0, xe = async (e, n, t) => {
2450
2467
  const a = await Promise.all(
2451
- Object.entries(e).map(async ([r, i]) => {
2452
- if (ft(i)) {
2453
- const u = await mt(i, n, t);
2454
- return [r, u];
2468
+ Object.entries(e).map(async ([o, i]) => {
2469
+ if (xt(i)) {
2470
+ const u = await vt(i, n, t);
2471
+ return [o, u];
2455
2472
  } else if (Array.isArray(i)) {
2456
2473
  const u = await Promise.all(
2457
2474
  i.map(
2458
2475
  async (l) => typeof l == "object" && l !== null ? await xe(l, n, t) : l
2459
2476
  )
2460
2477
  );
2461
- return [r, u];
2478
+ return [o, u];
2462
2479
  } else if (typeof i == "object" && i !== null) {
2463
2480
  const u = await xe(i, n, t);
2464
- return [r, u];
2481
+ return [o, u];
2465
2482
  } else
2466
- return [r, i];
2483
+ return [o, i];
2467
2484
  })
2468
2485
  );
2469
2486
  return Object.fromEntries(a);
@@ -2473,22 +2490,22 @@ export {
2473
2490
  Fe as BusinessRuleCardNew,
2474
2491
  Ae as BusinessRuleView,
2475
2492
  Re as BusinessRuleViewNew,
2476
- It as BusinessRules,
2477
- Ft as BusinessRulesNew,
2478
- ct as DropdownMenu,
2479
- jt as DropdownMenuContainer,
2480
- Rt as Filter,
2481
- Ot as FilterModal,
2482
- Mt as FormFilter,
2493
+ Rt as BusinessRules,
2494
+ Ot as BusinessRulesNew,
2495
+ ut as DropdownMenu,
2496
+ qt as DropdownMenuContainer,
2497
+ Mt as Filter,
2498
+ Lt as FilterModal,
2499
+ zt as FormFilter,
2483
2500
  Ie as ModalRules,
2484
2501
  Oe as RulesForm,
2485
- Kn as convertRangeToString,
2486
- Lt as formatDecisionForBackend,
2487
- zt as parseRangeFromString,
2488
- Ut as revertSortedDataSampleSwitchPlaces,
2489
- Vt as revertSortedDataSwitchPlaces,
2490
- Bt as sortDisplayDataSampleSwitchPlaces,
2491
- Ht as sortDisplayDataSwitchPlaces,
2502
+ Yn as convertRangeToString,
2503
+ Ut as formatDecisionForBackend,
2504
+ Vt as parseRangeFromString,
2505
+ Bt as revertSortedDataSampleSwitchPlaces,
2506
+ jt as revertSortedDataSwitchPlaces,
2507
+ Ht as sortDisplayDataSampleSwitchPlaces,
2508
+ _t as sortDisplayDataSwitchPlaces,
2492
2509
  xe as translateObject,
2493
- mt as translateText
2510
+ vt as translateText
2494
2511
  };