@isettingkit/business-rules 0.1.37 → 0.1.38

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 +235 -229
  2. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -6,7 +6,7 @@ import oe, { createContext as Vt, forwardRef as ht, useContext as ee, useState a
6
6
  import { createPortal as jt } from "react-dom";
7
7
  import { inube as te } from "@inubekit/foundations";
8
8
  import { useFormik as Ht } from "formik";
9
- import { mixed as gt, object as ye, number as Pe, string as Ue, lazy as Ze, date as et } from "yup";
9
+ import { mixed as gt, object as ye, number as Be, string as Ue, lazy as Ze, date as et } from "yup";
10
10
  import { DecisionViewConditionRenderer as me } from "@isettingkit/view";
11
11
  import { MdOutlineDelete as _t, MdClear as Ut, MdAdd as Mt } from "react-icons/md";
12
12
  /**
@@ -19,15 +19,15 @@ import { MdOutlineDelete as _t, MdClear as Ut, MdAdd as Mt } from "react-icons/m
19
19
  *
20
20
  * @license MIT
21
21
  */
22
- function Be() {
23
- return Be = Object.assign ? Object.assign.bind() : function(e) {
22
+ function Ie() {
23
+ return Ie = Object.assign ? Object.assign.bind() : function(e) {
24
24
  for (var t = 1; t < arguments.length; t++) {
25
25
  var l = arguments[t];
26
26
  for (var o in l)
27
27
  Object.prototype.hasOwnProperty.call(l, o) && (e[o] = l[o]);
28
28
  }
29
29
  return e;
30
- }, Be.apply(this, arguments);
30
+ }, Ie.apply(this, arguments);
31
31
  }
32
32
  var tt;
33
33
  (function(e) {
@@ -46,7 +46,7 @@ function ve(e, t) {
46
46
  }
47
47
  }
48
48
  }
49
- function Ie(e) {
49
+ function Ve(e) {
50
50
  let {
51
51
  pathname: t = "/",
52
52
  search: l = "",
@@ -131,7 +131,7 @@ function Yt(e, t) {
131
131
  n === ".." ? l.length > 1 && l.pop() : n !== "." && l.push(n);
132
132
  }), l.length > 1 ? l.join("/") : "/";
133
133
  }
134
- function Re(e, t, l, o) {
134
+ function Fe(e, t, l, o) {
135
135
  return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + t + "` field [" + JSON.stringify(o) + "]. Please separate it out to the ") + ("`to." + l + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
136
136
  }
137
137
  function Wt(e) {
@@ -144,7 +144,7 @@ function mt(e, t) {
144
144
  function ft(e, t, l, o) {
145
145
  o === void 0 && (o = !1);
146
146
  let n;
147
- typeof e == "string" ? n = bt(e) : (n = Be({}, e), z(!n.pathname || !n.pathname.includes("?"), Re("?", "pathname", "search", n)), z(!n.pathname || !n.pathname.includes("#"), Re("#", "pathname", "hash", n)), z(!n.search || !n.search.includes("#"), Re("#", "search", "hash", n)));
147
+ typeof e == "string" ? n = bt(e) : (n = Ie({}, e), z(!n.pathname || !n.pathname.includes("?"), Fe("?", "pathname", "search", n)), z(!n.pathname || !n.pathname.includes("#"), Fe("#", "pathname", "hash", n)), z(!n.search || !n.search.includes("#"), Fe("#", "search", "hash", n)));
148
148
  let a = e === "" || n.pathname === "", i = a ? "/" : n.pathname, d;
149
149
  if (i == null)
150
150
  d = l;
@@ -175,18 +175,18 @@ new Set(Jt);
175
175
  *
176
176
  * @license MIT
177
177
  */
178
- function Ve() {
179
- return Ve = Object.assign ? Object.assign.bind() : function(e) {
178
+ function je() {
179
+ return je = Object.assign ? Object.assign.bind() : function(e) {
180
180
  for (var t = 1; t < arguments.length; t++) {
181
181
  var l = arguments[t];
182
182
  for (var o in l)
183
183
  Object.prototype.hasOwnProperty.call(l, o) && (e[o] = l[o]);
184
184
  }
185
185
  return e;
186
- }, Ve.apply(this, arguments);
186
+ }, je.apply(this, arguments);
187
187
  }
188
- const Se = /* @__PURE__ */ k.createContext(null);
189
- process.env.NODE_ENV !== "production" && (Se.displayName = "DataRouter");
188
+ const ze = /* @__PURE__ */ k.createContext(null);
189
+ process.env.NODE_ENV !== "production" && (ze.displayName = "DataRouter");
190
190
  const $t = /* @__PURE__ */ k.createContext(null);
191
191
  process.env.NODE_ENV !== "production" && ($t.displayName = "DataRouterState");
192
192
  const Qt = /* @__PURE__ */ k.createContext(null);
@@ -257,7 +257,7 @@ function ll() {
257
257
  // router loaded. We can help them understand how to avoid that.
258
258
  "useNavigate() may be used only in the context of a <Router> component."
259
259
  ) : z(!1));
260
- let e = k.useContext(Se), {
260
+ let e = k.useContext(ze), {
261
261
  basename: t,
262
262
  future: l,
263
263
  navigator: o
@@ -299,7 +299,7 @@ function Nt(e) {
299
299
  return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
300
300
  }
301
301
  function ol(e) {
302
- let t = k.useContext(Se);
302
+ let t = k.useContext(ze);
303
303
  return t || (process.env.NODE_ENV !== "production" ? z(!1, Nt(e)) : z(!1)), t;
304
304
  }
305
305
  function rl(e) {
@@ -320,7 +320,7 @@ function al() {
320
320
  return kt(() => {
321
321
  l.current = !0;
322
322
  }), k.useCallback(function(n, a) {
323
- a === void 0 && (a = {}), process.env.NODE_ENV !== "production" && ve(l.current, yt), l.current && (typeof n == "number" ? e.navigate(n) : e.navigate(n, Ve({
323
+ a === void 0 && (a = {}), process.env.NODE_ENV !== "production" && ve(l.current, yt), l.current && (typeof n == "number" ? e.navigate(n) : e.navigate(n, je({
324
324
  fromRouteId: t
325
325
  }, a)));
326
326
  }, [e, t]);
@@ -355,17 +355,17 @@ function We(e, t) {
355
355
  return l;
356
356
  }
357
357
  const ke = "get", we = "application/x-www-form-urlencoded";
358
- function ze(e) {
358
+ function Ae(e) {
359
359
  return e != null && typeof e.tagName == "string";
360
360
  }
361
361
  function il(e) {
362
- return ze(e) && e.tagName.toLowerCase() === "button";
362
+ return Ae(e) && e.tagName.toLowerCase() === "button";
363
363
  }
364
364
  function dl(e) {
365
- return ze(e) && e.tagName.toLowerCase() === "form";
365
+ return Ae(e) && e.tagName.toLowerCase() === "form";
366
366
  }
367
367
  function ul(e) {
368
- return ze(e) && e.tagName.toLowerCase() === "input";
368
+ return Ae(e) && e.tagName.toLowerCase() === "input";
369
369
  }
370
370
  function cl(e) {
371
371
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
@@ -390,20 +390,20 @@ function pl() {
390
390
  return fe;
391
391
  }
392
392
  const hl = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
393
- function Fe(e) {
393
+ function Oe(e) {
394
394
  return e != null && !hl.has(e) ? (process.env.NODE_ENV !== "production" && ve(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + we + '"')), null) : e;
395
395
  }
396
396
  function vl(e, t) {
397
397
  let l, o, n, a, i;
398
398
  if (dl(e)) {
399
399
  let d = e.getAttribute("action");
400
- o = d ? ae(d, t) : null, l = e.getAttribute("method") || ke, n = Fe(e.getAttribute("enctype")) || we, a = new FormData(e);
400
+ o = d ? ae(d, t) : null, l = e.getAttribute("method") || ke, n = Oe(e.getAttribute("enctype")) || we, a = new FormData(e);
401
401
  } else if (il(e) || ul(e) && (e.type === "submit" || e.type === "image")) {
402
402
  let d = e.form;
403
403
  if (d == null)
404
404
  throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
405
405
  let c = e.getAttribute("formaction") || d.getAttribute("action");
406
- if (o = c ? ae(c, t) : null, l = e.getAttribute("formmethod") || d.getAttribute("method") || ke, n = Fe(e.getAttribute("formenctype")) || Fe(d.getAttribute("enctype")) || we, a = new FormData(d, e), !pl()) {
406
+ if (o = c ? ae(c, t) : null, l = e.getAttribute("formmethod") || d.getAttribute("method") || ke, n = Oe(e.getAttribute("formenctype")) || Oe(d.getAttribute("enctype")) || we, a = new FormData(d, e), !pl()) {
407
407
  let {
408
408
  name: u,
409
409
  type: h,
@@ -415,7 +415,7 @@ function vl(e, t) {
415
415
  } else u && a.append(u, p);
416
416
  }
417
417
  } else {
418
- if (ze(e))
418
+ if (Ae(e))
419
419
  throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
420
420
  l = ke, o = null, n = we, i = e;
421
421
  }
@@ -455,8 +455,8 @@ const $l = typeof window < "u" && typeof window.document < "u" && typeof window.
455
455
  } = k.useContext(G), b, f = !1;
456
456
  if (typeof u == "string" && yl.test(u) && (b = u, $l))
457
457
  try {
458
- let C = new URL(window.location.href), T = u.startsWith("//") ? new URL(C.protocol + u) : new URL(u), D = ae(T.pathname, m);
459
- T.origin === C.origin && D != null ? u = D + T.search + T.hash : f = !0;
458
+ let C = new URL(window.location.href), E = u.startsWith("//") ? new URL(C.protocol + u) : new URL(u), R = ae(E.pathname, m);
459
+ E.origin === C.origin && R != null ? u = R + E.search + E.hash : f = !0;
460
460
  } catch {
461
461
  process.env.NODE_ENV !== "production" && ve(!1, '<Link to="' + u + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
462
462
  }
@@ -501,16 +501,16 @@ const kl = /* @__PURE__ */ k.forwardRef(function(t, l) {
501
501
  basename: x
502
502
  } = k.useContext(G), y = b != null && // Conditional usage is OK here because the usage of a data router is static
503
503
  // eslint-disable-next-line react-hooks/rules-of-hooks
504
- Dl(g) && u === !0, $ = f.encodeLocation ? f.encodeLocation(g).pathname : g.pathname, C = m.pathname, T = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
505
- n || (C = C.toLowerCase(), T = T ? T.toLowerCase() : null, $ = $.toLowerCase()), T && x && (T = ae(T, x) || T);
506
- const D = $ !== "/" && $.endsWith("/") ? $.length - 1 : $.length;
507
- let R = C === $ || !i && C.startsWith($) && C.charAt(D) === "/", S = T != null && (T === $ || !i && T.startsWith($) && T.charAt($.length) === "/"), P = {
508
- isActive: R,
509
- isPending: S,
504
+ Dl(g) && u === !0, $ = f.encodeLocation ? f.encodeLocation(g).pathname : g.pathname, C = m.pathname, E = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
505
+ n || (C = C.toLowerCase(), E = E ? E.toLowerCase() : null, $ = $.toLowerCase()), E && x && (E = ae(E, x) || E);
506
+ const R = $ !== "/" && $.endsWith("/") ? $.length - 1 : $.length;
507
+ let F = C === $ || !i && C.startsWith($) && C.charAt(R) === "/", A = E != null && (E === $ || !i && E.startsWith($) && E.charAt($.length) === "/"), S = {
508
+ isActive: F,
509
+ isPending: A,
510
510
  isTransitioning: y
511
- }, I = R ? o : void 0, V;
512
- typeof a == "function" ? V = a(P) : V = [a, R ? "active" : null, S ? "pending" : null, y ? "transitioning" : null].filter(Boolean).join(" ");
513
- let j = typeof d == "function" ? d(P) : d;
511
+ }, I = F ? o : void 0, V;
512
+ typeof a == "function" ? V = a(S) : V = [a, F ? "active" : null, A ? "pending" : null, y ? "transitioning" : null].filter(Boolean).join(" ");
513
+ let j = typeof d == "function" ? d(S) : d;
514
514
  return /* @__PURE__ */ k.createElement(Y, ie({}, p, {
515
515
  "aria-current": I,
516
516
  className: V,
@@ -518,7 +518,7 @@ const kl = /* @__PURE__ */ k.forwardRef(function(t, l) {
518
518
  style: j,
519
519
  to: c,
520
520
  viewTransition: u
521
- }), typeof h == "function" ? h(P) : h);
521
+ }), typeof h == "function" ? h(S) : h);
522
522
  });
523
523
  process.env.NODE_ENV !== "production" && (kl.displayName = "NavLink");
524
524
  const wl = /* @__PURE__ */ k.forwardRef((e, t) => {
@@ -539,10 +539,10 @@ const wl = /* @__PURE__ */ k.forwardRef((e, t) => {
539
539
  }), x = d.toLowerCase() === "get" ? "get" : "post", y = ($) => {
540
540
  if (u && u($), $.defaultPrevented) return;
541
541
  $.preventDefault();
542
- let C = $.nativeEvent.submitter, T = (C == null ? void 0 : C.getAttribute("formmethod")) || d;
542
+ let C = $.nativeEvent.submitter, E = (C == null ? void 0 : C.getAttribute("formmethod")) || d;
543
543
  b(C || $.currentTarget, {
544
544
  fetcherKey: l,
545
- method: T,
545
+ method: E,
546
546
  navigate: o,
547
547
  replace: a,
548
548
  state: i,
@@ -572,7 +572,7 @@ function Nl(e) {
572
572
  return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
573
573
  }
574
574
  function Tt(e) {
575
- let t = k.useContext(Se);
575
+ let t = k.useContext(ze);
576
576
  return t || (process.env.NODE_ENV !== "production" ? z(!1, Nl(e)) : z(!1)), t;
577
577
  }
578
578
  function Cl(e, t) {
@@ -589,7 +589,7 @@ function Cl(e, t) {
589
589
  return k.useCallback((p) => {
590
590
  if (sl(p, l)) {
591
591
  p.preventDefault();
592
- let g = o !== void 0 ? o : Ie(u) === Ie(h);
592
+ let g = o !== void 0 ? o : Ve(u) === Ve(h);
593
593
  c(e, {
594
594
  replace: g,
595
595
  state: n,
@@ -664,7 +664,7 @@ function Al(e, t) {
664
664
  i.search = p ? "?" + p : "";
665
665
  }
666
666
  }
667
- return (!e || e === ".") && a.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), o !== "/" && (i.pathname = i.pathname === "/" ? o : Me([o, i.pathname])), Ie(i);
667
+ return (!e || e === ".") && a.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), o !== "/" && (i.pathname = i.pathname === "/" ? o : Me([o, i.pathname])), Ve(i);
668
668
  }
669
669
  function Dl(e, t) {
670
670
  t === void 0 && (t = {});
@@ -832,7 +832,7 @@ const Rl = {
832
832
  }, r = {
833
833
  palette: Rl,
834
834
  typography: Fl
835
- }, L = {
835
+ }, P = {
836
836
  primary: {
837
837
  content: {
838
838
  color: {
@@ -1030,8 +1030,8 @@ const Rl = {
1030
1030
  padding: ${({ $spacing: e }) => e === "wide" ? "8px" : e === "compact" ? "4px" : "0px"};
1031
1031
 
1032
1032
  color: ${({ theme: e, $variant: t, $appearance: l, $parentHover: o, disabled: n }) => {
1033
- var a, i, d, c, u, h, p, g, m, b, f, x, y, $, C, T;
1034
- return n ? ((c = (d = (i = (a = e == null ? void 0 : e.icon) == null ? void 0 : a[l]) == null ? void 0 : i.contrast) == null ? void 0 : d.color) == null ? void 0 : c.disabled) || L[l].contrast.color.disabled : t !== "filled" ? o ? ((g = (p = (h = (u = e == null ? void 0 : e.icon) == null ? void 0 : u[l]) == null ? void 0 : h.content) == null ? void 0 : p.color) == null ? void 0 : g.hover) || L[l].content.color.hover : ((x = (f = (b = (m = e == null ? void 0 : e.icon) == null ? void 0 : m[l]) == null ? void 0 : b.content) == null ? void 0 : f.color) == null ? void 0 : x.regular) || L[l].content.color.regular : ((T = (C = ($ = (y = e == null ? void 0 : e.icon) == null ? void 0 : y[l]) == null ? void 0 : $.contrast) == null ? void 0 : C.color) == null ? void 0 : T.regular) || L[l].contrast.color.regular;
1033
+ var a, i, d, c, u, h, p, g, m, b, f, x, y, $, C, E;
1034
+ return n ? ((c = (d = (i = (a = e == null ? void 0 : e.icon) == null ? void 0 : a[l]) == null ? void 0 : i.contrast) == null ? void 0 : d.color) == null ? void 0 : c.disabled) || P[l].contrast.color.disabled : t !== "filled" ? o ? ((g = (p = (h = (u = e == null ? void 0 : e.icon) == null ? void 0 : u[l]) == null ? void 0 : h.content) == null ? void 0 : p.color) == null ? void 0 : g.hover) || P[l].content.color.hover : ((x = (f = (b = (m = e == null ? void 0 : e.icon) == null ? void 0 : m[l]) == null ? void 0 : b.content) == null ? void 0 : f.color) == null ? void 0 : x.regular) || P[l].content.color.regular : ((E = (C = ($ = (y = e == null ? void 0 : e.icon) == null ? void 0 : y[l]) == null ? void 0 : $.contrast) == null ? void 0 : C.color) == null ? void 0 : E.regular) || P[l].contrast.color.regular;
1035
1035
  }};
1036
1036
 
1037
1037
  background-color: ${({
@@ -1043,7 +1043,7 @@ const Rl = {
1043
1043
  }) => {
1044
1044
  var a, i, d, c, u, h, p, g, m, b, f, x;
1045
1045
  if (t === "filled")
1046
- return n ? ((c = (d = (i = (a = e == null ? void 0 : e.icon) == null ? void 0 : a[l]) == null ? void 0 : i.background) == null ? void 0 : d.color) == null ? void 0 : c.disabled) || L[l].background.color.disabled : o ? ((g = (p = (h = (u = e == null ? void 0 : e.icon) == null ? void 0 : u[l]) == null ? void 0 : h.background) == null ? void 0 : p.color) == null ? void 0 : g.hover) || L[l].background.color.hover : ((x = (f = (b = (m = e == null ? void 0 : e.icon) == null ? void 0 : m[l]) == null ? void 0 : b.background) == null ? void 0 : f.color) == null ? void 0 : x.regular) || L[l].background.color.regular;
1046
+ return n ? ((c = (d = (i = (a = e == null ? void 0 : e.icon) == null ? void 0 : a[l]) == null ? void 0 : i.background) == null ? void 0 : d.color) == null ? void 0 : c.disabled) || P[l].background.color.disabled : o ? ((g = (p = (h = (u = e == null ? void 0 : e.icon) == null ? void 0 : u[l]) == null ? void 0 : h.background) == null ? void 0 : p.color) == null ? void 0 : g.hover) || P[l].background.color.hover : ((x = (f = (b = (m = e == null ? void 0 : e.icon) == null ? void 0 : m[l]) == null ? void 0 : b.background) == null ? void 0 : f.color) == null ? void 0 : x.regular) || P[l].background.color.regular;
1047
1047
  }};
1048
1048
 
1049
1049
  border-radius: ${({ $shape: e }) => e === "circle" ? "50%" : "8px"};
@@ -1057,7 +1057,7 @@ const Rl = {
1057
1057
  $variant: n
1058
1058
  }) => {
1059
1059
  var a, i, d, c, u, h, p, g, m, b, f, x;
1060
- return o ? ((c = (d = (i = (a = e == null ? void 0 : e.icon) == null ? void 0 : a[t]) == null ? void 0 : i.content) == null ? void 0 : d.color) == null ? void 0 : c.disabled) || L[t].content.color.disabled : l && n !== "filled" ? ((g = (p = (h = (u = e == null ? void 0 : e.icon) == null ? void 0 : u[t]) == null ? void 0 : h.content) == null ? void 0 : p.color) == null ? void 0 : g.hover) || L[t].content.color.hover : ((x = (f = (b = (m = e == null ? void 0 : e.icon) == null ? void 0 : m[t]) == null ? void 0 : b.content) == null ? void 0 : f.color) == null ? void 0 : x.regular) || L[t].content.color.regular;
1060
+ return o ? ((c = (d = (i = (a = e == null ? void 0 : e.icon) == null ? void 0 : a[t]) == null ? void 0 : i.content) == null ? void 0 : d.color) == null ? void 0 : c.disabled) || P[t].content.color.disabled : l && n !== "filled" ? ((g = (p = (h = (u = e == null ? void 0 : e.icon) == null ? void 0 : u[t]) == null ? void 0 : h.content) == null ? void 0 : p.color) == null ? void 0 : g.hover) || P[t].content.color.hover : ((x = (f = (b = (m = e == null ? void 0 : e.icon) == null ? void 0 : m[t]) == null ? void 0 : b.content) == null ? void 0 : f.color) == null ? void 0 : x.regular) || P[t].content.color.regular;
1061
1061
  }};
1062
1062
  }
1063
1063
 
@@ -1075,13 +1075,13 @@ const Rl = {
1075
1075
  }) => {
1076
1076
  var a, i, d, c;
1077
1077
  if (!o && t && n !== "filled")
1078
- return ((c = (d = (i = (a = e == null ? void 0 : e.icon) == null ? void 0 : a[l]) == null ? void 0 : i.content) == null ? void 0 : d.color) == null ? void 0 : c.hover) || L[l].content.color.hover;
1078
+ return ((c = (d = (i = (a = e == null ? void 0 : e.icon) == null ? void 0 : a[l]) == null ? void 0 : i.content) == null ? void 0 : d.color) == null ? void 0 : c.hover) || P[l].content.color.hover;
1079
1079
  }};
1080
1080
 
1081
1081
  color: ${({ theme: e, $cursorHover: t, $appearance: l, disabled: o, $variant: n }) => {
1082
1082
  var a, i, d, c;
1083
1083
  if (!o && t && n !== "filled")
1084
- return ((c = (d = (i = (a = e == null ? void 0 : e.icon) == null ? void 0 : a[l]) == null ? void 0 : i.content) == null ? void 0 : d.color) == null ? void 0 : c.hover) || L[l].content.color.hover;
1084
+ return ((c = (d = (i = (a = e == null ? void 0 : e.icon) == null ? void 0 : a[l]) == null ? void 0 : i.content) == null ? void 0 : d.color) == null ? void 0 : c.hover) || P[l].content.color.hover;
1085
1085
  }};
1086
1086
 
1087
1087
  background-color: ${({
@@ -1093,7 +1093,7 @@ const Rl = {
1093
1093
  }) => {
1094
1094
  var a, i, d, c;
1095
1095
  if (!n && t === "filled" && o)
1096
- return ((c = (d = (i = (a = e == null ? void 0 : e.icon) == null ? void 0 : a[l]) == null ? void 0 : i.background) == null ? void 0 : d.color) == null ? void 0 : c.hover) || L[l].background.color.hover;
1096
+ return ((c = (d = (i = (a = e == null ? void 0 : e.icon) == null ? void 0 : a[l]) == null ? void 0 : i.background) == null ? void 0 : d.color) == null ? void 0 : c.hover) || P[l].background.color.hover;
1097
1097
  }};
1098
1098
  }
1099
1099
  `, q = (e) => {
@@ -1232,7 +1232,7 @@ const Rl = {
1232
1232
  return !t && l && (((d = (i = (a = (n = o == null ? void 0 : o.text) == null ? void 0 : n[e]) == null ? void 0 : a.content) == null ? void 0 : i.color) == null ? void 0 : d.hover) || H[e].content.color.hover);
1233
1233
  }};
1234
1234
  }
1235
- `, A = (e) => {
1235
+ `, D = (e) => {
1236
1236
  const {
1237
1237
  children: t,
1238
1238
  appearance: l = "dark",
@@ -1424,7 +1424,7 @@ const Ql = v.div`
1424
1424
  gap: ${({ $gap: e }) => e};
1425
1425
  margin: ${({ $margin: e }) => e};
1426
1426
  padding: ${({ $padding: e }) => e};
1427
- `, E = (e) => {
1427
+ `, T = (e) => {
1428
1428
  const {
1429
1429
  children: t,
1430
1430
  wrap: l,
@@ -1516,7 +1516,7 @@ const Zl = v.div`
1516
1516
  children: f
1517
1517
  }
1518
1518
  );
1519
- }, je = (e) => {
1519
+ }, Te = (e) => {
1520
1520
  const [t, l] = J(!1), o = (n) => l(n.matches);
1521
1521
  return vt(() => {
1522
1522
  const n = window.matchMedia(e);
@@ -1594,7 +1594,7 @@ v.div`
1594
1594
  padding-top: 4px;
1595
1595
  }
1596
1596
  `;
1597
- const Oe = {
1597
+ const Le = {
1598
1598
  content: {
1599
1599
  color: {
1600
1600
  regular: r.palette.blue.B400,
@@ -1616,7 +1616,7 @@ v(Y)`
1616
1616
  text-align: ${({ $textAlign: e }) => e};
1617
1617
  color: ${({ theme: e }) => {
1618
1618
  var t, l, o;
1619
- return ((o = (l = (t = e == null ? void 0 : e.link) == null ? void 0 : t.content) == null ? void 0 : l.color) == null ? void 0 : o.regular) || Oe.content.color.regular;
1619
+ return ((o = (l = (t = e == null ? void 0 : e.link) == null ? void 0 : t.content) == null ? void 0 : l.color) == null ? void 0 : o.regular) || Le.content.color.regular;
1620
1620
  }};
1621
1621
  cursor: pointer;
1622
1622
  text-decoration: none;
@@ -1624,11 +1624,11 @@ v(Y)`
1624
1624
  border-bottom: 1px solid
1625
1625
  ${({ theme: e }) => {
1626
1626
  var t, l, o;
1627
- return ((o = (l = (t = e == null ? void 0 : e.link) == null ? void 0 : t.content) == null ? void 0 : l.color) == null ? void 0 : o.hover) || Oe.content.color.hover;
1627
+ return ((o = (l = (t = e == null ? void 0 : e.link) == null ? void 0 : t.content) == null ? void 0 : l.color) == null ? void 0 : o.hover) || Le.content.color.hover;
1628
1628
  }};
1629
1629
  color: ${({ theme: e }) => {
1630
1630
  var t, l, o;
1631
- return ((o = (l = (t = e == null ? void 0 : e.link) == null ? void 0 : t.content) == null ? void 0 : l.color) == null ? void 0 : o.hover) || Oe.content.color.hover;
1631
+ return ((o = (l = (t = e == null ? void 0 : e.link) == null ? void 0 : t.content) == null ? void 0 : l.color) == null ? void 0 : o.hover) || Le.content.color.hover;
1632
1632
  }};
1633
1633
  }
1634
1634
  `;
@@ -1641,7 +1641,7 @@ const lo = {
1641
1641
  invalid: "danger"
1642
1642
  }
1643
1643
  }
1644
- }, Ae = (e) => {
1644
+ }, De = (e) => {
1645
1645
  const {
1646
1646
  children: t,
1647
1647
  disabled: l = !1,
@@ -1653,7 +1653,7 @@ const lo = {
1653
1653
  size: c = "large"
1654
1654
  } = e, u = ee(Z);
1655
1655
  return /* @__PURE__ */ s("label", { htmlFor: n, children: /* @__PURE__ */ s(
1656
- A,
1656
+ D,
1657
1657
  {
1658
1658
  appearance: (() => {
1659
1659
  var h;
@@ -1776,8 +1776,8 @@ const oo = {
1776
1776
  z-index: 1;
1777
1777
  overflow-y: auto;
1778
1778
  `, no = (e) => {
1779
- const { children: t } = e, l = je("(max-width: 580px)");
1780
- return /* @__PURE__ */ s(ro, { $isSmallScreen: !l, children: /* @__PURE__ */ s(E, { alignItems: "center", justifyContent: "center", children: t }) });
1779
+ const { children: t } = e, l = Te("(max-width: 580px)");
1780
+ return /* @__PURE__ */ s(ro, { $isSmallScreen: !l, children: /* @__PURE__ */ s(T, { alignItems: "center", justifyContent: "center", children: t }) });
1781
1781
  }, xe = {
1782
1782
  primary: {
1783
1783
  solid: {
@@ -2204,16 +2204,16 @@ const oo = {
2204
2204
  onClick: p,
2205
2205
  cursorHover: g = !1,
2206
2206
  parentHover: m = !1
2207
- } = e, b = ee(Z), f = (R) => {
2208
- var S, P, I;
2209
- return ((I = (P = (S = b == null ? void 0 : b.button) == null ? void 0 : S[R]) == null ? void 0 : P.contrast) == null ? void 0 : I.appearance) || _[R].contrast.appearance;
2210
- }, [x, y] = J(!1), $ = () => y(!0), C = () => y(!1), T = (R) => {
2207
+ } = e, b = ee(Z), f = (F) => {
2208
+ var A, S, I;
2209
+ return ((I = (S = (A = b == null ? void 0 : b.button) == null ? void 0 : A[F]) == null ? void 0 : S.contrast) == null ? void 0 : I.appearance) || _[F].contrast.appearance;
2210
+ }, [x, y] = J(!1), $ = () => y(!0), C = () => y(!1), E = (F) => {
2211
2211
  try {
2212
- p && p(R);
2213
- } catch (S) {
2214
- console.error(S);
2212
+ p && p(F);
2213
+ } catch (A) {
2214
+ console.error(A);
2215
2215
  }
2216
- }, D = ho(
2216
+ }, R = ho(
2217
2217
  u,
2218
2218
  g,
2219
2219
  x,
@@ -2231,7 +2231,7 @@ const oo = {
2231
2231
  $spacing: c,
2232
2232
  $variant: u,
2233
2233
  $fullwidth: h,
2234
- onClick: n ? null : T,
2234
+ onClick: n ? null : E,
2235
2235
  $cursorHover: g,
2236
2236
  $parentHover: m,
2237
2237
  onMouseEnter: $,
@@ -2243,7 +2243,7 @@ const oo = {
2243
2243
  transparent: u === "filled",
2244
2244
  size: "small"
2245
2245
  }
2246
- ) : /* @__PURE__ */ w(E, { alignItems: "center", justifyContent: "center", gap: "8px", children: [
2246
+ ) : /* @__PURE__ */ w(T, { alignItems: "center", justifyContent: "center", gap: "8px", children: [
2247
2247
  a && /* @__PURE__ */ s(
2248
2248
  q,
2249
2249
  {
@@ -2251,18 +2251,18 @@ const oo = {
2251
2251
  size: "18px",
2252
2252
  appearance: u === "filled" ? f(l) : l,
2253
2253
  disabled: n,
2254
- parentHover: D
2254
+ parentHover: R
2255
2255
  }
2256
2256
  ),
2257
2257
  /* @__PURE__ */ s(
2258
- A,
2258
+ D,
2259
2259
  {
2260
2260
  type: "label",
2261
2261
  size: "large",
2262
2262
  appearance: u === "filled" ? f(l) : l,
2263
2263
  disabled: n,
2264
2264
  ellipsis: !0,
2265
- parentHover: D,
2265
+ parentHover: R,
2266
2266
  textAlign: "start",
2267
2267
  weight: "bold",
2268
2268
  children: t
@@ -2275,7 +2275,7 @@ const oo = {
2275
2275
  size: "18px",
2276
2276
  appearance: u === "filled" ? f(l) : l,
2277
2277
  disabled: n,
2278
- parentHover: D
2278
+ parentHover: R
2279
2279
  }
2280
2280
  )
2281
2281
  ] })
@@ -2420,7 +2420,7 @@ v.div`
2420
2420
  margin-top: 4px;
2421
2421
  pointer-events: none;
2422
2422
  `;
2423
- const Te = {
2423
+ const Se = {
2424
2424
  track: {
2425
2425
  color: r.palette.neutral.N30
2426
2426
  },
@@ -2441,7 +2441,7 @@ v.div`
2441
2441
  width: 100%;
2442
2442
  background-color: ${({ theme: e }) => {
2443
2443
  var t, l;
2444
- return ((l = (t = e == null ? void 0 : e.assisted) == null ? void 0 : t.track) == null ? void 0 : l.color) || Te.track.color;
2444
+ return ((l = (t = e == null ? void 0 : e.assisted) == null ? void 0 : t.track) == null ? void 0 : l.color) || Se.track.color;
2445
2445
  }};
2446
2446
 
2447
2447
  &::before {
@@ -2453,7 +2453,7 @@ v.div`
2453
2453
  width: ${({ $currentStep: e, $totalSteps: t }) => `${e / t * 100}%`};
2454
2454
  background: ${({ theme: e }) => {
2455
2455
  var t, l;
2456
- return ((l = (t = e == null ? void 0 : e.assisted) == null ? void 0 : t.bar) == null ? void 0 : l.color) || Te.bar.color;
2456
+ return ((l = (t = e == null ? void 0 : e.assisted) == null ? void 0 : t.bar) == null ? void 0 : l.color) || Se.bar.color;
2457
2457
  }};
2458
2458
  }
2459
2459
  `;
@@ -2469,7 +2469,7 @@ v.div`
2469
2469
  border-style: solid;
2470
2470
  border-color: ${({ theme: e }) => {
2471
2471
  var t, l;
2472
- return ((l = (t = e == null ? void 0 : e.assisted) == null ? void 0 : t.step) == null ? void 0 : l.color) || Te.step.color;
2472
+ return ((l = (t = e == null ? void 0 : e.assisted) == null ? void 0 : t.step) == null ? void 0 : l.color) || Se.step.color;
2473
2473
  }};
2474
2474
  `;
2475
2475
  v.div`
@@ -2477,7 +2477,7 @@ v.div`
2477
2477
  padding: ${({ $size: e }) => e === "large" ? "16px" : "12px"};
2478
2478
  background-color: ${({ theme: e }) => {
2479
2479
  var t, l;
2480
- return ((l = (t = e == null ? void 0 : e.assisted) == null ? void 0 : t.background) == null ? void 0 : l.color) || Te.background.color;
2480
+ return ((l = (t = e == null ? void 0 : e.assisted) == null ? void 0 : t.background) == null ? void 0 : l.color) || Se.background.color;
2481
2481
  }};
2482
2482
  `;
2483
2483
  const vo = {
@@ -2943,7 +2943,7 @@ v.div`
2943
2943
  cursor: ${({ $disabled: e }) => e && "not-allowed"};
2944
2944
  `;
2945
2945
  (/* @__PURE__ */ new Date()).getFullYear();
2946
- const F = {
2946
+ const O = {
2947
2947
  on: {
2948
2948
  background: {
2949
2949
  color: {
@@ -3011,13 +3011,13 @@ const ko = v.div`
3011
3011
  height: ${({ $size: e }) => e === "small" ? "12px" : "16px"};
3012
3012
  background-color: ${({ theme: e }) => {
3013
3013
  var t, l, o, n;
3014
- return ((n = (o = (l = (t = e == null ? void 0 : e.toggle) == null ? void 0 : t.on) == null ? void 0 : l.toggleBackground) == null ? void 0 : o.color) == null ? void 0 : n.regular) || F.on.toggleBackground.color.regular;
3014
+ return ((n = (o = (l = (t = e == null ? void 0 : e.toggle) == null ? void 0 : t.on) == null ? void 0 : l.toggleBackground) == null ? void 0 : o.color) == null ? void 0 : n.regular) || O.on.toggleBackground.color.regular;
3015
3015
  }};
3016
3016
  border-width: 1px;
3017
3017
  border-style: solid;
3018
3018
  border-color: ${({ $checked: e, $disabled: t, theme: l }) => {
3019
3019
  var o, n, a, i, d, c, u, h, p, g, m, b, f, x, y, $;
3020
- return e ? t ? ((i = (a = (n = (o = l == null ? void 0 : l.toggle) == null ? void 0 : o.on) == null ? void 0 : n.toggleBorder) == null ? void 0 : a.color) == null ? void 0 : i.disabled) || F.on.toggleBorder.color.disabled : ((h = (u = (c = (d = l == null ? void 0 : l.toggle) == null ? void 0 : d.on) == null ? void 0 : c.toggleBorder) == null ? void 0 : u.color) == null ? void 0 : h.regular) || F.on.toggleBorder.color.regular : t ? ((b = (m = (g = (p = l == null ? void 0 : l.toggle) == null ? void 0 : p.off) == null ? void 0 : g.toggleBorder) == null ? void 0 : m.color) == null ? void 0 : b.disabled) || F.off.toggleBorder.color.disabled : (($ = (y = (x = (f = l == null ? void 0 : l.toggle) == null ? void 0 : f.off) == null ? void 0 : x.toggleBorder) == null ? void 0 : y.color) == null ? void 0 : $.regular) || F.off.toggleBorder.color.regular;
3020
+ return e ? t ? ((i = (a = (n = (o = l == null ? void 0 : l.toggle) == null ? void 0 : o.on) == null ? void 0 : n.toggleBorder) == null ? void 0 : a.color) == null ? void 0 : i.disabled) || O.on.toggleBorder.color.disabled : ((h = (u = (c = (d = l == null ? void 0 : l.toggle) == null ? void 0 : d.on) == null ? void 0 : c.toggleBorder) == null ? void 0 : u.color) == null ? void 0 : h.regular) || O.on.toggleBorder.color.regular : t ? ((b = (m = (g = (p = l == null ? void 0 : l.toggle) == null ? void 0 : p.off) == null ? void 0 : g.toggleBorder) == null ? void 0 : m.color) == null ? void 0 : b.disabled) || O.off.toggleBorder.color.disabled : (($ = (y = (x = (f = l == null ? void 0 : l.toggle) == null ? void 0 : f.off) == null ? void 0 : x.toggleBorder) == null ? void 0 : y.color) == null ? void 0 : $.regular) || O.off.toggleBorder.color.regular;
3021
3021
  }};
3022
3022
  }
3023
3023
  `, wo = v.label`
@@ -3030,13 +3030,13 @@ const ko = v.div`
3030
3030
 
3031
3031
  background-color: ${({ theme: e, $disabled: t, $checked: l }) => {
3032
3032
  var o, n, a, i, d, c, u, h, p, g, m, b, f, x, y, $;
3033
- return l ? t ? ((i = (a = (n = (o = e == null ? void 0 : e.toggle) == null ? void 0 : o.on) == null ? void 0 : n.background) == null ? void 0 : a.color) == null ? void 0 : i.disabled) || F.on.background.color.disabled : ((h = (u = (c = (d = e == null ? void 0 : e.toggle) == null ? void 0 : d.on) == null ? void 0 : c.background) == null ? void 0 : u.color) == null ? void 0 : h.regular) || F.on.background.color.regular : t ? ((b = (m = (g = (p = e == null ? void 0 : e.toggle) == null ? void 0 : p.off) == null ? void 0 : g.background) == null ? void 0 : m.color) == null ? void 0 : b.disabled) || F.off.background.color.disabled : (($ = (y = (x = (f = e == null ? void 0 : e.toggle) == null ? void 0 : f.off) == null ? void 0 : x.background) == null ? void 0 : y.color) == null ? void 0 : $.regular) || F.off.background.color.regular;
3033
+ return l ? t ? ((i = (a = (n = (o = e == null ? void 0 : e.toggle) == null ? void 0 : o.on) == null ? void 0 : n.background) == null ? void 0 : a.color) == null ? void 0 : i.disabled) || O.on.background.color.disabled : ((h = (u = (c = (d = e == null ? void 0 : e.toggle) == null ? void 0 : d.on) == null ? void 0 : c.background) == null ? void 0 : u.color) == null ? void 0 : h.regular) || O.on.background.color.regular : t ? ((b = (m = (g = (p = e == null ? void 0 : e.toggle) == null ? void 0 : p.off) == null ? void 0 : g.background) == null ? void 0 : m.color) == null ? void 0 : b.disabled) || O.off.background.color.disabled : (($ = (y = (x = (f = e == null ? void 0 : e.toggle) == null ? void 0 : f.off) == null ? void 0 : x.background) == null ? void 0 : y.color) == null ? void 0 : $.regular) || O.off.background.color.regular;
3034
3034
  }};
3035
3035
 
3036
3036
  &:hover {
3037
3037
  background-color: ${({ theme: e, $disabled: t, $checked: l }) => {
3038
3038
  var o, n, a, i, d, c, u, h, p, g, m, b, f, x, y, $;
3039
- return l ? t ? ((i = (a = (n = (o = e == null ? void 0 : e.toggle) == null ? void 0 : o.on) == null ? void 0 : n.background) == null ? void 0 : a.color) == null ? void 0 : i.disabled) || F.on.background.color.disabled : ((h = (u = (c = (d = e == null ? void 0 : e.toggle) == null ? void 0 : d.on) == null ? void 0 : c.background) == null ? void 0 : u.color) == null ? void 0 : h.hover) || F.on.background.color.hover : t ? ((b = (m = (g = (p = e == null ? void 0 : e.toggle) == null ? void 0 : p.off) == null ? void 0 : g.background) == null ? void 0 : m.color) == null ? void 0 : b.disabled) || F.off.background.color.disabled : (($ = (y = (x = (f = e == null ? void 0 : e.toggle) == null ? void 0 : f.off) == null ? void 0 : x.background) == null ? void 0 : y.color) == null ? void 0 : $.hover) || F.off.background.color.hover;
3039
+ return l ? t ? ((i = (a = (n = (o = e == null ? void 0 : e.toggle) == null ? void 0 : o.on) == null ? void 0 : n.background) == null ? void 0 : a.color) == null ? void 0 : i.disabled) || O.on.background.color.disabled : ((h = (u = (c = (d = e == null ? void 0 : e.toggle) == null ? void 0 : d.on) == null ? void 0 : c.background) == null ? void 0 : u.color) == null ? void 0 : h.hover) || O.on.background.color.hover : t ? ((b = (m = (g = (p = e == null ? void 0 : e.toggle) == null ? void 0 : p.off) == null ? void 0 : g.background) == null ? void 0 : m.color) == null ? void 0 : b.disabled) || O.off.background.color.disabled : (($ = (y = (x = (f = e == null ? void 0 : e.toggle) == null ? void 0 : f.off) == null ? void 0 : x.background) == null ? void 0 : y.color) == null ? void 0 : $.hover) || O.off.background.color.hover;
3040
3040
  }};
3041
3041
  }
3042
3042
  `, No = v.input`
@@ -3066,7 +3066,7 @@ const ko = v.div`
3066
3066
  children: b,
3067
3067
  margin: f = "0px",
3068
3068
  padding: x = "0px"
3069
- } = e, y = ee(Z), $ = ((o = (l = (t = y == null ? void 0 : y.toggle) == null ? void 0 : t.on) == null ? void 0 : l.icon) == null ? void 0 : o.appereance) || F.on.icon.appereance, C = ((i = (a = (n = y == null ? void 0 : y.toggle) == null ? void 0 : n.off) == null ? void 0 : a.icon) == null ? void 0 : i.appereance) || F.off.icon.appereance;
3069
+ } = e, y = ee(Z), $ = ((o = (l = (t = y == null ? void 0 : y.toggle) == null ? void 0 : t.on) == null ? void 0 : l.icon) == null ? void 0 : o.appereance) || O.on.icon.appereance, C = ((i = (a = (n = y == null ? void 0 : y.toggle) == null ? void 0 : n.off) == null ? void 0 : a.icon) == null ? void 0 : i.appereance) || O.off.icon.appereance;
3070
3070
  return /* @__PURE__ */ w(
3071
3071
  At,
3072
3072
  {
@@ -3085,11 +3085,11 @@ const ko = v.div`
3085
3085
  $size: p,
3086
3086
  value: h,
3087
3087
  checked: g,
3088
- onChange: d ? () => null : (T) => {
3088
+ onChange: d ? () => null : (E) => {
3089
3089
  try {
3090
- m && m(T);
3091
- } catch (D) {
3092
- console.error(`Error when changing toggle value. ${D}`);
3090
+ m && m(E);
3091
+ } catch (R) {
3092
+ console.error(`Error when changing toggle value. ${R}`);
3093
3093
  }
3094
3094
  },
3095
3095
  $disabled: d,
@@ -3108,7 +3108,7 @@ const ko = v.div`
3108
3108
  ) })
3109
3109
  ] }),
3110
3110
  b && /* @__PURE__ */ s(
3111
- Ae,
3111
+ De,
3112
3112
  {
3113
3113
  htmlFor: c,
3114
3114
  disabled: d,
@@ -3387,7 +3387,7 @@ v.tr`
3387
3387
  background-color: ${({ $zebra: e }) => e && "unset"};
3388
3388
  }
3389
3389
  `;
3390
- const O = {
3390
+ const L = {
3391
3391
  border: {
3392
3392
  color: {
3393
3393
  active: r.palette.neutral.N80,
@@ -3422,11 +3422,11 @@ const O = {
3422
3422
  &:checked + span {
3423
3423
  border-color: ${({ theme: e }) => {
3424
3424
  var t, l, o;
3425
- return ((o = (l = (t = e == null ? void 0 : e.checkbox) == null ? void 0 : t.border) == null ? void 0 : l.color) == null ? void 0 : o.checked) || O.border.color.checked;
3425
+ return ((o = (l = (t = e == null ? void 0 : e.checkbox) == null ? void 0 : t.border) == null ? void 0 : l.color) == null ? void 0 : o.checked) || L.border.color.checked;
3426
3426
  }};
3427
3427
  background-color: ${({ theme: e }) => {
3428
3428
  var t, l, o;
3429
- return ((o = (l = (t = e == null ? void 0 : e.checkbox) == null ? void 0 : t.background) == null ? void 0 : l.color) == null ? void 0 : o.checked) || O.background.color.checked;
3429
+ return ((o = (l = (t = e == null ? void 0 : e.checkbox) == null ? void 0 : t.background) == null ? void 0 : l.color) == null ? void 0 : o.checked) || L.background.color.checked;
3430
3430
  }};
3431
3431
  }
3432
3432
 
@@ -3434,7 +3434,7 @@ const O = {
3434
3434
  outline: 2px solid
3435
3435
  ${({ theme: e }) => {
3436
3436
  var t, l, o;
3437
- return ((o = (l = (t = e == null ? void 0 : e.checkbox) == null ? void 0 : t.outline) == null ? void 0 : l.color) == null ? void 0 : o.hover) || O.outline.color.hover;
3437
+ return ((o = (l = (t = e == null ? void 0 : e.checkbox) == null ? void 0 : t.outline) == null ? void 0 : l.color) == null ? void 0 : o.hover) || L.outline.color.hover;
3438
3438
  }};
3439
3439
  outline-offset: 2px;
3440
3440
  }
@@ -3442,11 +3442,11 @@ const O = {
3442
3442
  &:disabled + span {
3443
3443
  border-color: ${({ theme: e }) => {
3444
3444
  var t, l, o;
3445
- return ((o = (l = (t = e == null ? void 0 : e.checkbox) == null ? void 0 : t.border) == null ? void 0 : l.color) == null ? void 0 : o.disabled) || O.border.color.disabled;
3445
+ return ((o = (l = (t = e == null ? void 0 : e.checkbox) == null ? void 0 : t.border) == null ? void 0 : l.color) == null ? void 0 : o.disabled) || L.border.color.disabled;
3446
3446
  }};
3447
3447
  background-color: ${({ theme: e }) => {
3448
3448
  var t, l, o;
3449
- return ((o = (l = (t = e == null ? void 0 : e.checkbox) == null ? void 0 : t.background) == null ? void 0 : l.color) == null ? void 0 : o.disabled) || O.background.color.disabled;
3449
+ return ((o = (l = (t = e == null ? void 0 : e.checkbox) == null ? void 0 : t.background) == null ? void 0 : l.color) == null ? void 0 : o.disabled) || L.background.color.disabled;
3450
3450
  }};
3451
3451
  }
3452
3452
  `, To = v.span`
@@ -3457,11 +3457,11 @@ const O = {
3457
3457
  border: 2px solid
3458
3458
  ${({ theme: e, checked: t, $indeterminate: l }) => {
3459
3459
  var o, n, a, i, d, c;
3460
- return t || l ? ((a = (n = (o = e == null ? void 0 : e.checkbox) == null ? void 0 : o.border) == null ? void 0 : n.color) == null ? void 0 : a.checked) || O.border.color.checked : ((c = (d = (i = e == null ? void 0 : e.checkbox) == null ? void 0 : i.border) == null ? void 0 : d.color) == null ? void 0 : c.active) || O.border.color.active;
3460
+ return t || l ? ((a = (n = (o = e == null ? void 0 : e.checkbox) == null ? void 0 : o.border) == null ? void 0 : n.color) == null ? void 0 : a.checked) || L.border.color.checked : ((c = (d = (i = e == null ? void 0 : e.checkbox) == null ? void 0 : i.border) == null ? void 0 : d.color) == null ? void 0 : c.active) || L.border.color.active;
3461
3461
  }};
3462
3462
  background-color: ${({ theme: e, checked: t, $indeterminate: l }) => {
3463
3463
  var o, n, a, i, d, c;
3464
- return t || l ? ((a = (n = (o = e == null ? void 0 : e.checkbox) == null ? void 0 : o.background) == null ? void 0 : n.color) == null ? void 0 : a.checked) || O.background.color.checked : ((c = (d = (i = e == null ? void 0 : e.checkbox) == null ? void 0 : i.background) == null ? void 0 : d.color) == null ? void 0 : c.active) || O.background.color.active;
3464
+ return t || l ? ((a = (n = (o = e == null ? void 0 : e.checkbox) == null ? void 0 : o.background) == null ? void 0 : n.color) == null ? void 0 : a.checked) || L.background.color.checked : ((c = (d = (i = e == null ? void 0 : e.checkbox) == null ? void 0 : i.background) == null ? void 0 : d.color) == null ? void 0 : c.active) || L.background.color.active;
3465
3465
  }};
3466
3466
  cursor: ${({ disabled: e }) => e ? "not-allowed" : "pointer"};
3467
3467
 
@@ -3470,8 +3470,8 @@ const O = {
3470
3470
  justify-content: center;
3471
3471
 
3472
3472
  ${({ disabled: e }) => e && `
3473
- border-color: ${O.border.color.disabled};
3474
- background-color: ${O.background.color.disabled};
3473
+ border-color: ${L.border.color.disabled};
3474
+ background-color: ${L.background.color.disabled};
3475
3475
  `}
3476
3476
  `, So = v.label`
3477
3477
  display: flex;
@@ -3492,8 +3492,8 @@ const O = {
3492
3492
  disabled: x = !1,
3493
3493
  required: y = !1,
3494
3494
  onChange: $
3495
- } = e, C = ee(Z), T = ((o = (l = (t = C == null ? void 0 : C.checkbox) == null ? void 0 : t.vector) == null ? void 0 : l.color) == null ? void 0 : o.disabled) || O.vector.color.disabled, D = ((i = (a = (n = C == null ? void 0 : C.checkbox) == null ? void 0 : n.vector) == null ? void 0 : a.color) == null ? void 0 : i.indeterminate) || O.vector.color.indeterminate, R = ((u = (c = (d = C == null ? void 0 : C.checkbox) == null ? void 0 : d.vector) == null ? void 0 : c.color) == null ? void 0 : u.checked) || O.vector.color.checked;
3496
- return /* @__PURE__ */ w(E, { direction: "row", alignItems: "center", gap: "10px", width: "fit-content", children: [
3495
+ } = e, C = ee(Z), E = ((o = (l = (t = C == null ? void 0 : C.checkbox) == null ? void 0 : t.vector) == null ? void 0 : l.color) == null ? void 0 : o.disabled) || L.vector.color.disabled, R = ((i = (a = (n = C == null ? void 0 : C.checkbox) == null ? void 0 : n.vector) == null ? void 0 : a.color) == null ? void 0 : i.indeterminate) || L.vector.color.indeterminate, F = ((u = (c = (d = C == null ? void 0 : C.checkbox) == null ? void 0 : d.vector) == null ? void 0 : c.color) == null ? void 0 : u.checked) || L.vector.color.checked;
3496
+ return /* @__PURE__ */ w(T, { direction: "row", alignItems: "center", gap: "10px", width: "fit-content", children: [
3497
3497
  /* @__PURE__ */ w(So, { children: [
3498
3498
  /* @__PURE__ */ s(
3499
3499
  Eo,
@@ -3506,8 +3506,8 @@ const O = {
3506
3506
  disabled: x,
3507
3507
  required: y,
3508
3508
  onChange: $,
3509
- ref: (S) => {
3510
- S && (S.indeterminate = b);
3509
+ ref: (A) => {
3510
+ A && (A.indeterminate = b);
3511
3511
  }
3512
3512
  }
3513
3513
  ),
@@ -3520,20 +3520,20 @@ const O = {
3520
3520
  children: b ? /* @__PURE__ */ s(
3521
3521
  Ml,
3522
3522
  {
3523
- color: x ? T : D
3523
+ color: x ? E : R
3524
3524
  }
3525
3525
  ) : m && /* @__PURE__ */ s(
3526
3526
  Gl,
3527
3527
  {
3528
- color: x ? T : R
3528
+ color: x ? E : F
3529
3529
  }
3530
3530
  )
3531
3531
  }
3532
3532
  )
3533
3533
  ] }),
3534
- f && /* @__PURE__ */ s(zo, { children: /* @__PURE__ */ s(Ae, { htmlFor: h, disabled: x, children: /* @__PURE__ */ w(E, { direction: "row", alignItems: "center", gap: "4px", children: [
3534
+ f && /* @__PURE__ */ s(zo, { children: /* @__PURE__ */ s(De, { htmlFor: h, disabled: x, children: /* @__PURE__ */ w(T, { direction: "row", alignItems: "center", gap: "4px", children: [
3535
3535
  f,
3536
- y && /* @__PURE__ */ s(A, { type: "label", appearance: "danger", size: "small", children: "*" })
3536
+ y && /* @__PURE__ */ s(D, { type: "label", appearance: "danger", size: "small", children: "*" })
3537
3537
  ] }) }) })
3538
3538
  ] });
3539
3539
  }, Ao = v.ul`
@@ -3654,7 +3654,7 @@ const O = {
3654
3654
  }
3655
3655
  ),
3656
3656
  /* @__PURE__ */ s(
3657
- A,
3657
+ D,
3658
3658
  {
3659
3659
  margin: u ? "0 0 0 9px" : "0px",
3660
3660
  textAlign: "start",
@@ -3764,7 +3764,7 @@ function Vo(e, t) {
3764
3764
  const jo = (e) => {
3765
3765
  var t, l;
3766
3766
  const { message: o } = e, n = ee(Z), a = ((l = (t = n == null ? void 0 : n.input) == null ? void 0 : t.message) == null ? void 0 : l.appearance) || N.message.appearance;
3767
- return /* @__PURE__ */ w(E, { alignItems: "center", gap: "4px", margin: "4px 0 0 16px", children: [
3767
+ return /* @__PURE__ */ w(T, { alignItems: "center", gap: "4px", margin: "4px 0 0 16px", children: [
3768
3768
  /* @__PURE__ */ s(
3769
3769
  q,
3770
3770
  {
@@ -3774,7 +3774,7 @@ const jo = (e) => {
3774
3774
  }
3775
3775
  ),
3776
3776
  /* @__PURE__ */ s(
3777
- A,
3777
+ D,
3778
3778
  {
3779
3779
  type: "body",
3780
3780
  size: "small",
@@ -3804,20 +3804,20 @@ ht((e, t) => {
3804
3804
  onClick: y,
3805
3805
  onFocus: $,
3806
3806
  onOptionClick: C,
3807
- options: T,
3808
- placeholder: D,
3809
- readOnly: R,
3810
- required: S,
3811
- size: P,
3807
+ options: E,
3808
+ placeholder: R,
3809
+ readOnly: F,
3810
+ required: A,
3811
+ size: S,
3812
3812
  value: I,
3813
3813
  onKeyUp: V,
3814
3814
  picker: j,
3815
- checkedItems: De,
3815
+ checkedItems: Re,
3816
3816
  onCheckboxChange: Pt
3817
- } = e, Je = ee(Z), Bt = ((o = (l = Je == null ? void 0 : Je.input) == null ? void 0 : l.required) == null ? void 0 : o.appearance) || N.required.appearance, It = j ? T.filter((X) => De.includes(X.id)).map((X) => X.label).join(", ") : Vo(T, I);
3817
+ } = e, Je = ee(Z), Bt = ((o = (l = Je == null ? void 0 : Je.input) == null ? void 0 : l.required) == null ? void 0 : o.appearance) || N.required.appearance, It = j ? E.filter((X) => Re.includes(X.id)).map((X) => X.label).join(", ") : Vo(E, I);
3818
3818
  return /* @__PURE__ */ w(Oo, { $fullwidth: d, disabled: a, ref: t, children: [
3819
3819
  p && /* @__PURE__ */ w(
3820
- E,
3820
+ T,
3821
3821
  {
3822
3822
  alignItems: "center",
3823
3823
  margin: "0 0 4px 0",
@@ -3825,19 +3825,19 @@ ht((e, t) => {
3825
3825
  gap: "4px",
3826
3826
  children: [
3827
3827
  /* @__PURE__ */ s(
3828
- Ae,
3828
+ De,
3829
3829
  {
3830
3830
  htmlFor: u,
3831
3831
  focused: i,
3832
3832
  invalid: h,
3833
- size: Io(P),
3833
+ size: Io(S),
3834
3834
  margin: "0px 0px 0px 2px",
3835
3835
  disabled: a,
3836
3836
  children: p
3837
3837
  }
3838
3838
  ),
3839
- S && !a && /* @__PURE__ */ s(
3840
- A,
3839
+ A && !a && /* @__PURE__ */ s(
3840
+ D,
3841
3841
  {
3842
3842
  type: "body",
3843
3843
  size: "small",
@@ -3857,7 +3857,7 @@ ht((e, t) => {
3857
3857
  $invalid: h,
3858
3858
  onClick: y,
3859
3859
  $value: I,
3860
- $size: P,
3860
+ $size: S,
3861
3861
  children: [
3862
3862
  /* @__PURE__ */ s(
3863
3863
  Po,
@@ -3866,10 +3866,10 @@ ht((e, t) => {
3866
3866
  value: It,
3867
3867
  name: b,
3868
3868
  id: u,
3869
- placeholder: D,
3869
+ placeholder: R,
3870
3870
  disabled: a,
3871
- required: S,
3872
- $size: P,
3871
+ required: A,
3872
+ $size: S,
3873
3873
  $fullwidth: d,
3874
3874
  $focused: i,
3875
3875
  onFocus: $,
@@ -3877,11 +3877,11 @@ ht((e, t) => {
3877
3877
  onChange: x,
3878
3878
  onClick: y,
3879
3879
  onKeyUp: V,
3880
- readOnly: R
3880
+ readOnly: F
3881
3881
  }
3882
3882
  ),
3883
- /* @__PURE__ */ w(E, { direction: "row", gap: "8px", alignItems: "center", children: [
3884
- (I || j && De.length > 0) && !a && /* @__PURE__ */ s(
3883
+ /* @__PURE__ */ w(T, { direction: "row", gap: "8px", alignItems: "center", children: [
3884
+ (I || j && Re.length > 0) && !a && /* @__PURE__ */ s(
3885
3885
  q,
3886
3886
  {
3887
3887
  appearance: "gray",
@@ -3909,13 +3909,13 @@ ht((e, t) => {
3909
3909
  {
3910
3910
  maxItems: g,
3911
3911
  onOptionClick: C,
3912
- options: T,
3913
- children: T.map((X) => /* @__PURE__ */ s(
3912
+ options: E,
3913
+ children: E.map((X) => /* @__PURE__ */ s(
3914
3914
  Fo,
3915
3915
  {
3916
3916
  id: X.id,
3917
3917
  label: X.label,
3918
- checked: De.includes(X.id),
3918
+ checked: Re.includes(X.id),
3919
3919
  onCheckboxChange: Pt,
3920
3920
  picker: j
3921
3921
  },
@@ -4031,27 +4031,27 @@ const Ho = v.div`
4031
4031
  fullwidth: f = !1,
4032
4032
  onFocus: x,
4033
4033
  onBlur: y
4034
- } = e, [$, C] = J(!1), T = (V) => {
4034
+ } = e, [$, C] = J(!1), E = (V) => {
4035
4035
  C(!0);
4036
4036
  try {
4037
4037
  x && x(V);
4038
4038
  } catch (j) {
4039
4039
  console.error(`Error executing focus callback. ${j}`);
4040
4040
  }
4041
- }, D = (V) => {
4041
+ }, R = (V) => {
4042
4042
  C(!1);
4043
4043
  try {
4044
4044
  y && y(V);
4045
4045
  } catch (j) {
4046
4046
  console.error(`Error executing blur callback. ${j}`);
4047
4047
  }
4048
- }, R = (V) => {
4048
+ }, F = (V) => {
4049
4049
  try {
4050
4050
  h && h(V);
4051
4051
  } catch (j) {
4052
4052
  console.error(`Error when changing value using callback. ${j}`);
4053
4053
  }
4054
- }, S = ee(Z), P = ((l = (t = S == null ? void 0 : S.input) == null ? void 0 : t.required) == null ? void 0 : l.appearance) || N.required.appearance, I = ((n = (o = S == null ? void 0 : S.input) == null ? void 0 : o.message) == null ? void 0 : n.appearance) || N.message.appearance;
4054
+ }, A = ee(Z), S = ((l = (t = A == null ? void 0 : A.input) == null ? void 0 : t.required) == null ? void 0 : l.appearance) || N.required.appearance, I = ((n = (o = A == null ? void 0 : A.input) == null ? void 0 : o.message) == null ? void 0 : n.appearance) || N.message.appearance;
4055
4055
  return /* @__PURE__ */ w(Ho, { $fullwidth: f, $disabled: c, $size: b, children: [
4056
4056
  /* @__PURE__ */ w(
4057
4057
  _o,
@@ -4062,7 +4062,7 @@ const Ho = v.div`
4062
4062
  $disabled: c,
4063
4063
  children: [
4064
4064
  a && /* @__PURE__ */ s(
4065
- Ae,
4065
+ De,
4066
4066
  {
4067
4067
  htmlFor: d,
4068
4068
  disabled: c,
@@ -4074,11 +4074,11 @@ const Ho = v.div`
4074
4074
  }
4075
4075
  ),
4076
4076
  p && !c && /* @__PURE__ */ s(
4077
- A,
4077
+ D,
4078
4078
  {
4079
4079
  type: "body",
4080
4080
  size: "small",
4081
- appearance: P,
4081
+ appearance: S,
4082
4082
  margin: "0px 0px 0px 4px",
4083
4083
  textAlign: "center",
4084
4084
  children: "(Requerido)"
@@ -4107,9 +4107,9 @@ const Ho = v.div`
4107
4107
  $status: g,
4108
4108
  $fullwidth: f,
4109
4109
  $focused: $,
4110
- onChange: R,
4111
- onFocus: T,
4112
- onBlur: D
4110
+ onChange: F,
4111
+ onFocus: E,
4112
+ onBlur: R
4113
4113
  }
4114
4114
  )
4115
4115
  }
@@ -4117,7 +4117,7 @@ const Ho = v.div`
4117
4117
  g === "invalid" && !c && m && /* @__PURE__ */ w(qo, { children: [
4118
4118
  /* @__PURE__ */ s(q, { appearance: I, icon: /* @__PURE__ */ s(Xl, {}) }),
4119
4119
  /* @__PURE__ */ s(
4120
- A,
4120
+ D,
4121
4121
  {
4122
4122
  type: "body",
4123
4123
  size: "small",
@@ -4520,11 +4520,17 @@ const Xo = (e) => {
4520
4520
  messageEnd: p = "",
4521
4521
  statusStart: g = "pending",
4522
4522
  statusEnd: m = "pending"
4523
- } = e, [b, f] = J(i), [x, y] = J(c), [$, C] = J(u);
4523
+ } = e, [b, f] = J(i), [x, y] = J(c), [$, C] = J(u), E = ({ target: S }) => {
4524
+ f(S.checked), o && o(S.checked);
4525
+ }, R = (S) => {
4526
+ y(S.target.value), t(S);
4527
+ }, F = (S) => {
4528
+ C(S.target.value), l(S);
4529
+ }, A = Te("(max-width: 400px)");
4524
4530
  return /* @__PURE__ */ w(he, { children: [
4525
- /* @__PURE__ */ w(E, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
4526
- /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
4527
- A,
4531
+ /* @__PURE__ */ w(T, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
4532
+ /* @__PURE__ */ s(
4533
+ D,
4528
4534
  {
4529
4535
  appearance: "gray",
4530
4536
  margin: "10px 0",
@@ -4533,9 +4539,9 @@ const Xo = (e) => {
4533
4539
  weight: "bold",
4534
4540
  children: "Vigencia"
4535
4541
  }
4536
- ) }),
4542
+ ),
4537
4543
  /* @__PURE__ */ s(
4538
- E,
4544
+ T,
4539
4545
  {
4540
4546
  alignContent: "center",
4541
4547
  justifyContent: "center",
@@ -4545,9 +4551,7 @@ const Xo = (e) => {
4545
4551
  Rt,
4546
4552
  {
4547
4553
  label: "Cerrada",
4548
- onChange: ({ target: S }) => {
4549
- f(S.checked), o && o(S.checked);
4550
- },
4554
+ onChange: E,
4551
4555
  checked: b,
4552
4556
  value: ""
4553
4557
  }
@@ -4555,38 +4559,42 @@ const Xo = (e) => {
4555
4559
  }
4556
4560
  )
4557
4561
  ] }),
4558
- /* @__PURE__ */ w(E, { justifyContent: "space-between", gap: "24px", children: [
4559
- /* @__PURE__ */ s(E, { width: "189px", children: /* @__PURE__ */ s(
4560
- ut,
4561
- {
4562
- id: "dateStart",
4563
- label: n,
4564
- onChange: (S) => {
4565
- y(S.target.value), t(S);
4566
- },
4567
- value: x,
4568
- required: d,
4569
- size: "compact",
4570
- status: g,
4571
- message: h
4572
- }
4573
- ) }),
4574
- b && /* @__PURE__ */ s(E, { width: "189px", children: /* @__PURE__ */ s(
4575
- ut,
4576
- {
4577
- id: "dateEnd",
4578
- label: a,
4579
- onChange: (S) => {
4580
- C(S.target.value), l(S);
4581
- },
4582
- value: $,
4583
- required: d,
4584
- size: "compact",
4585
- status: m,
4586
- message: p
4587
- }
4588
- ) })
4589
- ] })
4562
+ /* @__PURE__ */ w(
4563
+ T,
4564
+ {
4565
+ direction: A ? "column" : "row",
4566
+ justifyContent: "space-between",
4567
+ gap: "24px",
4568
+ children: [
4569
+ /* @__PURE__ */ s(
4570
+ ut,
4571
+ {
4572
+ id: "dateStart",
4573
+ label: n,
4574
+ onChange: R,
4575
+ value: x,
4576
+ required: d,
4577
+ size: "compact",
4578
+ status: g,
4579
+ message: h
4580
+ }
4581
+ ),
4582
+ b && /* @__PURE__ */ s(
4583
+ ut,
4584
+ {
4585
+ id: "dateEnd",
4586
+ label: a,
4587
+ onChange: F,
4588
+ value: $,
4589
+ required: d,
4590
+ size: "compact",
4591
+ status: m,
4592
+ message: p
4593
+ }
4594
+ )
4595
+ ]
4596
+ }
4597
+ )
4590
4598
  ] });
4591
4599
  }, Ko = v.div`
4592
4600
  & > div {
@@ -4625,7 +4633,7 @@ const Xo = (e) => {
4625
4633
  return vt(() => {
4626
4634
  u(t);
4627
4635
  }, [t]), /* @__PURE__ */ w(he, { children: [
4628
- /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
4636
+ /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
4629
4637
  Dt,
4630
4638
  {
4631
4639
  checked: c,
@@ -4634,7 +4642,7 @@ const Xo = (e) => {
4634
4642
  onChange: h,
4635
4643
  size: "small",
4636
4644
  value: d,
4637
- children: /* @__PURE__ */ s(A, { size: "medium", type: "label", weight: "bold", children: a })
4645
+ children: /* @__PURE__ */ s(D, { size: "medium", type: "label", weight: "bold", children: a })
4638
4646
  }
4639
4647
  ) }),
4640
4648
  c && /* @__PURE__ */ s(he, { children: l })
@@ -4661,8 +4669,8 @@ const Xo = (e) => {
4661
4669
  const t = (e == null ? void 0 : e.from) ?? 0, l = (e == null ? void 0 : e.to) ?? 0;
4662
4670
  return {
4663
4671
  schema: ye({
4664
- from: Pe().required("Range From is required").max(l, "'Range From' cannot be greater than 'Range To'").min(0, "'Range From' cannot be less than 0"),
4665
- to: Pe().min(0, "To value must be greater than or equal to 0").required("To value is required").test(
4672
+ from: Be().required("Range From is required").max(l, "'Range From' cannot be greater than 'Range To'").min(0, "'Range From' cannot be less than 0"),
4673
+ to: Be().min(0, "To value must be greater than or equal to 0").required("To value is required").test(
4666
4674
  "is-greater",
4667
4675
  "To value must be greater than From value",
4668
4676
  function(o) {
@@ -4673,8 +4681,8 @@ const Xo = (e) => {
4673
4681
  }),
4674
4682
  value: { from: t, to: l }
4675
4683
  };
4676
- }, Le = (e, t) => t === ne.PERCENTAGE ? {
4677
- schema: Pe().required("Percentage is required").min(0, "Percentage cannot be less than 0").max(100, "Percentage cannot be greater than 100"),
4684
+ }, Pe = (e, t) => t === ne.PERCENTAGE ? {
4685
+ schema: Be().required("Percentage is required").min(0, "Percentage cannot be less than 0").max(100, "Percentage cannot be greater than 100"),
4678
4686
  value: e
4679
4687
  } : {
4680
4688
  schema: Ue().required("Required"),
@@ -4690,9 +4698,9 @@ const Xo = (e) => {
4690
4698
  [B.LIST_OF_VALUES]: Zo,
4691
4699
  [B.LIST_OF_VALUES_MULTI]: er,
4692
4700
  [B.RANGE]: tr,
4693
- [B.GREATER_THAN]: Le,
4694
- [B.LESS_THAN]: Le,
4695
- [B.EQUAL]: Le
4701
+ [B.GREATER_THAN]: Pe,
4702
+ [B.LESS_THAN]: Pe,
4703
+ [B.EQUAL]: Pe
4696
4704
  }, ct = (e) => or[e] || lr;
4697
4705
  function rr({ decision: e, onSubmitEvent: t }) {
4698
4706
  const l = {
@@ -4802,7 +4810,7 @@ const nr = (e) => {
4802
4810
  decisionDataType: t.decisionDataType,
4803
4811
  listOfPossibleValues: t.listOfPossibleValues
4804
4812
  };
4805
- return /* @__PURE__ */ s("form", { onSubmit: a.handleSubmit, children: /* @__PURE__ */ w(E, { direction: "column", gap: "24px", children: [
4813
+ return /* @__PURE__ */ s("form", { onSubmit: a.handleSubmit, children: /* @__PURE__ */ w(T, { direction: "column", gap: "24px", children: [
4806
4814
  Qe({
4807
4815
  condition: d,
4808
4816
  formik: a,
@@ -4810,7 +4818,7 @@ const nr = (e) => {
4810
4818
  }),
4811
4819
  /* @__PURE__ */ s(re, { dashed: !0 }),
4812
4820
  /* @__PURE__ */ s(Ko, { children: /* @__PURE__ */ s(Jo, { children: /* @__PURE__ */ w(
4813
- E,
4821
+ T,
4814
4822
  {
4815
4823
  direction: "column",
4816
4824
  padding: "6px 12px",
@@ -4818,13 +4826,13 @@ const nr = (e) => {
4818
4826
  height: "272px",
4819
4827
  children: [
4820
4828
  /* @__PURE__ */ w(
4821
- E,
4829
+ T,
4822
4830
  {
4823
4831
  justifyContent: "space-between",
4824
4832
  alignItems: "center",
4825
4833
  gap: "64px",
4826
4834
  children: [
4827
- /* @__PURE__ */ s(A, { type: "title", size: "small", weight: "bold", appearance: "gray", children: o.factsThatConditionIt }),
4835
+ /* @__PURE__ */ s(D, { type: "title", size: "small", weight: "bold", appearance: "gray", children: o.factsThatConditionIt }),
4828
4836
  /* @__PURE__ */ s(
4829
4837
  Dt,
4830
4838
  {
@@ -4832,13 +4840,13 @@ const nr = (e) => {
4832
4840
  onChange: () => i(!a.values.toggleNone),
4833
4841
  checked: a.values.toggleNone,
4834
4842
  size: "small",
4835
- children: /* @__PURE__ */ s(A, { size: "medium", type: "label", weight: "bold", children: o.none })
4843
+ children: /* @__PURE__ */ s(D, { as: "span", size: "medium", type: "label", weight: "bold", children: o.none })
4836
4844
  }
4837
4845
  )
4838
4846
  ]
4839
4847
  }
4840
4848
  ),
4841
- /* @__PURE__ */ s(E, { direction: "column", gap: "20px", children: (c = t.conditionThatEstablishesTheDecision) == null ? void 0 : c.map(
4849
+ /* @__PURE__ */ s(T, { direction: "column", gap: "20px", children: (c = t.conditionThatEstablishesTheDecision) == null ? void 0 : c.map(
4842
4850
  (u) => u.hidden ? null : /* @__PURE__ */ s(
4843
4851
  Qo,
4844
4852
  {
@@ -4893,8 +4901,8 @@ const nr = (e) => {
4893
4901
  }
4894
4902
  ),
4895
4903
  /* @__PURE__ */ s(re, {}),
4896
- a.errors.conditionThatEstablishesTheDecision && a.submitCount > 0 && /* @__PURE__ */ s(A, { type: "label", size: "medium", appearance: "danger", children: String(a.errors.conditionThatEstablishesTheDecision) }),
4897
- /* @__PURE__ */ w(E, { direction: "row", justifyContent: "end", gap: "16px", children: [
4904
+ a.errors.conditionThatEstablishesTheDecision && a.submitCount > 0 && /* @__PURE__ */ s(D, { type: "label", size: "medium", appearance: "danger", children: String(a.errors.conditionThatEstablishesTheDecision) }),
4905
+ /* @__PURE__ */ w(T, { direction: "row", justifyContent: "end", gap: "16px", children: [
4898
4906
  /* @__PURE__ */ s(dt, { appearance: "gray", onClick: n, children: o.cancel }),
4899
4907
  /* @__PURE__ */ s(dt, { type: "submit", children: o.confirm })
4900
4908
  ] })
@@ -4946,8 +4954,8 @@ const Ot = (e) => {
4946
4954
  value: pe(t),
4947
4955
  howToSetTheDecision: (t == null ? void 0 : t.howToSetTheDecision) || "EqualTo"
4948
4956
  };
4949
- return !l && t && o ? /* @__PURE__ */ w(E, { direction: "column", gap: "12px", children: [
4950
- t && /* @__PURE__ */ s(E, { direction: "column", alignItems: "center", children: /* @__PURE__ */ s(
4957
+ return !l && t && o ? /* @__PURE__ */ w(T, { direction: "column", gap: "12px", children: [
4958
+ t && /* @__PURE__ */ s(T, { direction: "column", alignItems: "center", children: /* @__PURE__ */ s(
4951
4959
  me,
4952
4960
  {
4953
4961
  element: n,
@@ -4957,7 +4965,7 @@ const Ot = (e) => {
4957
4965
  ) }, t.ruleName),
4958
4966
  /* @__PURE__ */ s(re, { dashed: !0 }),
4959
4967
  /* @__PURE__ */ s(pt, { children: /* @__PURE__ */ w(
4960
- E,
4968
+ T,
4961
4969
  {
4962
4970
  direction: "column",
4963
4971
  gap: "12px",
@@ -4965,7 +4973,7 @@ const Ot = (e) => {
4965
4973
  height: "203px",
4966
4974
  children: [
4967
4975
  /* @__PURE__ */ s(
4968
- A,
4976
+ D,
4969
4977
  {
4970
4978
  type: "label",
4971
4979
  size: "large",
@@ -4975,7 +4983,7 @@ const Ot = (e) => {
4975
4983
  children: o.factsThatConditionIt
4976
4984
  }
4977
4985
  ),
4978
- t.conditionThatEstablishesTheDecision && t.conditionThatEstablishesTheDecision.map((a) => a.hidden ? null : /* @__PURE__ */ s(st, { children: /* @__PURE__ */ s(E, { direction: "column", padding: "8px", children: /* @__PURE__ */ s(
4986
+ t.conditionThatEstablishesTheDecision && t.conditionThatEstablishesTheDecision.map((a) => a.hidden ? null : /* @__PURE__ */ s(st, { children: /* @__PURE__ */ s(T, { direction: "column", padding: "8px", children: /* @__PURE__ */ s(
4979
4987
  me,
4980
4988
  {
4981
4989
  element: {
@@ -4986,7 +4994,7 @@ const Ot = (e) => {
4986
4994
  }
4987
4995
  ) }) }, a.conditionName)),
4988
4996
  /* @__PURE__ */ s(re, { dashed: !0 }),
4989
- /* @__PURE__ */ w(E, { direction: "column", gap: "12px", children: [
4997
+ /* @__PURE__ */ w(T, { direction: "column", gap: "12px", children: [
4990
4998
  (t == null ? void 0 : t.effectiveFrom) && (t == null ? void 0 : t.validUntil) && /* @__PURE__ */ s(
4991
4999
  me,
4992
5000
  {
@@ -5032,24 +5040,24 @@ const Ot = (e) => {
5032
5040
  ]
5033
5041
  }
5034
5042
  ) })
5035
- ] }) : /* @__PURE__ */ w(E, { direction: "column", gap: "12px", children: [
5036
- /* @__PURE__ */ w(E, { direction: "column", alignItems: "center", gap: "4px", children: [
5043
+ ] }) : /* @__PURE__ */ w(T, { direction: "column", gap: "12px", children: [
5044
+ /* @__PURE__ */ w(T, { direction: "column", alignItems: "center", gap: "4px", children: [
5037
5045
  /* @__PURE__ */ s(ce, { animated: !0, width: "180px" }),
5038
5046
  /* @__PURE__ */ s(ce, { animated: !0, width: "85px" })
5039
5047
  ] }, "loading"),
5040
- /* @__PURE__ */ w(E, { direction: "column", gap: "12px", alignItems: "center", children: [
5048
+ /* @__PURE__ */ w(T, { direction: "column", gap: "12px", alignItems: "center", children: [
5041
5049
  /* @__PURE__ */ s(re, { dashed: !0 }),
5042
5050
  /* @__PURE__ */ s(ce, { animated: !0, width: "150px" })
5043
5051
  ] }),
5044
5052
  /* @__PURE__ */ s(pt, { children: /* @__PURE__ */ s(
5045
- E,
5053
+ T,
5046
5054
  {
5047
5055
  direction: "column",
5048
5056
  gap: "12px",
5049
5057
  justifyContent: "space-between",
5050
5058
  height: "203px",
5051
5059
  children: Array.from({ length: 5 }).map((a, i) => /* @__PURE__ */ s(st, { children: /* @__PURE__ */ w(
5052
- E,
5060
+ T,
5053
5061
  {
5054
5062
  direction: "column",
5055
5063
  gap: "12px",
@@ -5097,11 +5105,11 @@ v.div`
5097
5105
  `;
5098
5106
  const Ke = (e) => {
5099
5107
  const { children: t, controls: l = !0, handleDelete: o, id: n } = e;
5100
- return /* @__PURE__ */ s(vr, { children: /* @__PURE__ */ w(E, { direction: "column", gap: "16px", padding: "12px 16px", children: [
5108
+ return /* @__PURE__ */ s(vr, { children: /* @__PURE__ */ w(T, { direction: "column", gap: "16px", padding: "12px 16px", children: [
5101
5109
  t,
5102
5110
  l && /* @__PURE__ */ w(he, { children: [
5103
5111
  /* @__PURE__ */ s(re, {}),
5104
- /* @__PURE__ */ s(E, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ s(
5112
+ /* @__PURE__ */ s(T, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ s(
5105
5113
  q,
5106
5114
  {
5107
5115
  cursorHover: !0,
@@ -5158,9 +5166,9 @@ const Ke = (e) => {
5158
5166
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
5159
5167
  );
5160
5168
  return jt(
5161
- /* @__PURE__ */ s(gr, { children: /* @__PURE__ */ s(no, { children: /* @__PURE__ */ s(br, { children: /* @__PURE__ */ w(E, { direction: "column", gap: "24px", children: [
5162
- /* @__PURE__ */ s(E, { direction: "column", gap: "24px", children: /* @__PURE__ */ w(E, { alignItems: "center", justifyContent: "space-between", children: [
5163
- /* @__PURE__ */ s(A, { type: "title", size: "large", appearance: "dark", weight: "bold", children: n }),
5169
+ /* @__PURE__ */ s(gr, { children: /* @__PURE__ */ s(no, { children: /* @__PURE__ */ s(br, { children: /* @__PURE__ */ w(T, { direction: "column", gap: "24px", children: [
5170
+ /* @__PURE__ */ s(T, { direction: "column", gap: "24px", children: /* @__PURE__ */ w(T, { alignItems: "center", justifyContent: "space-between", children: [
5171
+ /* @__PURE__ */ s(D, { type: "title", size: "large", appearance: "dark", weight: "bold", children: n }),
5164
5172
  /* @__PURE__ */ s(Ut, { size: "24px", cursor: "pointer", onClick: o })
5165
5173
  ] }) }),
5166
5174
  t
@@ -5262,8 +5270,8 @@ function wr({
5262
5270
  handleDelete: o,
5263
5271
  textValues: n
5264
5272
  }) {
5265
- return e ? /* @__PURE__ */ s(Lt, { children: /* @__PURE__ */ w(E, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
5266
- /* @__PURE__ */ s(A, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: e.decisionId }),
5273
+ return e ? /* @__PURE__ */ s(Lt, { children: /* @__PURE__ */ w(T, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
5274
+ /* @__PURE__ */ s(D, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: e.decisionId }),
5267
5275
  /* @__PURE__ */ s(
5268
5276
  Ke,
5269
5277
  {
@@ -5281,8 +5289,8 @@ function Nr({
5281
5289
  handleOpenModal: t,
5282
5290
  customTitleContentAddCard: l
5283
5291
  }) {
5284
- return /* @__PURE__ */ s(Lt, { children: /* @__PURE__ */ w(E, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
5285
- /* @__PURE__ */ s(A, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
5292
+ return /* @__PURE__ */ s(Lt, { children: /* @__PURE__ */ w(T, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
5293
+ /* @__PURE__ */ s(D, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
5286
5294
  /* @__PURE__ */ s(
5287
5295
  yr,
5288
5296
  {
@@ -5295,9 +5303,9 @@ function Nr({
5295
5303
  },
5296
5304
  handleView: () => t ? t() : null,
5297
5305
  controls: !1,
5298
- children: /* @__PURE__ */ w(E, { direction: "column", gap: "12px", alignItems: "center", children: [
5306
+ children: /* @__PURE__ */ w(T, { direction: "column", gap: "12px", alignItems: "center", children: [
5299
5307
  /* @__PURE__ */ s(q, { appearance: "gray", icon: /* @__PURE__ */ s(Mt, {}), size: "35px" }),
5300
- /* @__PURE__ */ s(A, { appearance: "gray", type: "body", size: "large", children: l || "Agregar decisión" })
5308
+ /* @__PURE__ */ s(D, { appearance: "gray", type: "body", size: "large", children: l || "Agregar decisión" })
5301
5309
  ] })
5302
5310
  }
5303
5311
  )
@@ -5363,7 +5371,7 @@ const Br = (e) => {
5363
5371
  handleCloseModal: p,
5364
5372
  handleSubmitForm: g,
5365
5373
  handleDelete: m
5366
- } = e, b = je("(max-width: 681px)"), f = je("(max-width: 400px)"), { renderedCards: x, shouldRenderAddCard: y } = Er({
5374
+ } = e, b = Te("(max-width: 681px)"), f = Te("(max-width: 400px)"), { renderedCards: x, shouldRenderAddCard: y } = Er({
5367
5375
  controls: t,
5368
5376
  customTitleContentAddCard: l,
5369
5377
  decisions: n,
@@ -5373,13 +5381,12 @@ const Br = (e) => {
5373
5381
  textValues: a
5374
5382
  });
5375
5383
  return /* @__PURE__ */ w(he, { children: [
5376
- /* @__PURE__ */ s($r, { children: /* @__PURE__ */ s(xr, { children: /* @__PURE__ */ w(E, { direction: "column", gap: "16px", padding: "6px", children: [
5377
- n.length === 0 && !u && /* @__PURE__ */ w(A, { as: "span", type: "label", size: "large", appearance: "gray", children: [
5384
+ /* @__PURE__ */ s($r, { children: /* @__PURE__ */ s(xr, { children: /* @__PURE__ */ w(T, { direction: "column", gap: "16px", padding: "6px", children: [
5385
+ n.length === 0 && !u && /* @__PURE__ */ w(D, { as: "span", type: "label", size: "large", appearance: "gray", children: [
5378
5386
  o || "Aún NO tienes definidas tasas de interés efectivas",
5379
5387
  ". Presiona",
5380
- " ",
5381
5388
  /* @__PURE__ */ w(
5382
- A,
5389
+ D,
5383
5390
  {
5384
5391
  as: "span",
5385
5392
  type: "label",
@@ -5393,7 +5400,6 @@ const Br = (e) => {
5393
5400
  ]
5394
5401
  }
5395
5402
  ),
5396
- " ",
5397
5403
  "para empezar."
5398
5404
  ] }),
5399
5405
  /* @__PURE__ */ w(