@isettingkit/business-rules 0.1.36 → 0.1.37

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 +234 -234
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,16 +1,16 @@
1
- import { jsxs as k, jsx as s, Fragment as he } from "react/jsx-runtime";
2
- import { ValueDataType as ne, ValueHowToSetUp as B, DecisionConditionRender as Je } from "@isettingkit/input";
3
- import v, { keyframes as de, css as He, ThemeContext as Z } from "styled-components";
4
- import * as y from "react";
5
- import oe, { createContext as Vt, forwardRef as pt, useContext as ee, useState as J, useEffect as ht } from "react";
1
+ import { jsxs as w, jsx as s, Fragment as he } from "react/jsx-runtime";
2
+ import { ValueDataType as ne, ValueHowToSetUp as B, DecisionConditionRender as Qe } from "@isettingkit/input";
3
+ import v, { keyframes as de, css as _e, ThemeContext as Z } from "styled-components";
4
+ import * as k from "react";
5
+ import oe, { createContext as Vt, forwardRef as ht, useContext as ee, useState as J, useEffect as vt } from "react";
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 vt, object as ye, number as Pe, string as _e, lazy as Qe, date as Ze } from "yup";
9
+ import { mixed as gt, object as ye, number as Pe, 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
  /**
13
- * @remix-run/router v1.22.0
13
+ * @remix-run/router v1.23.0
14
14
  *
15
15
  * Copyright (c) Remix Software Inc.
16
16
  *
@@ -29,10 +29,10 @@ function Be() {
29
29
  return e;
30
30
  }, Be.apply(this, arguments);
31
31
  }
32
- var et;
32
+ var tt;
33
33
  (function(e) {
34
34
  e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
35
- })(et || (et = {}));
35
+ })(tt || (tt = {}));
36
36
  function z(e, t) {
37
37
  if (e === !1 || e === null || typeof e > "u")
38
38
  throw new Error(t);
@@ -54,7 +54,7 @@ function Ie(e) {
54
54
  } = e;
55
55
  return l && l !== "?" && (t += l.charAt(0) === "?" ? l : "?" + l), o && o !== "#" && (t += o.charAt(0) === "#" ? o : "#" + o), t;
56
56
  }
57
- function gt(e) {
57
+ function bt(e) {
58
58
  let t = {};
59
59
  if (e) {
60
60
  let l = e.indexOf("#");
@@ -64,11 +64,11 @@ function gt(e) {
64
64
  }
65
65
  return t;
66
66
  }
67
- var tt;
67
+ var lt;
68
68
  (function(e) {
69
69
  e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
70
- })(tt || (tt = {}));
71
- function lt(e, t) {
70
+ })(lt || (lt = {}));
71
+ function ot(e, t) {
72
72
  typeof e == "string" && (e = {
73
73
  path: e,
74
74
  caseSensitive: !1,
@@ -118,7 +118,7 @@ function Gt(e, t) {
118
118
  pathname: l,
119
119
  search: o = "",
120
120
  hash: n = ""
121
- } = typeof e == "string" ? gt(e) : e;
121
+ } = typeof e == "string" ? bt(e) : e;
122
122
  return {
123
123
  pathname: l ? l.startsWith("/") ? l : Yt(l, t) : t,
124
124
  search: Xt(o),
@@ -137,14 +137,14 @@ function Re(e, t, l, o) {
137
137
  function Wt(e) {
138
138
  return e.filter((t, l) => l === 0 || t.route.path && t.route.path.length > 0);
139
139
  }
140
- function bt(e, t) {
140
+ function mt(e, t) {
141
141
  let l = Wt(e);
142
142
  return t ? l.map((o, n) => n === l.length - 1 ? o.pathname : o.pathnameBase) : l.map((o) => o.pathnameBase);
143
143
  }
144
- function mt(e, t, l, o) {
144
+ function ft(e, t, l, o) {
145
145
  o === void 0 && (o = !1);
146
146
  let n;
147
- typeof e == "string" ? n = gt(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 = 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)));
148
148
  let a = e === "" || n.pathname === "", i = a ? "/" : n.pathname, d;
149
149
  if (i == null)
150
150
  d = l;
@@ -161,12 +161,12 @@ function mt(e, t, l, o) {
161
161
  let c = Gt(n, d), u = i && i !== "/" && i.endsWith("/"), h = (a || i === ".") && l.endsWith("/");
162
162
  return !c.pathname.endsWith("/") && (u || h) && (c.pathname += "/"), c;
163
163
  }
164
- const Ue = (e) => e.join("/").replace(/\/\/+/g, "/"), Xt = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Kt = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ft = ["post", "put", "patch", "delete"];
165
- new Set(ft);
166
- const Jt = ["get", ...ft];
164
+ const Me = (e) => e.join("/").replace(/\/\/+/g, "/"), Xt = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Kt = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, xt = ["post", "put", "patch", "delete"];
165
+ new Set(xt);
166
+ const Jt = ["get", ...xt];
167
167
  new Set(Jt);
168
168
  /**
169
- * React Router v6.29.0
169
+ * React Router v6.30.0
170
170
  *
171
171
  * Copyright (c) Remix Software Inc.
172
172
  *
@@ -185,29 +185,29 @@ function Ve() {
185
185
  return e;
186
186
  }, Ve.apply(this, arguments);
187
187
  }
188
- const Se = /* @__PURE__ */ y.createContext(null);
188
+ const Se = /* @__PURE__ */ k.createContext(null);
189
189
  process.env.NODE_ENV !== "production" && (Se.displayName = "DataRouter");
190
- const xt = /* @__PURE__ */ y.createContext(null);
191
- process.env.NODE_ENV !== "production" && (xt.displayName = "DataRouterState");
192
- const Qt = /* @__PURE__ */ y.createContext(null);
190
+ const $t = /* @__PURE__ */ k.createContext(null);
191
+ process.env.NODE_ENV !== "production" && ($t.displayName = "DataRouterState");
192
+ const Qt = /* @__PURE__ */ k.createContext(null);
193
193
  process.env.NODE_ENV !== "production" && (Qt.displayName = "Await");
194
- const G = /* @__PURE__ */ y.createContext(null);
194
+ const G = /* @__PURE__ */ k.createContext(null);
195
195
  process.env.NODE_ENV !== "production" && (G.displayName = "Navigation");
196
- const Me = /* @__PURE__ */ y.createContext(null);
197
- process.env.NODE_ENV !== "production" && (Me.displayName = "Location");
198
- const ue = /* @__PURE__ */ y.createContext({
196
+ const qe = /* @__PURE__ */ k.createContext(null);
197
+ process.env.NODE_ENV !== "production" && (qe.displayName = "Location");
198
+ const ue = /* @__PURE__ */ k.createContext({
199
199
  outlet: null,
200
200
  matches: [],
201
201
  isDataRoute: !1
202
202
  });
203
203
  process.env.NODE_ENV !== "production" && (ue.displayName = "Route");
204
- const Zt = /* @__PURE__ */ y.createContext(null);
204
+ const Zt = /* @__PURE__ */ k.createContext(null);
205
205
  process.env.NODE_ENV !== "production" && (Zt.displayName = "RouteError");
206
206
  function el(e, t) {
207
207
  let {
208
208
  relative: l
209
209
  } = t === void 0 ? {} : t;
210
- qe() || (process.env.NODE_ENV !== "production" ? z(
210
+ Ge() || (process.env.NODE_ENV !== "production" ? z(
211
211
  !1,
212
212
  // TODO: This error is probably because they somehow have 2 versions of the
213
213
  // router loaded. We can help them understand how to avoid that.
@@ -216,66 +216,66 @@ function el(e, t) {
216
216
  let {
217
217
  basename: o,
218
218
  navigator: n
219
- } = y.useContext(G), {
219
+ } = k.useContext(G), {
220
220
  hash: a,
221
221
  pathname: i,
222
222
  search: d
223
223
  } = be(e, {
224
224
  relative: l
225
225
  }), c = i;
226
- return o !== "/" && (c = i === "/" ? o : Ue([o, i])), n.createHref({
226
+ return o !== "/" && (c = i === "/" ? o : Me([o, i])), n.createHref({
227
227
  pathname: c,
228
228
  search: d,
229
229
  hash: a
230
230
  });
231
231
  }
232
- function qe() {
233
- return y.useContext(Me) != null;
232
+ function Ge() {
233
+ return k.useContext(qe) != null;
234
234
  }
235
235
  function ge() {
236
- return qe() || (process.env.NODE_ENV !== "production" ? z(
236
+ return Ge() || (process.env.NODE_ENV !== "production" ? z(
237
237
  !1,
238
238
  // TODO: This error is probably because they somehow have 2 versions of the
239
239
  // router loaded. We can help them understand how to avoid that.
240
240
  "useLocation() may be used only in the context of a <Router> component."
241
- ) : z(!1)), y.useContext(Me).location;
241
+ ) : z(!1)), k.useContext(qe).location;
242
242
  }
243
- const $t = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
244
- function yt(e) {
245
- y.useContext(G).static || y.useLayoutEffect(e);
243
+ const yt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
244
+ function kt(e) {
245
+ k.useContext(G).static || k.useLayoutEffect(e);
246
246
  }
247
247
  function tl() {
248
248
  let {
249
249
  isDataRoute: e
250
- } = y.useContext(ue);
250
+ } = k.useContext(ue);
251
251
  return e ? al() : ll();
252
252
  }
253
253
  function ll() {
254
- qe() || (process.env.NODE_ENV !== "production" ? z(
254
+ Ge() || (process.env.NODE_ENV !== "production" ? z(
255
255
  !1,
256
256
  // TODO: This error is probably because they somehow have 2 versions of the
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 = y.useContext(Se), {
260
+ let e = k.useContext(Se), {
261
261
  basename: t,
262
262
  future: l,
263
263
  navigator: o
264
- } = y.useContext(G), {
264
+ } = k.useContext(G), {
265
265
  matches: n
266
- } = y.useContext(ue), {
266
+ } = k.useContext(ue), {
267
267
  pathname: a
268
- } = ge(), i = JSON.stringify(bt(n, l.v7_relativeSplatPath)), d = y.useRef(!1);
269
- return yt(() => {
268
+ } = ge(), i = JSON.stringify(mt(n, l.v7_relativeSplatPath)), d = k.useRef(!1);
269
+ return kt(() => {
270
270
  d.current = !0;
271
- }), y.useCallback(function(u, h) {
272
- if (h === void 0 && (h = {}), process.env.NODE_ENV !== "production" && ve(d.current, $t), !d.current) return;
271
+ }), k.useCallback(function(u, h) {
272
+ if (h === void 0 && (h = {}), process.env.NODE_ENV !== "production" && ve(d.current, yt), !d.current) return;
273
273
  if (typeof u == "number") {
274
274
  o.go(u);
275
275
  return;
276
276
  }
277
- let p = mt(u, JSON.parse(i), a, h.relative === "path");
278
- e == null && t !== "/" && (p.pathname = p.pathname === "/" ? t : Ue([t, p.pathname])), (h.replace ? o.replace : o.push)(p, h.state, h);
277
+ let p = ft(u, JSON.parse(i), a, h.relative === "path");
278
+ e == null && t !== "/" && (p.pathname = p.pathname === "/" ? t : Me([t, p.pathname])), (h.replace ? o.replace : o.push)(p, h.state, h);
279
279
  }, [t, o, i, a, e]);
280
280
  }
281
281
  function be(e, t) {
@@ -283,44 +283,44 @@ function be(e, t) {
283
283
  relative: l
284
284
  } = t === void 0 ? {} : t, {
285
285
  future: o
286
- } = y.useContext(G), {
286
+ } = k.useContext(G), {
287
287
  matches: n
288
- } = y.useContext(ue), {
288
+ } = k.useContext(ue), {
289
289
  pathname: a
290
- } = ge(), i = JSON.stringify(bt(n, o.v7_relativeSplatPath));
291
- return y.useMemo(() => mt(e, JSON.parse(i), a, l === "path"), [e, i, a, l]);
290
+ } = ge(), i = JSON.stringify(mt(n, o.v7_relativeSplatPath));
291
+ return k.useMemo(() => ft(e, JSON.parse(i), a, l === "path"), [e, i, a, l]);
292
292
  }
293
- var kt = /* @__PURE__ */ function(e) {
293
+ var wt = /* @__PURE__ */ function(e) {
294
294
  return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
295
- }(kt || {}), Ge = /* @__PURE__ */ function(e) {
295
+ }(wt || {}), Ye = /* @__PURE__ */ function(e) {
296
296
  return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
297
- }(Ge || {});
298
- function wt(e) {
297
+ }(Ye || {});
298
+ 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 = y.useContext(Se);
303
- return t || (process.env.NODE_ENV !== "production" ? z(!1, wt(e)) : z(!1)), t;
302
+ let t = k.useContext(Se);
303
+ return t || (process.env.NODE_ENV !== "production" ? z(!1, Nt(e)) : z(!1)), t;
304
304
  }
305
305
  function rl(e) {
306
- let t = y.useContext(ue);
307
- return t || (process.env.NODE_ENV !== "production" ? z(!1, wt(e)) : z(!1)), t;
306
+ let t = k.useContext(ue);
307
+ return t || (process.env.NODE_ENV !== "production" ? z(!1, Nt(e)) : z(!1)), t;
308
308
  }
309
- function Nt(e) {
309
+ function Ct(e) {
310
310
  let t = rl(e), l = t.matches[t.matches.length - 1];
311
311
  return l.route.id || (process.env.NODE_ENV !== "production" ? z(!1, e + ' can only be used on routes that contain a unique "id"') : z(!1)), l.route.id;
312
312
  }
313
313
  function nl() {
314
- return Nt(Ge.UseRouteId);
314
+ return Ct(Ye.UseRouteId);
315
315
  }
316
316
  function al() {
317
317
  let {
318
318
  router: e
319
- } = ol(kt.UseNavigateStable), t = Nt(Ge.UseNavigateStable), l = y.useRef(!1);
320
- return yt(() => {
319
+ } = ol(wt.UseNavigateStable), t = Ct(Ye.UseNavigateStable), l = k.useRef(!1);
320
+ return kt(() => {
321
321
  l.current = !0;
322
- }), y.useCallback(function(n, a) {
323
- a === void 0 && (a = {}), process.env.NODE_ENV !== "production" && ve(l.current, $t), l.current && (typeof n == "number" ? e.navigate(n) : e.navigate(n, Ve({
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({
324
324
  fromRouteId: t
325
325
  }, a)));
326
326
  }, [e, t]);
@@ -328,7 +328,7 @@ function al() {
328
328
  new Promise(() => {
329
329
  });
330
330
  /**
331
- * React Router DOM v6.29.0
331
+ * React Router DOM v6.30.0
332
332
  *
333
333
  * Copyright (c) Remix Software Inc.
334
334
  *
@@ -347,7 +347,7 @@ function ie() {
347
347
  return e;
348
348
  }, ie.apply(this, arguments);
349
349
  }
350
- function Ye(e, t) {
350
+ function We(e, t) {
351
351
  if (e == null) return {};
352
352
  var l = {}, o = Object.keys(e), n, a;
353
353
  for (a = 0; a < o.length; a++)
@@ -432,14 +432,14 @@ try {
432
432
  window.__reactRouterVersion = fl;
433
433
  } catch {
434
434
  }
435
- const Ct = /* @__PURE__ */ y.createContext({
435
+ const Et = /* @__PURE__ */ k.createContext({
436
436
  isTransitioning: !1
437
437
  });
438
- process.env.NODE_ENV !== "production" && (Ct.displayName = "ViewTransition");
439
- const xl = /* @__PURE__ */ y.createContext(/* @__PURE__ */ new Map());
438
+ process.env.NODE_ENV !== "production" && (Et.displayName = "ViewTransition");
439
+ const xl = /* @__PURE__ */ k.createContext(/* @__PURE__ */ new Map());
440
440
  process.env.NODE_ENV !== "production" && (xl.displayName = "Fetchers");
441
441
  process.env.NODE_ENV;
442
- const $l = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", yl = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Y = /* @__PURE__ */ y.forwardRef(function(t, l) {
442
+ const $l = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", yl = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Y = /* @__PURE__ */ k.forwardRef(function(t, l) {
443
443
  let {
444
444
  onClick: o,
445
445
  relative: n,
@@ -450,9 +450,9 @@ const $l = typeof window < "u" && typeof window.document < "u" && typeof window.
450
450
  to: u,
451
451
  preventScrollReset: h,
452
452
  viewTransition: p
453
- } = t, g = Ye(t, gl), {
453
+ } = t, g = We(t, gl), {
454
454
  basename: m
455
- } = y.useContext(G), b, f = !1;
455
+ } = k.useContext(G), b, f = !1;
456
456
  if (typeof u == "string" && yl.test(u) && (b = u, $l))
457
457
  try {
458
458
  let C = new URL(window.location.href), T = u.startsWith("//") ? new URL(C.protocol + u) : new URL(u), D = ae(T.pathname, m);
@@ -462,7 +462,7 @@ const $l = typeof window < "u" && typeof window.document < "u" && typeof window.
462
462
  }
463
463
  let x = el(u, {
464
464
  relative: n
465
- }), w = Cl(u, {
465
+ }), y = Cl(u, {
466
466
  replace: i,
467
467
  state: d,
468
468
  target: c,
@@ -471,11 +471,11 @@ const $l = typeof window < "u" && typeof window.document < "u" && typeof window.
471
471
  viewTransition: p
472
472
  });
473
473
  function $(C) {
474
- o && o(C), C.defaultPrevented || w(C);
474
+ o && o(C), C.defaultPrevented || y(C);
475
475
  }
476
476
  return (
477
477
  // eslint-disable-next-line jsx-a11y/anchor-has-content
478
- /* @__PURE__ */ y.createElement("a", ie({}, g, {
478
+ /* @__PURE__ */ k.createElement("a", ie({}, g, {
479
479
  href: b || x,
480
480
  onClick: f || a ? o : $,
481
481
  ref: l,
@@ -484,7 +484,7 @@ const $l = typeof window < "u" && typeof window.document < "u" && typeof window.
484
484
  );
485
485
  });
486
486
  process.env.NODE_ENV !== "production" && (Y.displayName = "Link");
487
- const kl = /* @__PURE__ */ y.forwardRef(function(t, l) {
487
+ const kl = /* @__PURE__ */ k.forwardRef(function(t, l) {
488
488
  let {
489
489
  "aria-current": o = "page",
490
490
  caseSensitive: n = !1,
@@ -494,12 +494,12 @@ const kl = /* @__PURE__ */ y.forwardRef(function(t, l) {
494
494
  to: c,
495
495
  viewTransition: u,
496
496
  children: h
497
- } = t, p = Ye(t, bl), g = be(c, {
497
+ } = t, p = We(t, bl), g = be(c, {
498
498
  relative: p.relative
499
- }), m = ge(), b = y.useContext(xt), {
499
+ }), m = ge(), b = k.useContext($t), {
500
500
  navigator: f,
501
501
  basename: x
502
- } = y.useContext(G), w = b != null && // Conditional usage is OK here because the usage of a data router is static
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
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
505
  n || (C = C.toLowerCase(), T = T ? T.toLowerCase() : null, $ = $.toLowerCase()), T && x && (T = ae(T, x) || T);
@@ -507,11 +507,11 @@ const kl = /* @__PURE__ */ y.forwardRef(function(t, l) {
507
507
  let R = C === $ || !i && C.startsWith($) && C.charAt(D) === "/", S = T != null && (T === $ || !i && T.startsWith($) && T.charAt($.length) === "/"), P = {
508
508
  isActive: R,
509
509
  isPending: S,
510
- isTransitioning: w
510
+ isTransitioning: y
511
511
  }, I = R ? o : void 0, V;
512
- typeof a == "function" ? V = a(P) : V = [a, R ? "active" : null, S ? "pending" : null, w ? "transitioning" : null].filter(Boolean).join(" ");
512
+ typeof a == "function" ? V = a(P) : V = [a, R ? "active" : null, S ? "pending" : null, y ? "transitioning" : null].filter(Boolean).join(" ");
513
513
  let j = typeof d == "function" ? d(P) : d;
514
- return /* @__PURE__ */ y.createElement(Y, ie({}, p, {
514
+ return /* @__PURE__ */ k.createElement(Y, ie({}, p, {
515
515
  "aria-current": I,
516
516
  className: V,
517
517
  ref: l,
@@ -521,7 +521,7 @@ const kl = /* @__PURE__ */ y.forwardRef(function(t, l) {
521
521
  }), typeof h == "function" ? h(P) : h);
522
522
  });
523
523
  process.env.NODE_ENV !== "production" && (kl.displayName = "NavLink");
524
- const wl = /* @__PURE__ */ y.forwardRef((e, t) => {
524
+ const wl = /* @__PURE__ */ k.forwardRef((e, t) => {
525
525
  let {
526
526
  fetcherKey: l,
527
527
  navigate: o,
@@ -534,9 +534,9 @@ const wl = /* @__PURE__ */ y.forwardRef((e, t) => {
534
534
  relative: h,
535
535
  preventScrollReset: p,
536
536
  viewTransition: g
537
- } = e, m = Ye(e, ml), b = zl(), f = Al(c, {
537
+ } = e, m = We(e, ml), b = zl(), f = Al(c, {
538
538
  relative: h
539
- }), x = d.toLowerCase() === "get" ? "get" : "post", w = ($) => {
539
+ }), x = d.toLowerCase() === "get" ? "get" : "post", y = ($) => {
540
540
  if (u && u($), $.defaultPrevented) return;
541
541
  $.preventDefault();
542
542
  let C = $.nativeEvent.submitter, T = (C == null ? void 0 : C.getAttribute("formmethod")) || d;
@@ -551,11 +551,11 @@ const wl = /* @__PURE__ */ y.forwardRef((e, t) => {
551
551
  viewTransition: g
552
552
  });
553
553
  };
554
- return /* @__PURE__ */ y.createElement("form", ie({
554
+ return /* @__PURE__ */ k.createElement("form", ie({
555
555
  ref: t,
556
556
  method: x,
557
557
  action: f,
558
- onSubmit: n ? u : w
558
+ onSubmit: n ? u : y
559
559
  }, m));
560
560
  });
561
561
  process.env.NODE_ENV !== "production" && (wl.displayName = "Form");
@@ -564,15 +564,15 @@ var Ne;
564
564
  (function(e) {
565
565
  e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
566
566
  })(Ne || (Ne = {}));
567
- var ot;
567
+ var rt;
568
568
  (function(e) {
569
569
  e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
570
- })(ot || (ot = {}));
570
+ })(rt || (rt = {}));
571
571
  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
- function Et(e) {
575
- let t = y.useContext(Se);
574
+ function Tt(e) {
575
+ let t = k.useContext(Se);
576
576
  return t || (process.env.NODE_ENV !== "production" ? z(!1, Nl(e)) : z(!1)), t;
577
577
  }
578
578
  function Cl(e, t) {
@@ -586,7 +586,7 @@ function Cl(e, t) {
586
586
  } = t === void 0 ? {} : t, c = tl(), u = ge(), h = be(e, {
587
587
  relative: i
588
588
  });
589
- return y.useCallback((p) => {
589
+ return k.useCallback((p) => {
590
590
  if (sl(p, l)) {
591
591
  p.preventDefault();
592
592
  let g = o !== void 0 ? o : Ie(u) === Ie(h);
@@ -608,10 +608,10 @@ let Tl = 0, Sl = () => "__" + String(++Tl) + "__";
608
608
  function zl() {
609
609
  let {
610
610
  router: e
611
- } = Et(Ne.UseSubmit), {
611
+ } = Tt(Ne.UseSubmit), {
612
612
  basename: t
613
- } = y.useContext(G), l = nl();
614
- return y.useCallback(function(o, n) {
613
+ } = k.useContext(G), l = nl();
614
+ return k.useCallback(function(o, n) {
615
615
  n === void 0 && (n = {}), El();
616
616
  let {
617
617
  action: a,
@@ -650,7 +650,7 @@ function Al(e, t) {
650
650
  relative: l
651
651
  } = t === void 0 ? {} : t, {
652
652
  basename: o
653
- } = y.useContext(G), n = y.useContext(ue);
653
+ } = k.useContext(G), n = k.useContext(ue);
654
654
  n || (process.env.NODE_ENV !== "production" ? z(!1, "useFormAction must be used inside a RouteContext") : z(!1));
655
655
  let [a] = n.matches.slice(-1), i = ie({}, be(e || ".", {
656
656
  relative: l
@@ -664,21 +664,21 @@ 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 : Ue([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])), Ie(i);
668
668
  }
669
669
  function Dl(e, t) {
670
670
  t === void 0 && (t = {});
671
- let l = y.useContext(Ct);
671
+ let l = k.useContext(Et);
672
672
  l == null && (process.env.NODE_ENV !== "production" ? z(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : z(!1));
673
673
  let {
674
674
  basename: o
675
- } = Et(Ne.useViewTransitionState), n = be(e, {
675
+ } = Tt(Ne.useViewTransitionState), n = be(e, {
676
676
  relative: t.relative
677
677
  });
678
678
  if (!l.isTransitioning)
679
679
  return !1;
680
680
  let a = ae(l.currentLocation.pathname, o) || l.currentLocation.pathname, i = ae(l.nextLocation.pathname, o) || l.nextLocation.pathname;
681
- return lt(n.pathname, i) != null || lt(n.pathname, a) != null;
681
+ return ot(n.pathname, i) != null || ot(n.pathname, a) != null;
682
682
  }
683
683
  const Rl = {
684
684
  neutral: {
@@ -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, w, $, 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 = ($ = (w = e == null ? void 0 : e.icon) == null ? void 0 : w[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, 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;
1035
1035
  }};
1036
1036
 
1037
1037
  background-color: ${({
@@ -1253,8 +1253,8 @@ const Rl = {
1253
1253
  if (!p)
1254
1254
  try {
1255
1255
  g && g(x);
1256
- } catch (w) {
1257
- console.error(`Error when clicking over select. ${w}`);
1256
+ } catch (y) {
1257
+ console.error(`Error when clicking over select. ${y}`);
1258
1258
  }
1259
1259
  }
1260
1260
  return /* @__PURE__ */ s(
@@ -1277,13 +1277,13 @@ const Rl = {
1277
1277
  }
1278
1278
  );
1279
1279
  };
1280
- var Tt = {
1280
+ var St = {
1281
1281
  color: void 0,
1282
1282
  size: void 0,
1283
1283
  className: void 0,
1284
1284
  style: void 0,
1285
1285
  attr: void 0
1286
- }, rt = oe.createContext && /* @__PURE__ */ oe.createContext(Tt), Pl = ["attr", "size", "title"];
1286
+ }, nt = oe.createContext && /* @__PURE__ */ oe.createContext(St), Pl = ["attr", "size", "title"];
1287
1287
  function Bl(e, t) {
1288
1288
  if (e == null) return {};
1289
1289
  var l = Il(e, t), o, n;
@@ -1314,7 +1314,7 @@ function Ce() {
1314
1314
  return e;
1315
1315
  }, Ce.apply(this, arguments);
1316
1316
  }
1317
- function nt(e, t) {
1317
+ function at(e, t) {
1318
1318
  var l = Object.keys(e);
1319
1319
  if (Object.getOwnPropertySymbols) {
1320
1320
  var o = Object.getOwnPropertySymbols(e);
@@ -1327,9 +1327,9 @@ function nt(e, t) {
1327
1327
  function Ee(e) {
1328
1328
  for (var t = 1; t < arguments.length; t++) {
1329
1329
  var l = arguments[t] != null ? arguments[t] : {};
1330
- t % 2 ? nt(Object(l), !0).forEach(function(o) {
1330
+ t % 2 ? at(Object(l), !0).forEach(function(o) {
1331
1331
  Vl(e, o, l[o]);
1332
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(l)) : nt(Object(l)).forEach(function(o) {
1332
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(l)) : at(Object(l)).forEach(function(o) {
1333
1333
  Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(l, o));
1334
1334
  });
1335
1335
  }
@@ -1352,15 +1352,15 @@ function Hl(e, t) {
1352
1352
  }
1353
1353
  return (t === "string" ? String : Number)(e);
1354
1354
  }
1355
- function St(e) {
1355
+ function zt(e) {
1356
1356
  return e && e.map((t, l) => /* @__PURE__ */ oe.createElement(t.tag, Ee({
1357
1357
  key: l
1358
- }, t.attr), St(t.child)));
1358
+ }, t.attr), zt(t.child)));
1359
1359
  }
1360
1360
  function W(e) {
1361
1361
  return (t) => /* @__PURE__ */ oe.createElement(_l, Ce({
1362
1362
  attr: Ee({}, e.attr)
1363
- }, t), St(e.child));
1363
+ }, t), zt(e.child));
1364
1364
  }
1365
1365
  function _l(e) {
1366
1366
  var t = (l) => {
@@ -1383,7 +1383,7 @@ function _l(e) {
1383
1383
  xmlns: "http://www.w3.org/2000/svg"
1384
1384
  }), a && /* @__PURE__ */ oe.createElement("title", null, a), e.children);
1385
1385
  };
1386
- return rt !== void 0 ? /* @__PURE__ */ oe.createElement(rt.Consumer, null, (l) => t(l)) : t(Tt);
1386
+ return nt !== void 0 ? /* @__PURE__ */ oe.createElement(nt.Consumer, null, (l) => t(l)) : t(St);
1387
1387
  }
1388
1388
  function Ul(e) {
1389
1389
  return W({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z" }, child: [] }] })(e);
@@ -1478,7 +1478,7 @@ const Zl = v.div`
1478
1478
  padding: ${({ $padding: e }) => e};
1479
1479
  height: ${({ $height: e }) => e};
1480
1480
  width: ${({ $width: e }) => e};
1481
- `, zt = (e) => {
1481
+ `, At = (e) => {
1482
1482
  const {
1483
1483
  templateColumns: t = "auto",
1484
1484
  templateRows: l = "auto",
@@ -1516,9 +1516,9 @@ const Zl = v.div`
1516
1516
  children: f
1517
1517
  }
1518
1518
  );
1519
- }, At = (e) => {
1519
+ }, je = (e) => {
1520
1520
  const [t, l] = J(!1), o = (n) => l(n.matches);
1521
- return ht(() => {
1521
+ return vt(() => {
1522
1522
  const n = window.matchMedia(e);
1523
1523
  return o(n), n.addEventListener(
1524
1524
  "change",
@@ -1776,7 +1776,7 @@ const oo = {
1776
1776
  z-index: 1;
1777
1777
  overflow-y: auto;
1778
1778
  `, no = (e) => {
1779
- const { children: t } = e, l = At("(max-width: 580px)");
1779
+ const { children: t } = e, l = je("(max-width: 580px)");
1780
1780
  return /* @__PURE__ */ s(ro, { $isSmallScreen: !l, children: /* @__PURE__ */ s(E, { alignItems: "center", justifyContent: "center", children: t }) });
1781
1781
  }, xe = {
1782
1782
  primary: {
@@ -2189,7 +2189,7 @@ const oo = {
2189
2189
  }
2190
2190
  `, po = v(Y)`
2191
2191
  text-decoration: none;
2192
- `, ho = (e, t, l, o) => e === "filled" ? !1 : t && !o ? l : o, at = (e) => {
2192
+ `, ho = (e, t, l, o) => e === "filled" ? !1 : t && !o ? l : o, it = (e) => {
2193
2193
  const {
2194
2194
  children: t,
2195
2195
  appearance: l = "primary",
@@ -2207,7 +2207,7 @@ const oo = {
2207
2207
  } = e, b = ee(Z), f = (R) => {
2208
2208
  var S, P, I;
2209
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, w] = J(!1), $ = () => w(!0), C = () => w(!1), T = (R) => {
2210
+ }, [x, y] = J(!1), $ = () => y(!0), C = () => y(!1), T = (R) => {
2211
2211
  try {
2212
2212
  p && p(R);
2213
2213
  } catch (S) {
@@ -2243,7 +2243,7 @@ const oo = {
2243
2243
  transparent: u === "filled",
2244
2244
  size: "small"
2245
2245
  }
2246
- ) : /* @__PURE__ */ k(E, { alignItems: "center", justifyContent: "center", gap: "8px", children: [
2246
+ ) : /* @__PURE__ */ w(E, { alignItems: "center", justifyContent: "center", gap: "8px", children: [
2247
2247
  a && /* @__PURE__ */ s(
2248
2248
  q,
2249
2249
  {
@@ -2281,9 +2281,9 @@ const oo = {
2281
2281
  ] })
2282
2282
  }
2283
2283
  );
2284
- }, it = (e) => {
2284
+ }, dt = (e) => {
2285
2285
  const { type: t = "button", path: l } = e;
2286
- return t === "link" && !l && console.warn("You must provide a path to use a link button"), t === "link" ? /* @__PURE__ */ s(po, { to: l, children: /* @__PURE__ */ s(at, { ...e }) }) : /* @__PURE__ */ s(at, { ...e });
2286
+ return t === "link" && !l && console.warn("You must provide a path to use a link button"), t === "link" ? /* @__PURE__ */ s(po, { to: l, children: /* @__PURE__ */ s(it, { ...e }) }) : /* @__PURE__ */ s(it, { ...e });
2287
2287
  }, N = {
2288
2288
  border: {
2289
2289
  color: {
@@ -2593,7 +2593,7 @@ v.div`
2593
2593
  return ((l = (t = e == null ? void 0 : e.skeleton) == null ? void 0 : t.background) == null ? void 0 : l.color) || K.background.color;
2594
2594
  }};
2595
2595
 
2596
- ${({ $animated: e }) => e && He`
2596
+ ${({ $animated: e }) => e && _e`
2597
2597
  &::after {
2598
2598
  content: "";
2599
2599
  position: absolute;
@@ -2630,7 +2630,7 @@ const mo = de`
2630
2630
  return ((l = (t = e == null ? void 0 : e.skeleton) == null ? void 0 : t.background) == null ? void 0 : l.color) || K.background.color;
2631
2631
  }};
2632
2632
 
2633
- ${({ $animated: e }) => e && He`
2633
+ ${({ $animated: e }) => e && _e`
2634
2634
  &::after {
2635
2635
  content: "";
2636
2636
  position: absolute;
@@ -3016,8 +3016,8 @@ const ko = v.div`
3016
3016
  border-width: 1px;
3017
3017
  border-style: solid;
3018
3018
  border-color: ${({ $checked: e, $disabled: t, theme: l }) => {
3019
- var o, n, a, i, d, c, u, h, p, g, m, b, f, x, w, $;
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 : (($ = (w = (x = (f = l == null ? void 0 : l.toggle) == null ? void 0 : f.off) == null ? void 0 : x.toggleBorder) == null ? void 0 : w.color) == null ? void 0 : $.regular) || F.off.toggleBorder.color.regular;
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;
3021
3021
  }};
3022
3022
  }
3023
3023
  `, wo = v.label`
@@ -3029,14 +3029,14 @@ const ko = v.div`
3029
3029
  cursor: ${({ $disabled: e }) => e ? "not-allowed" : "pointer"};
3030
3030
 
3031
3031
  background-color: ${({ theme: e, $disabled: t, $checked: l }) => {
3032
- var o, n, a, i, d, c, u, h, p, g, m, b, f, x, w, $;
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 : (($ = (w = (x = (f = e == null ? void 0 : e.toggle) == null ? void 0 : f.off) == null ? void 0 : x.background) == null ? void 0 : w.color) == null ? void 0 : $.regular) || F.off.background.color.regular;
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;
3034
3034
  }};
3035
3035
 
3036
3036
  &:hover {
3037
3037
  background-color: ${({ theme: e, $disabled: t, $checked: l }) => {
3038
- var o, n, a, i, d, c, u, h, p, g, m, b, f, x, w, $;
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 : (($ = (w = (x = (f = e == null ? void 0 : e.toggle) == null ? void 0 : f.off) == null ? void 0 : x.background) == null ? void 0 : w.color) == null ? void 0 : $.hover) || F.off.background.color.hover;
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;
3040
3040
  }};
3041
3041
  }
3042
3042
  `, No = v.input`
@@ -3066,9 +3066,9 @@ const ko = v.div`
3066
3066
  children: b,
3067
3067
  margin: f = "0px",
3068
3068
  padding: x = "0px"
3069
- } = e, w = ee(Z), $ = ((o = (l = (t = w == null ? void 0 : w.toggle) == null ? void 0 : t.on) == null ? void 0 : l.icon) == null ? void 0 : o.appereance) || F.on.icon.appereance, C = ((i = (a = (n = w == null ? void 0 : w.toggle) == null ? void 0 : n.off) == null ? void 0 : a.icon) == null ? void 0 : i.appereance) || F.off.icon.appereance;
3070
- return /* @__PURE__ */ k(
3071
- zt,
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;
3070
+ return /* @__PURE__ */ w(
3071
+ At,
3072
3072
  {
3073
3073
  templateColumns: "auto 1fr",
3074
3074
  alignItems: "center",
@@ -3076,7 +3076,7 @@ const ko = v.div`
3076
3076
  padding: x,
3077
3077
  gap: "8px",
3078
3078
  children: [
3079
- /* @__PURE__ */ k(wo, { $size: p, $checked: g, $disabled: d, children: [
3079
+ /* @__PURE__ */ w(wo, { $size: p, $checked: g, $disabled: d, children: [
3080
3080
  /* @__PURE__ */ s(
3081
3081
  No,
3082
3082
  {
@@ -3180,7 +3180,7 @@ v.div`
3180
3180
  v.p`
3181
3181
  text-wrap: nowrap;
3182
3182
  `;
3183
- const We = {
3183
+ const Xe = {
3184
3184
  background: {
3185
3185
  color: r.palette.neutral.N10
3186
3186
  },
@@ -3205,7 +3205,7 @@ v.nav`
3205
3205
  left: 0;
3206
3206
  background-color: ${({ theme: e }) => {
3207
3207
  var t, l;
3208
- return ((l = (t = e == null ? void 0 : e.fullscreenNav) == null ? void 0 : t.background) == null ? void 0 : l.color) || We.background.color;
3208
+ return ((l = (t = e == null ? void 0 : e.fullscreenNav) == null ? void 0 : t.background) == null ? void 0 : l.color) || Xe.background.color;
3209
3209
  }};
3210
3210
  padding: 0px 16px;
3211
3211
  z-index: 2;
@@ -3222,7 +3222,7 @@ v.div`
3222
3222
  height: 1px;
3223
3223
  background-color: ${({ theme: e }) => {
3224
3224
  var t, l;
3225
- return ((l = (t = e == null ? void 0 : e.fullscreenNav) == null ? void 0 : t.divider) == null ? void 0 : l.color) || We.divider.color;
3225
+ return ((l = (t = e == null ? void 0 : e.fullscreenNav) == null ? void 0 : t.divider) == null ? void 0 : l.color) || Xe.divider.color;
3226
3226
  }};
3227
3227
  `;
3228
3228
  v.footer`
@@ -3248,7 +3248,7 @@ v.summary`
3248
3248
  cursor: pointer;
3249
3249
  background-color: ${({ theme: e }) => {
3250
3250
  var t, l;
3251
- return ((l = (t = e == null ? void 0 : e.fullscreenNav) == null ? void 0 : t.background) == null ? void 0 : l.color) || We.background.color;
3251
+ return ((l = (t = e == null ? void 0 : e.fullscreenNav) == null ? void 0 : t.background) == null ? void 0 : l.color) || Xe.background.color;
3252
3252
  }};
3253
3253
  }
3254
3254
  `;
@@ -3490,11 +3490,11 @@ const O = {
3490
3490
  indeterminate: b = !1,
3491
3491
  label: f,
3492
3492
  disabled: x = !1,
3493
- required: w = !1,
3493
+ required: y = !1,
3494
3494
  onChange: $
3495
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__ */ k(E, { direction: "row", alignItems: "center", gap: "10px", width: "fit-content", children: [
3497
- /* @__PURE__ */ k(So, { children: [
3496
+ return /* @__PURE__ */ w(E, { direction: "row", alignItems: "center", gap: "10px", width: "fit-content", children: [
3497
+ /* @__PURE__ */ w(So, { children: [
3498
3498
  /* @__PURE__ */ s(
3499
3499
  Eo,
3500
3500
  {
@@ -3504,7 +3504,7 @@ const O = {
3504
3504
  value: g,
3505
3505
  checked: m || b,
3506
3506
  disabled: x,
3507
- required: w,
3507
+ required: y,
3508
3508
  onChange: $,
3509
3509
  ref: (S) => {
3510
3510
  S && (S.indeterminate = b);
@@ -3531,9 +3531,9 @@ const O = {
3531
3531
  }
3532
3532
  )
3533
3533
  ] }),
3534
- f && /* @__PURE__ */ s(zo, { children: /* @__PURE__ */ s(Ae, { htmlFor: h, disabled: x, children: /* @__PURE__ */ k(E, { direction: "row", alignItems: "center", gap: "4px", children: [
3534
+ f && /* @__PURE__ */ s(zo, { children: /* @__PURE__ */ s(Ae, { htmlFor: h, disabled: x, children: /* @__PURE__ */ w(E, { direction: "row", alignItems: "center", gap: "4px", children: [
3535
3535
  f,
3536
- w && /* @__PURE__ */ s(A, { type: "label", appearance: "danger", size: "small", children: "*" })
3536
+ y && /* @__PURE__ */ s(A, { type: "label", appearance: "danger", size: "small", children: "*" })
3537
3537
  ] }) }) })
3538
3538
  ] });
3539
3539
  }, Ao = v.ul`
@@ -3636,8 +3636,8 @@ const O = {
3636
3636
  picker: u = !1,
3637
3637
  onCheckboxChange: h,
3638
3638
  checked: p = !1
3639
- } = e, [g, m] = J(!1), b = () => m(!0), f = () => m(!1), x = ee(Z), w = ((o = (l = (t = x == null ? void 0 : x.input) == null ? void 0 : t.option) == null ? void 0 : l.appearance) == null ? void 0 : o.hover) || N.option.appearance.hover, $ = ((i = (a = (n = x == null ? void 0 : x.input) == null ? void 0 : n.option) == null ? void 0 : a.appearance) == null ? void 0 : i.regular) || N.option.appearance.regular;
3640
- return /* @__PURE__ */ k(
3639
+ } = e, [g, m] = J(!1), b = () => m(!0), f = () => m(!1), x = ee(Z), y = ((o = (l = (t = x == null ? void 0 : x.input) == null ? void 0 : t.option) == null ? void 0 : l.appearance) == null ? void 0 : o.hover) || N.option.appearance.hover, $ = ((i = (a = (n = x == null ? void 0 : x.input) == null ? void 0 : n.option) == null ? void 0 : a.appearance) == null ? void 0 : i.regular) || N.option.appearance.regular;
3640
+ return /* @__PURE__ */ w(
3641
3641
  Ro,
3642
3642
  {
3643
3643
  id: d,
@@ -3659,7 +3659,7 @@ const O = {
3659
3659
  margin: u ? "0 0 0 9px" : "0px",
3660
3660
  textAlign: "start",
3661
3661
  size: "medium",
3662
- appearance: g ? w : $,
3662
+ appearance: g ? y : $,
3663
3663
  children: c
3664
3664
  }
3665
3665
  )
@@ -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__ */ k(E, { alignItems: "center", gap: "4px", margin: "4px 0 0 16px", children: [
3767
+ return /* @__PURE__ */ w(E, { alignItems: "center", gap: "4px", margin: "4px 0 0 16px", children: [
3768
3768
  /* @__PURE__ */ s(
3769
3769
  q,
3770
3770
  {
@@ -3785,7 +3785,7 @@ const jo = (e) => {
3785
3785
  )
3786
3786
  ] });
3787
3787
  };
3788
- pt((e, t) => {
3788
+ ht((e, t) => {
3789
3789
  var l, o;
3790
3790
  const {
3791
3791
  displayList: n,
@@ -3801,7 +3801,7 @@ pt((e, t) => {
3801
3801
  name: b,
3802
3802
  onBlur: f,
3803
3803
  onChange: x,
3804
- onClick: w,
3804
+ onClick: y,
3805
3805
  onFocus: $,
3806
3806
  onOptionClick: C,
3807
3807
  options: T,
@@ -3814,9 +3814,9 @@ pt((e, t) => {
3814
3814
  picker: j,
3815
3815
  checkedItems: De,
3816
3816
  onCheckboxChange: Pt
3817
- } = e, Ke = ee(Z), Bt = ((o = (l = Ke == null ? void 0 : Ke.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);
3818
- return /* @__PURE__ */ k(Oo, { $fullwidth: d, disabled: a, ref: t, children: [
3819
- p && /* @__PURE__ */ k(
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);
3818
+ return /* @__PURE__ */ w(Oo, { $fullwidth: d, disabled: a, ref: t, children: [
3819
+ p && /* @__PURE__ */ w(
3820
3820
  E,
3821
3821
  {
3822
3822
  alignItems: "center",
@@ -3849,13 +3849,13 @@ pt((e, t) => {
3849
3849
  ]
3850
3850
  }
3851
3851
  ),
3852
- /* @__PURE__ */ k(
3852
+ /* @__PURE__ */ w(
3853
3853
  Lo,
3854
3854
  {
3855
3855
  disabled: a,
3856
3856
  $focused: i,
3857
3857
  $invalid: h,
3858
- onClick: w,
3858
+ onClick: y,
3859
3859
  $value: I,
3860
3860
  $size: P,
3861
3861
  children: [
@@ -3875,12 +3875,12 @@ pt((e, t) => {
3875
3875
  onFocus: $,
3876
3876
  onBlur: f,
3877
3877
  onChange: x,
3878
- onClick: w,
3878
+ onClick: y,
3879
3879
  onKeyUp: V,
3880
3880
  readOnly: R
3881
3881
  }
3882
3882
  ),
3883
- /* @__PURE__ */ k(E, { direction: "row", gap: "8px", alignItems: "center", children: [
3883
+ /* @__PURE__ */ w(E, { direction: "row", gap: "8px", alignItems: "center", children: [
3884
3884
  (I || j && De.length > 0) && !a && /* @__PURE__ */ s(
3885
3885
  q,
3886
3886
  {
@@ -4015,7 +4015,7 @@ const Ho = v.div`
4015
4015
  height: 14px;
4016
4016
  margin-top: 8px;
4017
4017
  }
4018
- `, dt = (e) => {
4018
+ `, ut = (e) => {
4019
4019
  var t, l, o, n;
4020
4020
  const {
4021
4021
  label: a,
@@ -4030,7 +4030,7 @@ const Ho = v.div`
4030
4030
  size: b = "wide",
4031
4031
  fullwidth: f = !1,
4032
4032
  onFocus: x,
4033
- onBlur: w
4033
+ onBlur: y
4034
4034
  } = e, [$, C] = J(!1), T = (V) => {
4035
4035
  C(!0);
4036
4036
  try {
@@ -4041,7 +4041,7 @@ const Ho = v.div`
4041
4041
  }, D = (V) => {
4042
4042
  C(!1);
4043
4043
  try {
4044
- w && w(V);
4044
+ y && y(V);
4045
4045
  } catch (j) {
4046
4046
  console.error(`Error executing blur callback. ${j}`);
4047
4047
  }
@@ -4052,8 +4052,8 @@ const Ho = v.div`
4052
4052
  console.error(`Error when changing value using callback. ${j}`);
4053
4053
  }
4054
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;
4055
- return /* @__PURE__ */ k(Ho, { $fullwidth: f, $disabled: c, $size: b, children: [
4056
- /* @__PURE__ */ k(
4055
+ return /* @__PURE__ */ w(Ho, { $fullwidth: f, $disabled: c, $size: b, children: [
4056
+ /* @__PURE__ */ w(
4057
4057
  _o,
4058
4058
  {
4059
4059
  $alignItems: "center",
@@ -4114,7 +4114,7 @@ const Ho = v.div`
4114
4114
  )
4115
4115
  }
4116
4116
  ),
4117
- g === "invalid" && !c && m && /* @__PURE__ */ k(qo, { children: [
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
4120
  A,
@@ -4261,7 +4261,7 @@ v.div`
4261
4261
 
4262
4262
  ${({ $animated: e, theme: t, $appearance: l }) => {
4263
4263
  var o, n;
4264
- return e && He`
4264
+ return e && _e`
4265
4265
  position: relative;
4266
4266
  overflow: hidden;
4267
4267
  background: ${((n = (o = t == null ? void 0 : t.progressbar) == null ? void 0 : o[l]) == null ? void 0 : n.animation.color) || se[l].animation.color};
@@ -4424,7 +4424,7 @@ const Ft = {
4424
4424
  return ((l = (t = e == null ? void 0 : e.menu) == null ? void 0 : t.background) == null ? void 0 : l.color) || Ft.background.color;
4425
4425
  }};
4426
4426
  `;
4427
- pt((e, t) => {
4427
+ ht((e, t) => {
4428
4428
  const { children: l, width: o = "fit-content" } = e;
4429
4429
  return /* @__PURE__ */ s(Yo, { ref: t, $width: o, children: l });
4430
4430
  });
@@ -4520,9 +4520,9 @@ const Xo = (e) => {
4520
4520
  messageEnd: p = "",
4521
4521
  statusStart: g = "pending",
4522
4522
  statusEnd: m = "pending"
4523
- } = e, [b, f] = J(i), [x, w] = J(c), [$, C] = J(u);
4524
- return /* @__PURE__ */ k(he, { children: [
4525
- /* @__PURE__ */ k(E, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
4523
+ } = e, [b, f] = J(i), [x, y] = J(c), [$, C] = J(u);
4524
+ return /* @__PURE__ */ w(he, { children: [
4525
+ /* @__PURE__ */ w(E, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
4526
4526
  /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
4527
4527
  A,
4528
4528
  {
@@ -4555,14 +4555,14 @@ const Xo = (e) => {
4555
4555
  }
4556
4556
  )
4557
4557
  ] }),
4558
- /* @__PURE__ */ k(E, { justifyContent: "space-between", gap: "24px", children: [
4558
+ /* @__PURE__ */ w(E, { justifyContent: "space-between", gap: "24px", children: [
4559
4559
  /* @__PURE__ */ s(E, { width: "189px", children: /* @__PURE__ */ s(
4560
- dt,
4560
+ ut,
4561
4561
  {
4562
4562
  id: "dateStart",
4563
4563
  label: n,
4564
4564
  onChange: (S) => {
4565
- w(S.target.value), t(S);
4565
+ y(S.target.value), t(S);
4566
4566
  },
4567
4567
  value: x,
4568
4568
  required: d,
@@ -4572,7 +4572,7 @@ const Xo = (e) => {
4572
4572
  }
4573
4573
  ) }),
4574
4574
  b && /* @__PURE__ */ s(E, { width: "189px", children: /* @__PURE__ */ s(
4575
- dt,
4575
+ ut,
4576
4576
  {
4577
4577
  id: "dateEnd",
4578
4578
  label: a,
@@ -4622,9 +4622,9 @@ const Xo = (e) => {
4622
4622
  } = e, [c, u] = J(t), h = (p) => {
4623
4623
  u(p.target.checked), o(p);
4624
4624
  };
4625
- return ht(() => {
4625
+ return vt(() => {
4626
4626
  u(t);
4627
- }, [t]), /* @__PURE__ */ k(he, { children: [
4627
+ }, [t]), /* @__PURE__ */ w(he, { children: [
4628
4628
  /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
4629
4629
  Dt,
4630
4630
  {
@@ -4640,7 +4640,7 @@ const Xo = (e) => {
4640
4640
  c && /* @__PURE__ */ s(he, { children: l })
4641
4641
  ] });
4642
4642
  }, Zo = (e) => ({
4643
- schema: vt().test(
4643
+ schema: gt().test(
4644
4644
  "isArrayOrString",
4645
4645
  "Must be an array of strings/numbers or a single string",
4646
4646
  (t) => Array.isArray(t) ? t.every(
@@ -4649,7 +4649,7 @@ const Xo = (e) => {
4649
4649
  ),
4650
4650
  value: e
4651
4651
  }), er = (e) => ({
4652
- schema: vt().test(
4652
+ schema: gt().test(
4653
4653
  "isArrayOrString",
4654
4654
  "Must be an array of strings/numbers or a single string",
4655
4655
  (t) => Array.isArray(t) ? t.every(
@@ -4677,10 +4677,10 @@ const Xo = (e) => {
4677
4677
  schema: Pe().required("Percentage is required").min(0, "Percentage cannot be less than 0").max(100, "Percentage cannot be greater than 100"),
4678
4678
  value: e
4679
4679
  } : {
4680
- schema: _e().required("Required"),
4680
+ schema: Ue().required("Required"),
4681
4681
  value: e
4682
4682
  }, lr = (e) => ({
4683
- schema: _e().required("Required").test(
4683
+ schema: Ue().required("Required").test(
4684
4684
  "non-empty",
4685
4685
  "Value cannot be empty",
4686
4686
  (t) => t != null && t.trim() !== ""
@@ -4693,7 +4693,7 @@ const Xo = (e) => {
4693
4693
  [B.GREATER_THAN]: Le,
4694
4694
  [B.LESS_THAN]: Le,
4695
4695
  [B.EQUAL]: Le
4696
- }, ut = (e) => or[e] || lr;
4696
+ }, ct = (e) => or[e] || lr;
4697
4697
  function rr({ decision: e, onSubmitEvent: t }) {
4698
4698
  const l = {
4699
4699
  ruleName: e.ruleName || "",
@@ -4706,9 +4706,9 @@ function rr({ decision: e, onSubmitEvent: t }) {
4706
4706
  conditionThatEstablishesTheDecision: {},
4707
4707
  checkClosed: !1
4708
4708
  }, o = ye({
4709
- ruleName: _e().required("Name is required"),
4710
- effectiveFrom: Ze().required("effective From date is required"),
4711
- validUntil: Ze().when(
4709
+ ruleName: Ue().required("Name is required"),
4710
+ effectiveFrom: et().required("effective From date is required"),
4711
+ validUntil: et().when(
4712
4712
  "checkClosed",
4713
4713
  (i, d, { parent: c }) => (c == null ? void 0 : c.checkClosed) ? d.required("valid Until date is required").test(
4714
4714
  "is-after-startDate",
@@ -4719,17 +4719,17 @@ function rr({ decision: e, onSubmitEvent: t }) {
4719
4719
  }
4720
4720
  ) : d.notRequired()
4721
4721
  ),
4722
- value: Qe(() => ut(n.values.howToSetTheDecision)(
4722
+ value: Ze(() => ct(n.values.howToSetTheDecision)(
4723
4723
  n.values.value,
4724
4724
  n.values.decisionDataType
4725
4725
  ).schema),
4726
- conditionThatEstablishesTheDecision: Qe((i, { parent: d }) => {
4726
+ conditionThatEstablishesTheDecision: Ze((i, { parent: d }) => {
4727
4727
  var h;
4728
4728
  if ((d == null ? void 0 : d.toggleNone) && Object.keys(d.conditionThatEstablishesTheDecision || {}).length > 0) return ye().shape({});
4729
4729
  const u = (h = e.conditionThatEstablishesTheDecision) == null ? void 0 : h.reduce(
4730
4730
  (p, g) => {
4731
4731
  if (n.values.conditionThatEstablishesTheDecision[g.conditionName] !== void 0) {
4732
- const b = ut(g.howToSetTheCondition);
4732
+ const b = ct(g.howToSetTheCondition);
4733
4733
  p[g.conditionName] = b(
4734
4734
  g.value,
4735
4735
  g.conditionDataType
@@ -4802,14 +4802,14 @@ const nr = (e) => {
4802
4802
  decisionDataType: t.decisionDataType,
4803
4803
  listOfPossibleValues: t.listOfPossibleValues
4804
4804
  };
4805
- return /* @__PURE__ */ s("form", { onSubmit: a.handleSubmit, children: /* @__PURE__ */ k(E, { direction: "column", gap: "24px", children: [
4806
- Je({
4805
+ return /* @__PURE__ */ s("form", { onSubmit: a.handleSubmit, children: /* @__PURE__ */ w(E, { direction: "column", gap: "24px", children: [
4806
+ Qe({
4807
4807
  condition: d,
4808
4808
  formik: a,
4809
4809
  isDecision: !0
4810
4810
  }),
4811
4811
  /* @__PURE__ */ s(re, { dashed: !0 }),
4812
- /* @__PURE__ */ s(Ko, { children: /* @__PURE__ */ s(Jo, { children: /* @__PURE__ */ k(
4812
+ /* @__PURE__ */ s(Ko, { children: /* @__PURE__ */ s(Jo, { children: /* @__PURE__ */ w(
4813
4813
  E,
4814
4814
  {
4815
4815
  direction: "column",
@@ -4817,7 +4817,7 @@ const nr = (e) => {
4817
4817
  gap: "16px",
4818
4818
  height: "272px",
4819
4819
  children: [
4820
- /* @__PURE__ */ k(
4820
+ /* @__PURE__ */ w(
4821
4821
  E,
4822
4822
  {
4823
4823
  justifyContent: "space-between",
@@ -4864,7 +4864,7 @@ const nr = (e) => {
4864
4864
  );
4865
4865
  }
4866
4866
  },
4867
- children: Je({ condition: u, formik: a })
4867
+ children: Qe({ condition: u, formik: a })
4868
4868
  },
4869
4869
  u.conditionName
4870
4870
  )
@@ -4894,17 +4894,17 @@ const nr = (e) => {
4894
4894
  ),
4895
4895
  /* @__PURE__ */ s(re, {}),
4896
4896
  a.errors.conditionThatEstablishesTheDecision && a.submitCount > 0 && /* @__PURE__ */ s(A, { type: "label", size: "medium", appearance: "danger", children: String(a.errors.conditionThatEstablishesTheDecision) }),
4897
- /* @__PURE__ */ k(E, { direction: "row", justifyContent: "end", gap: "16px", children: [
4898
- /* @__PURE__ */ s(it, { appearance: "gray", onClick: n, children: o.cancel }),
4899
- /* @__PURE__ */ s(it, { type: "submit", children: o.confirm })
4897
+ /* @__PURE__ */ w(E, { direction: "row", justifyContent: "end", gap: "16px", children: [
4898
+ /* @__PURE__ */ s(dt, { appearance: "gray", onClick: n, children: o.cancel }),
4899
+ /* @__PURE__ */ s(dt, { type: "submit", children: o.confirm })
4900
4900
  ] })
4901
4901
  ] }) });
4902
- }, ct = v.div`
4902
+ }, st = v.div`
4903
4903
  & > div {
4904
4904
  border-radius: 8px;
4905
4905
  border: 1px solid ${te.palette.neutral.N30};
4906
4906
  }
4907
- `, st = v.div`
4907
+ `, pt = v.div`
4908
4908
  width: 100%;
4909
4909
  height: 100%;
4910
4910
  overflow-y: auto;
@@ -4946,7 +4946,7 @@ const Ot = (e) => {
4946
4946
  value: pe(t),
4947
4947
  howToSetTheDecision: (t == null ? void 0 : t.howToSetTheDecision) || "EqualTo"
4948
4948
  };
4949
- return !l && t && o ? /* @__PURE__ */ k(E, { direction: "column", gap: "12px", children: [
4949
+ return !l && t && o ? /* @__PURE__ */ w(E, { direction: "column", gap: "12px", children: [
4950
4950
  t && /* @__PURE__ */ s(E, { direction: "column", alignItems: "center", children: /* @__PURE__ */ s(
4951
4951
  me,
4952
4952
  {
@@ -4956,7 +4956,7 @@ const Ot = (e) => {
4956
4956
  }
4957
4957
  ) }, t.ruleName),
4958
4958
  /* @__PURE__ */ s(re, { dashed: !0 }),
4959
- /* @__PURE__ */ s(st, { children: /* @__PURE__ */ k(
4959
+ /* @__PURE__ */ s(pt, { children: /* @__PURE__ */ w(
4960
4960
  E,
4961
4961
  {
4962
4962
  direction: "column",
@@ -4975,7 +4975,7 @@ const Ot = (e) => {
4975
4975
  children: o.factsThatConditionIt
4976
4976
  }
4977
4977
  ),
4978
- t.conditionThatEstablishesTheDecision && t.conditionThatEstablishesTheDecision.map((a) => a.hidden ? null : /* @__PURE__ */ s(ct, { children: /* @__PURE__ */ s(E, { direction: "column", padding: "8px", children: /* @__PURE__ */ s(
4978
+ t.conditionThatEstablishesTheDecision && t.conditionThatEstablishesTheDecision.map((a) => a.hidden ? null : /* @__PURE__ */ s(st, { children: /* @__PURE__ */ s(E, { direction: "column", padding: "8px", children: /* @__PURE__ */ s(
4979
4979
  me,
4980
4980
  {
4981
4981
  element: {
@@ -4986,7 +4986,7 @@ const Ot = (e) => {
4986
4986
  }
4987
4987
  ) }) }, a.conditionName)),
4988
4988
  /* @__PURE__ */ s(re, { dashed: !0 }),
4989
- /* @__PURE__ */ k(E, { direction: "column", gap: "12px", children: [
4989
+ /* @__PURE__ */ w(E, { direction: "column", gap: "12px", children: [
4990
4990
  (t == null ? void 0 : t.effectiveFrom) && (t == null ? void 0 : t.validUntil) && /* @__PURE__ */ s(
4991
4991
  me,
4992
4992
  {
@@ -5032,23 +5032,23 @@ const Ot = (e) => {
5032
5032
  ]
5033
5033
  }
5034
5034
  ) })
5035
- ] }) : /* @__PURE__ */ k(E, { direction: "column", gap: "12px", children: [
5036
- /* @__PURE__ */ k(E, { direction: "column", alignItems: "center", gap: "4px", children: [
5035
+ ] }) : /* @__PURE__ */ w(E, { direction: "column", gap: "12px", children: [
5036
+ /* @__PURE__ */ w(E, { direction: "column", alignItems: "center", gap: "4px", children: [
5037
5037
  /* @__PURE__ */ s(ce, { animated: !0, width: "180px" }),
5038
5038
  /* @__PURE__ */ s(ce, { animated: !0, width: "85px" })
5039
5039
  ] }, "loading"),
5040
- /* @__PURE__ */ k(E, { direction: "column", gap: "12px", alignItems: "center", children: [
5040
+ /* @__PURE__ */ w(E, { direction: "column", gap: "12px", alignItems: "center", children: [
5041
5041
  /* @__PURE__ */ s(re, { dashed: !0 }),
5042
5042
  /* @__PURE__ */ s(ce, { animated: !0, width: "150px" })
5043
5043
  ] }),
5044
- /* @__PURE__ */ s(st, { children: /* @__PURE__ */ s(
5044
+ /* @__PURE__ */ s(pt, { children: /* @__PURE__ */ s(
5045
5045
  E,
5046
5046
  {
5047
5047
  direction: "column",
5048
5048
  gap: "12px",
5049
5049
  justifyContent: "space-between",
5050
5050
  height: "203px",
5051
- children: Array.from({ length: 5 }).map((a, i) => /* @__PURE__ */ s(ct, { children: /* @__PURE__ */ k(
5051
+ children: Array.from({ length: 5 }).map((a, i) => /* @__PURE__ */ s(st, { children: /* @__PURE__ */ w(
5052
5052
  E,
5053
5053
  {
5054
5054
  direction: "column",
@@ -5095,11 +5095,11 @@ v.div`
5095
5095
  border-radius: 8px;
5096
5096
  }
5097
5097
  `;
5098
- const Xe = (e) => {
5098
+ const Ke = (e) => {
5099
5099
  const { children: t, controls: l = !0, handleDelete: o, id: n } = e;
5100
- return /* @__PURE__ */ s(vr, { children: /* @__PURE__ */ k(E, { direction: "column", gap: "16px", padding: "12px 16px", children: [
5100
+ return /* @__PURE__ */ s(vr, { children: /* @__PURE__ */ w(E, { direction: "column", gap: "16px", padding: "12px 16px", children: [
5101
5101
  t,
5102
- l && /* @__PURE__ */ k(he, { children: [
5102
+ l && /* @__PURE__ */ w(he, { children: [
5103
5103
  /* @__PURE__ */ s(re, {}),
5104
5104
  /* @__PURE__ */ s(E, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ s(
5105
5105
  q,
@@ -5158,8 +5158,8 @@ const Xe = (e) => {
5158
5158
  "The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
5159
5159
  );
5160
5160
  return jt(
5161
- /* @__PURE__ */ s(gr, { children: /* @__PURE__ */ s(no, { children: /* @__PURE__ */ s(br, { children: /* @__PURE__ */ k(E, { direction: "column", gap: "24px", children: [
5162
- /* @__PURE__ */ s(E, { direction: "column", gap: "24px", children: /* @__PURE__ */ k(E, { alignItems: "center", justifyContent: "space-between", children: [
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
5163
  /* @__PURE__ */ s(A, { type: "title", size: "large", appearance: "dark", weight: "bold", children: n }),
5164
5164
  /* @__PURE__ */ s(Ut, { size: "24px", cursor: "pointer", onClick: o })
5165
5165
  ] }) }),
@@ -5243,7 +5243,7 @@ function kr({
5243
5243
  handleOpenModal: t
5244
5244
  }) {
5245
5245
  return /* @__PURE__ */ s(
5246
- Xe,
5246
+ Ke,
5247
5247
  {
5248
5248
  id: `loading-card-${e}`,
5249
5249
  handleDelete: () => {
@@ -5262,10 +5262,10 @@ function wr({
5262
5262
  handleDelete: o,
5263
5263
  textValues: n
5264
5264
  }) {
5265
- return e ? /* @__PURE__ */ s(Lt, { children: /* @__PURE__ */ k(E, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
5265
+ return e ? /* @__PURE__ */ s(Lt, { children: /* @__PURE__ */ w(E, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
5266
5266
  /* @__PURE__ */ s(A, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: e.decisionId }),
5267
5267
  /* @__PURE__ */ s(
5268
- Xe,
5268
+ Ke,
5269
5269
  {
5270
5270
  id: e.decisionId,
5271
5271
  handleDelete: () => o ? o(e.decisionId) : null,
@@ -5281,21 +5281,21 @@ function Nr({
5281
5281
  handleOpenModal: t,
5282
5282
  customTitleContentAddCard: l
5283
5283
  }) {
5284
- return /* @__PURE__ */ s(Lt, { children: /* @__PURE__ */ k(E, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
5284
+ return /* @__PURE__ */ s(Lt, { children: /* @__PURE__ */ w(E, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
5285
5285
  /* @__PURE__ */ s(A, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
5286
5286
  /* @__PURE__ */ s(
5287
5287
  yr,
5288
5288
  {
5289
5289
  onClick: () => t ? t() : null,
5290
5290
  children: /* @__PURE__ */ s(
5291
- Xe,
5291
+ Ke,
5292
5292
  {
5293
5293
  id: `add-decision-${e}`,
5294
5294
  handleDelete: () => {
5295
5295
  },
5296
5296
  handleView: () => t ? t() : null,
5297
5297
  controls: !1,
5298
- children: /* @__PURE__ */ k(E, { direction: "column", gap: "12px", alignItems: "center", children: [
5298
+ children: /* @__PURE__ */ w(E, { direction: "column", gap: "12px", alignItems: "center", children: [
5299
5299
  /* @__PURE__ */ s(q, { appearance: "gray", icon: /* @__PURE__ */ s(Mt, {}), size: "35px" }),
5300
5300
  /* @__PURE__ */ s(A, { appearance: "gray", type: "body", size: "large", children: l || "Agregar decisión" })
5301
5301
  ] })
@@ -5310,7 +5310,7 @@ const Cr = {
5310
5310
  decision: wr,
5311
5311
  add: Nr
5312
5312
  };
5313
- function je(e) {
5313
+ function He(e) {
5314
5314
  const { type: t } = e, l = Cr[t];
5315
5315
  return l ? l(e) : null;
5316
5316
  }
@@ -5324,7 +5324,7 @@ function Er({
5324
5324
  textValues: i
5325
5325
  }) {
5326
5326
  const d = o ? Array.from({ length: 3 }).map(
5327
- (u, h) => je({
5327
+ (u, h) => He({
5328
5328
  type: "loading",
5329
5329
  index: h,
5330
5330
  controls: e,
@@ -5335,7 +5335,7 @@ function Er({
5335
5335
  textValues: i
5336
5336
  })
5337
5337
  ) : l.map(
5338
- (u) => je({
5338
+ (u) => He({
5339
5339
  type: "decision",
5340
5340
  decision: u,
5341
5341
  controls: e,
@@ -5363,7 +5363,7 @@ const Br = (e) => {
5363
5363
  handleCloseModal: p,
5364
5364
  handleSubmitForm: g,
5365
5365
  handleDelete: m
5366
- } = e, b = At("(max-width: 681px)"), { renderedCards: f, shouldRenderAddCard: x } = Er({
5366
+ } = e, b = je("(max-width: 681px)"), f = je("(max-width: 400px)"), { renderedCards: x, shouldRenderAddCard: y } = Er({
5367
5367
  controls: t,
5368
5368
  customTitleContentAddCard: l,
5369
5369
  decisions: n,
@@ -5372,13 +5372,13 @@ const Br = (e) => {
5372
5372
  handleDelete: m,
5373
5373
  textValues: a
5374
5374
  });
5375
- return /* @__PURE__ */ k(he, { children: [
5376
- /* @__PURE__ */ s($r, { children: /* @__PURE__ */ s(xr, { children: /* @__PURE__ */ k(E, { direction: "column", gap: "16px", padding: "6px", children: [
5377
- n.length === 0 && !u && /* @__PURE__ */ k(A, { as: "span", type: "label", size: "large", appearance: "gray", children: [
5375
+ 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: [
5378
5378
  o || "Aún NO tienes definidas tasas de interés efectivas",
5379
5379
  ". Presiona",
5380
5380
  " ",
5381
- /* @__PURE__ */ k(
5381
+ /* @__PURE__ */ w(
5382
5382
  A,
5383
5383
  {
5384
5384
  as: "span",
@@ -5396,10 +5396,10 @@ const Br = (e) => {
5396
5396
  " ",
5397
5397
  "para empezar."
5398
5398
  ] }),
5399
- /* @__PURE__ */ k(
5400
- zt,
5399
+ /* @__PURE__ */ w(
5400
+ At,
5401
5401
  {
5402
- templateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
5402
+ templateColumns: f ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
5403
5403
  autoFlow: "row dense",
5404
5404
  gap: "24px",
5405
5405
  alignItems: "start",
@@ -5409,8 +5409,8 @@ const Br = (e) => {
5409
5409
  padding: "6px",
5410
5410
  height: b ? "auto" : "484px",
5411
5411
  children: [
5412
- f,
5413
- x && je({
5412
+ x,
5413
+ y && He({
5414
5414
  type: "add",
5415
5415
  index: n.length,
5416
5416
  controls: t,
@@ -5509,7 +5509,7 @@ const Br = (e) => {
5509
5509
  } : t;
5510
5510
  });
5511
5511
  export {
5512
- Xe as BusinessRuleCard,
5512
+ Ke as BusinessRuleCard,
5513
5513
  Ot as BusinessRuleView,
5514
5514
  Br as BusinessRules,
5515
5515
  mr as ModalRules,